rudimentary css
This commit is contained in:
parent
7515010afd
commit
2c90e19eba
10 changed files with 109 additions and 110 deletions
|
|
@ -1,12 +1,10 @@
|
|||
<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 $key, $value := .}}
|
||||
<button hx-get="cake_editor/{{$value.ID}}" hx-swap="innerHTML" hx-target="#cake_editor">{{$value.Name}}
|
||||
{{$value.Price}}</button>
|
||||
{{end}}
|
||||
</div>
|
||||
<div id="cake_editor"></div>
|
||||
</div>
|
||||
<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>
|
||||
<div id="cakes">
|
||||
{{range $key, $value := .}}
|
||||
<button hx-get="cake_editor/{{$value.ID}}" hx-swap="innerHTML" hx-target="#cake_editor">{{$value.Name}}
|
||||
{{$value.Price}}</button>
|
||||
{{end}}
|
||||
</div>
|
||||
<div id="cake_editor"></div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue