Added more frontend and some more login logic

This commit is contained in:
2026-06-05 21:58:10 +02:00
parent 6543149dab
commit 52d551ab39
22 changed files with 1043 additions and 173 deletions

View File

@@ -1,21 +1,24 @@
{{ define "content" }}
<h1>Inventory</h1>
<h1>Inventar</h1>
<input
type="search"
name="q"
placeholder="Suchen..."
hx-get="/api/items/search"
hx-trigger="keyup changed delay:300ms"
hx-target="#items"
>
<div
id="items"
hx-get="/api/items"
hx-trigger="load"
>
<div class="action-bar">
<input
type="search"
name="q"
class="search-input"
placeholder="Search..."
hx-get="/api/item/search"
hx-trigger="keyup changed delay:300ms"
hx-target="#items"
>
</div>
<div class="table-container">
<div
id="items"
hx-get="/api/item"
hx-trigger="load"
>
</div>
</div>
{{ end }}