This commit is contained in:
bronku 2025-03-31 07:32:17 +02:00
parent c32ecbff8f
commit 3136739f4e
53 changed files with 129 additions and 1892 deletions

View file

@ -6,20 +6,26 @@ Cake {{.ID}}
<form method="post">
<div>
<h2>Info</h2>
<input hidden="true" name="id" value="{{.ID}}">
<label>
<input hidden="hidden" name="id" value="{{.ID}}">
</label>
<label>name</label>
<input type="text" name="name" value="{{.Name}}">
<label>
<input type="text" name="name" value="{{.Name}}">
</label>
<label>price</label>
<input type="number" name="price" min="0" value="{{.Price}}">
<label>
<input type="number" name="price" min="0" value="{{.Price}}">
</label>
<label>category</label>
<select name="category" id="category" >
<label for="category"></label><select name="category" id="category" >
<option {{ if eq .Category "common" }}selected{{ end }} value="common">common</option>
<option {{ if eq .Category "christmas" }}selected{{ end }} value="christmas">christmas</option>
<option {{ if eq .Category "easter" }}selected{{ end }} value="easter">easter</option>
<option {{ if eq .Category "donuts" }}selected{{ end }} value="donuts">donuts</option>
</select>
<label>availability</label>
<select name="availibility" id="availibility" >
<label for="availability"></label><select name="availability" id="availability" >
<option {{ if eq .Availability "available" }}selected{{ end }} value="available">available</option>
<option {{ if eq .Availability "unavailable" }}selected{{ end }} value="unavailable">unavailable</option>
</select>