This commit is contained in:
2025-09-22 20:49:05 +02:00
parent 7736b8affc
commit fd4bc48bd1
13 changed files with 852 additions and 1 deletions

32
templates/index.html Normal file
View File

@@ -0,0 +1,32 @@
{{define "content"}}
<div class="card p-3 p-md-4 mb-4 bg-white">
<div class="row g-2 align-items-center">
<div class="col-md-8">
<input class="form-control form-control-lg search" name="q" id="q" placeholder="Suche nach Name, EMail, Fingerprint…"
hx-get="/search" hx-trigger="keyup changed delay:300ms" hx-target="#results" hx-indicator="#busy">
</div>
<div class="col-md-4 text-md-end">
<span id="busy" class="htmx-indicator text-muted">Suche…</span>
</div>
</div>
</div>
<div class="card p-0 bg-white">
<div class="table-responsive">
<table class="table align-middle mb-0">
<thead class="table-light">
<tr>
<th style="width:30%">Name</th>
<th style="width:30%">EMail</th>
<th style="width:25%">Fingerprint</th>
<th style="width:15%" class="text-end">Aktion</th>
</tr>
</thead>
<tbody id="results">
{{template "rows" .Items}}
</tbody>
</table>
</div>
</div>
{{end}}