cake-order-tracker/templates/cake_editor.html
2025-01-31 20:12:26 +01:00

12 lines
No EOL
449 B
HTML

<form hx-post="new_cake" hx-swap="outerHTML">
<div>
<label for="name">Name</label>
<input type="text" id="name" name="name" required value="{{.Name}}">
</div>
<div>
<label for="price">Price</label>
<input type="number" id="price" name="price" step="0.01" min="0" required value="{{.Price}}">
</div>
<input value="{{.ID}}" name="id" hidden></input>
<button type="submit">Submit</button>
</form>