spellcheck, and refreshing cake list

This commit is contained in:
bronku 2025-02-01 19:25:53 +01:00
parent 2c90e19eba
commit ea81abb718
9 changed files with 20 additions and 24 deletions

View file

@ -1,3 +1,4 @@
<h3>Edit cakes</h3>
<form hx-post="new_cake" hx-swap="outerHTML">
<div>
<label for="name">Name</label>
@ -9,5 +10,5 @@
</div>
<input value="{{.ID}}" name="id" hidden></input>
<button type="submit">Submit</button>
<button type="button" onclick="document.getElementById('cake_editor').innerText=''">Cancel</button>
<button hx-get="edit_cakes" hx-swap="innerHTML" hx-target="closest div">back</button>
</form>