2024-08-22 10:13:16 +02:00
|
|
|
{{define "itemsAll:list"}}
|
|
|
|
<div
|
|
|
|
id="all_items_search"
|
|
|
|
class="hidden"
|
|
|
|
>
|
|
|
|
<div class="w3-border w3-round-large w3-display-container panel-search">
|
|
|
|
<form
|
|
|
|
class="w3-container"
|
|
|
|
method="POST"
|
|
|
|
hx-post="/items"
|
|
|
|
hx-target="#items"
|
|
|
|
>
|
|
|
|
<input type="hidden" name="csrf_token" value="{{.CSRFToken}}" />
|
|
|
|
<div class="w3-row">
|
|
|
|
<div class="w3-third" style="padding-right: 4px">
|
|
|
|
<label for="item-title">Title</label>
|
|
|
|
<input
|
|
|
|
name="Title"
|
2024-11-17 20:12:20 +01:00
|
|
|
class=" w3-border"
|
2024-08-22 10:13:16 +02:00
|
|
|
id="item-title"
|
|
|
|
type="text"
|
|
|
|
value=""
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div class="w3-third" style="padding-right: 4px">
|
|
|
|
<label for="item-title">Category</label>
|
|
|
|
<input
|
|
|
|
name="Category"
|
2024-11-17 20:12:20 +01:00
|
|
|
class=" w3-border"
|
2024-08-22 10:13:16 +02:00
|
|
|
id="item-category"
|
|
|
|
type="text"
|
|
|
|
value=""
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div class="w3-third" style="padding-left: 4px">
|
|
|
|
<label for="item-tags">Tags</label>
|
|
|
|
<input
|
|
|
|
name="Keywords"
|
2024-11-17 20:12:20 +01:00
|
|
|
class=" w3-border"
|
2024-08-22 10:13:16 +02:00
|
|
|
id="item-tags"
|
|
|
|
type="text"
|
|
|
|
value=""
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="w3-bar" style="padding-top: 8px; padding-bottom: 8px">
|
|
|
|
<button type="submit" class="w3-btn w3-metro-dark-blue w3-round-large">
|
|
|
|
<i class="bi bi-search"></i> Find
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="items" class="list">
|
2024-11-10 20:52:32 +01:00
|
|
|
<table class="table-all responsive w3-striped stickyheader">
|
2024-08-22 10:13:16 +02:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Title</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Categories</th>
|
|
|
|
<th>Tags</th>
|
|
|
|
<th class="w3-right-align">
|
|
|
|
<a
|
|
|
|
class="w3-button w3-small w3-border w3-round-large"
|
|
|
|
href="#"
|
|
|
|
onclick="bm_toggle_visibility_list_search('all_items_search'); return false;"><i class="bi bi-search"></i
|
|
|
|
></a>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{ template "itemsAll:list_rows" .}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|