Add cakes management page and routes
This commit is contained in:
parent
72ed1ae61b
commit
f552e87a9d
4 changed files with 36 additions and 2 deletions
27
internal/server/templates/cakes.html
Normal file
27
internal/server/templates/cakes.html
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<header>
|
||||
<h1>Kill me please</h1>
|
||||
</header>
|
||||
<nav>
|
||||
<a href="order">New</a>
|
||||
<a href="cakes">Manage Cakes</a>
|
||||
</nav>
|
||||
<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>
|
||||
|
|
@ -3,6 +3,7 @@
|
|||
</header>
|
||||
<nav>
|
||||
<a href="order">New</a>
|
||||
<a href="cakes">Manage Cakes</a>
|
||||
</nav>
|
||||
<main>
|
||||
<table>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue