feat: Begins a generic htmx form context and template, integrates user form, begins views for vendor and purchase orders.
This commit is contained in:
20
Resources/Views/vendor-form.leaf
Normal file
20
Resources/Views/vendor-form.leaf
Normal file
@@ -0,0 +1,20 @@
|
||||
<form hx-post="/vendors">
|
||||
<input type="hidden"
|
||||
id="vendorId"
|
||||
name="id"
|
||||
#if(vendor.id):
|
||||
value="#(vendor.id)"
|
||||
>
|
||||
|
||||
<input type="text"
|
||||
id="name"
|
||||
name="name"
|
||||
placeholder="Vendor Name"
|
||||
autofocus
|
||||
required
|
||||
#if(vendor.name):
|
||||
value="#(vendor.name)"
|
||||
#endif
|
||||
>
|
||||
<input type="submit" value="#(buttonLabel)">
|
||||
</form>
|
||||
Reference in New Issue
Block a user