new cake form
This commit is contained in:
parent
36484f874f
commit
331f3080f9
8 changed files with 127 additions and 43 deletions
13
templates/cake_editor.html
Normal file
13
templates/cake_editor.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<form hx-post="new_cake" hx-swap="outerHTML">
|
||||
<label>{{.ID}}</label>
|
||||
<div>
|
||||
<label for="name">Name</label>
|
||||
<input type="text" id="name" name="name" required value="{{.Name}}">
|
||||
</div>
|
||||
<div>
|
||||
<label for="price">Price</label>
|
||||
<input type="number" id="price" name="price" step="0.01" min="0" required value="{{.Price}}">
|
||||
</div>
|
||||
<input value="{{.ID}}" name="id" hidden></input>
|
||||
<button type="submit">Submit</button>
|
||||
</form>
|
||||
Loading…
Add table
Add a link
Reference in a new issue