Files
main-tbbank/backend/web/admin/templates/pages/list.html
2026-08-04 12:50:20 +05:00

44 lines
2.1 KiB
HTML

{{define "pages/list"}}
{{template "partials/layout-top" .}}
<div class="card bg-base-100 shadow-sm">
<div class="card-body">
<div class="mb-2 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
<div class="flex flex-wrap items-center gap-3">
<label class="input input-bordered flex w-full max-w-xs items-center gap-2 sm:w-64">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.8" stroke="currentColor" class="h-4 w-4 opacity-60" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" d="m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"/>
</svg>
<input type="search" id="list-search" class="grow" placeholder="Search…" aria-label="Search {{.Title}}">
</label>
<div id="list-parent-filter" class="hidden">
<select id="list-parent-select" class="select select-bordered w-full max-w-xs" aria-label="Filter by category"></select>
</div>
<span id="list-count" class="badge badge-ghost" aria-live="polite"></span>
</div>
<a href="/admin/{{.Resource}}/new" class="btn btn-primary btn-sm">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="h-4 w-4" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15"/>
</svg>
New
</a>
</div>
<div class="overflow-x-auto">
<table class="table" aria-label="{{.Title}}">
<thead id="list-head"></thead>
<tbody id="list-body"></tbody>
</table>
<div id="list-state" class="hidden" aria-live="polite"></div>
</div>
<div id="list-pagination" class="mt-4 flex justify-center"></div>
</div>
</div>
{{template "partials/layout-bottom" .}}
{{end}}