spellcheck, and refreshing cake list
This commit is contained in:
parent
2c90e19eba
commit
ea81abb718
9 changed files with 20 additions and 24 deletions
|
|
@ -1,10 +1,9 @@
|
|||
<h3>Edit cakes</h3>
|
||||
<button hx-get="available_cakes" hx-swap="innerHTML" hx-target="closest div">back</button>
|
||||
<button hx-get="cake_editor" hx-swap="innerHTML" hx-target="#cake_editor">New</button>
|
||||
<button hx-get="cake_editor" hx-swap="innerHTML" hx-target="closest #cake_selector">New</button>
|
||||
<div id="cakes">
|
||||
{{range $key, $value := .}}
|
||||
<button hx-get="cake_editor/{{$value.ID}}" hx-swap="innerHTML" hx-target="#cake_editor">{{$value.Name}}
|
||||
<button hx-get="cake_editor/{{$value.ID}}" hx-swap="innerHTML" hx-target="closest #cake_selector">{{$value.Name}}
|
||||
{{$value.Price}}</button>
|
||||
{{end}}
|
||||
</div>
|
||||
<div id="cake_editor"></div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue