controller

This commit is contained in:
Bronku 2025-01-29 10:26:36 +01:00
parent 28a3ca3bb4
commit 8c3611e859
6 changed files with 78 additions and 30 deletions

24
templates/new_order.html Normal file
View file

@ -0,0 +1,24 @@
<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" required value="">
</div>
<div>
<label for="lastname">Last Name</label>
<input type="text" id="lastname" name="lastname" value="">
</div>
<div>
<label for="phone">Phone</label>
<input type="tel" id="phone" name="phone" value="">
</div>
<div>
<label for="location">Location</label>
<input type="text" id="location" name="location" value="">
</div>
<div>
<label for="paid">Paid</label>
<input type="number" id="paid" name="paid" step="0.01" min="0" value="">
</div>
<button type="button" x-on:click="open = false">Cancel</button>
<button type="submit">Submit</button>
</form>