20 lines
661 B
Plaintext
20 lines
661 B
Plaintext
{{define "title"}}Produkte – Kücheninventar{{end}}
|
||
{{define "content"}}
|
||
<div class="actions"><a class="btn" href="/products/create">+ Produkt anlegen</a></div>
|
||
<table class="table">
|
||
<thead><tr><th>Bild</th><th>Produkt</th><th>Hersteller</th><th>Größe</th><th>Händler</th><th>Bestand</th><th>Min</th></tr></thead>
|
||
<tbody>
|
||
{{range .Products}}
|
||
<tr>
|
||
<td class="tinyimg">{{if .ImagePath}}<img src="{{.ImagePath}}" alt="{{.Name}}"/>{{end}}</td>
|
||
<td><a href="/products/{{.ID}}">{{.Name}}</a></td>
|
||
<td>{{.Manufacturer}}</td>
|
||
<td>{{.Size}}</td>
|
||
<td>{{.PreferredVendor}}</td>
|
||
<td>{{.CurrentStock}}</td>
|
||
<td>{{.MinStock}}</td>
|
||
</tr>
|
||
{{end}}
|
||
</tbody>
|
||
</table>
|
||
{{end}} |