feat: Begins vendor views, working form, and table. Styles need some updates.
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
<form hx-post="/vendors">
|
||||
#extend("htmx-form", htmxForm):
|
||||
#export("formBody"):
|
||||
<input type="hidden"
|
||||
id="vendorId"
|
||||
name="id"
|
||||
#if(vendor.id):
|
||||
value="#(vendor.id)"
|
||||
#if(context.vendor.id):
|
||||
value="#(context.vendor.id)"
|
||||
#endif
|
||||
>
|
||||
|
||||
<input type="text"
|
||||
@@ -12,9 +14,22 @@
|
||||
placeholder="Vendor Name"
|
||||
autofocus
|
||||
required
|
||||
#if(vendor.name):
|
||||
value="#(vendor.name)"
|
||||
#if(context.vendor.name):
|
||||
value="#(context.vendor.name)"
|
||||
#endif
|
||||
>
|
||||
<input type="submit" value="#(buttonLabel)">
|
||||
</form>
|
||||
<br>
|
||||
<input type="text"
|
||||
id="branches"
|
||||
name="branches"
|
||||
#if(context.branches):
|
||||
value="#(context.branches)"
|
||||
#endif
|
||||
placeholder="Monroe, Dayton..."
|
||||
>
|
||||
<br>
|
||||
<input type="submit" value="#(context.buttonLabel)">
|
||||
<br>
|
||||
<p><small>Mutliple branches can be specified separated by a comma.</small></p>
|
||||
#endexport
|
||||
#endextend
|
||||
|
||||
Reference in New Issue
Block a user