feat: Begins a generic htmx form context and template, integrates user form, begins views for vendor and purchase orders.

This commit is contained in:
2025-01-08 14:02:50 -05:00
parent 3557227430
commit 2b6e92a5c6
18 changed files with 493 additions and 93 deletions

View 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>