Files
kitcheninv/templates/shopping_list.gohtml
2025-08-31 12:12:04 +02:00

26 lines
674 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{{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}}