new cake form
This commit is contained in:
parent
36484f874f
commit
331f3080f9
8 changed files with 127 additions and 43 deletions
11
templates/edit_cakes.html
Normal file
11
templates/edit_cakes.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<div>
|
||||
<h3>Cakes</h3>
|
||||
<button hx-get="available_cakes" hx-swap="outerHTML" hx-target="closest div">back</button>
|
||||
<button hx-get="cake_editor" hx-swap="innerHTML" hx-target="#cake_editor">New</button>
|
||||
<div id="cakes">
|
||||
{{range .Cakes}}
|
||||
<button>{{.Name}}</button>
|
||||
{{end}}
|
||||
</div>
|
||||
<div id="cake_editor"></div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue