läuft
This commit is contained in:
20
templates/products.gohtml
Normal file
20
templates/products.gohtml
Normal file
@@ -0,0 +1,20 @@
|
||||
{{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}}
|
||||
Reference in New Issue
Block a user