confirmation response template

This commit is contained in:
Bronku 2025-01-28 19:50:13 +01:00
parent 9734d4abf6
commit 28a3ca3bb4
3 changed files with 9 additions and 2 deletions

View file

@ -1,4 +0,0 @@
<div id="order_confirmation" hx-get="new_order.html" hx-swap="outerHTML">
<button hx-get="new_order.html" hx-target="#order_confirmation" hx-swap="outerHTML" x-on:click="open = false">Back</button>
<button hx-get="new_order.html" hx-target="#order_confirmation" hx-swap="outerHTML">New Order</button>
</div>

View file

@ -1,4 +1,4 @@
<form x-show="open" hx-get="confirmation.html" hx-swap="outerHTML">
<form x-show="open" hx-post="order/new" hx-swap="outerHTML">
<div>
<label for="firstname">First Name</label>
<input type="text" id="firstname" name="firstname" value="">