style rewrite

This commit is contained in:
bronku 2026-06-10 20:42:06 +02:00
parent 8c7067d5d9
commit 7c756e87c1
8 changed files with 737 additions and 376 deletions

View file

@ -1,25 +1,37 @@
{{define "title"}}
Cakes
Ciasta
{{end}}
{{define "main"}}
<main>
<table>
<tr>
<th></th>
<th>Name</th>
<th>Price</th>
<th>Category</th>
<th>Availability</th>
</tr>
{{range .}}
<tr>
<th><a href="/cake/{{.ID}}">edit</a></th>
<th>{{.Name}}</th>
<th>{{.Price}}</th>
<th>{{.Category}}</th>
<th>{{.Availability}}</th>
</tr>
{{end}}
</table>
<div class="toolbar">
<a href="/cake" class="btn-primary">
<i class="fa-solid fa-plus"></i>
Nowe ciasto
</a>
</div>
<div id="results-table" class="scrollable">
<table>
<thead>
<tr>
<th></th>
<th>Nazwa</th>
<th>Cena</th>
<th>Kategoria</th>
<th>Dostępność</th>
</tr>
</thead>
<tbody>
{{range .}}
<tr>
<th><a href="/cake/{{.ID}}">Edytuj</a></th>
<th>{{.Name}}</th>
<th>{{.Price}} PLN</th>
<th>{{.Category}}</th>
<th>{{.Availability}}</th>
</tr>
{{end}}
</tbody>
</table>
</div>
</main>
{{end}}