new cake form

This commit is contained in:
Bronku 2025-01-31 19:39:17 +01:00
parent 36484f874f
commit 331f3080f9
8 changed files with 127 additions and 43 deletions

11
templates/edit_cakes.html Normal file
View 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>