feat: Reorganizing views
This commit is contained in:
35
Resources/Views/vendors/form.leaf
vendored
Normal file
35
Resources/Views/vendors/form.leaf
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
#extend("htmx-form", htmxForm):
|
||||
#export("formBody"):
|
||||
<input type="hidden"
|
||||
id="vendorId"
|
||||
name="id"
|
||||
#if(context.vendor.id):
|
||||
value="#(context.vendor.id)"
|
||||
#endif
|
||||
>
|
||||
|
||||
<input type="text"
|
||||
id="name"
|
||||
name="name"
|
||||
placeholder="Vendor Name"
|
||||
autofocus
|
||||
required
|
||||
#if(context.vendor.name):
|
||||
value="#(context.vendor.name)"
|
||||
#endif
|
||||
>
|
||||
<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