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

22
templates/alerts.gohtml Normal file
View 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}}