This commit is contained in:
2025-08-31 12:12:04 +02:00
parent f6643b712b
commit dbf53a9c30
13 changed files with 906 additions and 0 deletions

20
templates/products.gohtml Normal file
View File

@@ -0,0 +1,20 @@
{{define "title"}}Produkte Kücheninventar{{end}}
{{define "content"}}
<div class="actions"><a class="btn" href="/products/create">+ Produkt anlegen</a></div>
<table class="table">
<thead><tr><th>Bild</th><th>Produkt</th><th>Hersteller</th><th>Größe</th><th>Händler</th><th>Bestand</th><th>Min</th></tr></thead>
<tbody>
{{range .Products}}
<tr>
<td class="tinyimg">{{if .ImagePath}}<img src="{{.ImagePath}}" alt="{{.Name}}"/>{{end}}</td>
<td><a href="/products/{{.ID}}">{{.Name}}</a></td>
<td>{{.Manufacturer}}</td>
<td>{{.Size}}</td>
<td>{{.PreferredVendor}}</td>
<td>{{.CurrentStock}}</td>
<td>{{.MinStock}}</td>
</tr>
{{end}}
</tbody>
</table>
{{end}}