26 lines
674 B
Plaintext
26 lines
674 B
Plaintext
{{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}} |