läuft
This commit is contained in:
26
templates/shopping_list.gohtml
Normal file
26
templates/shopping_list.gohtml
Normal 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}}
|
||||
Reference in New Issue
Block a user