25 lines
519 B
Text
25 lines
519 B
Text
{{define "title"}}
|
|
Cakes
|
|
{{end}}
|
|
{{define "main"}}
|
|
<main>
|
|
<table>
|
|
<tr>
|
|
<th></th>
|
|
<th>Name</th>
|
|
<th>Price</th>
|
|
<th>Category</th>
|
|
<th>Availability</th>
|
|
</tr>
|
|
{{range .}}
|
|
<tr>
|
|
<th><a href="/cake/{{.ID}}">edit</a></th>
|
|
<th>{{.Name}}</th>
|
|
<th>{{.Price}}</th>
|
|
<th>{{.Category}}</th>
|
|
<th>{{.Availability}}</th>
|
|
</tr>
|
|
{{end}}
|
|
</table>
|
|
</main>
|
|
{{end}}
|