läuft
This commit is contained in:
22
templates/alerts.gohtml
Normal file
22
templates/alerts.gohtml
Normal file
@@ -0,0 +1,22 @@
|
||||
{{define "title"}}Warnungen – Kücheninventar{{end}}
|
||||
{{define "content"}}
|
||||
<h2>Produkte unter Mindestbestand</h2>
|
||||
{{if .Below}}
|
||||
<table class="table">
|
||||
<thead><tr><th>Produkt</th><th>Aktuell</th><th>Min</th><th>Händler</th><th></th></tr></thead>
|
||||
<tbody>
|
||||
{{range .Below}}
|
||||
<tr>
|
||||
<td><a href="/products/{{.ID}}">{{.Name}}</a></td>
|
||||
<td>{{.CurrentStock}}</td>
|
||||
<td>{{.MinStock}}</td>
|
||||
<td>{{.PreferredVendor}}</td>
|
||||
<td><a class="btn sm" href="/shopping-list">Zur Einkaufsliste</a></td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
{{else}}
|
||||
<p class="muted">Alles gut, keine Unterschreitungen.</p>
|
||||
{{end}}
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user