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

View File

@@ -0,0 +1,26 @@
{{define "title"}}Einkaufsliste Kücheninventar{{end}}
{{define "content"}}
<h2>Einkaufsliste nach Händler</h2>
{{if .Vendors}}
{{range .Vendors}}
<section class="card">
<h3>{{.}}</h3>
<table class="table">
<thead><tr><th>Produkt</th><th>Hersteller</th><th>Größe</th><th>Benötigt</th></tr></thead>
<tbody>
{{range (index $.Groups .)}}
<tr>
<td><a href="/products/{{.Product.ID}}">{{.Product.Name}}</a></td>
<td>{{.Product.Manufacturer}}</td>
<td>{{.Product.Size}}</td>
<td><strong>{{.Needed}}</strong></td>
</tr>
{{end}}
</tbody>
</table>
</section>
{{end}}
{{else}}
<p class="muted">Keine offenen Bedarfe alle Mindestbestände sind erfüllt.</p>
{{end}}
{{end}}