11 lines
No EOL
432 B
HTML
11 lines
No EOL
432 B
HTML
<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 hx-get="cake_editor/{{.ID}}" hx-swap="innerHTML" hx-target="#cake_editor">{{.Name}}</button>
|
|
{{end}}
|
|
</div>
|
|
<div id="cake_editor"></div>
|
|
</div> |