44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
#extend("htmx-form", htmxForm):
|
|
#export("formBody"):
|
|
<input type="text"
|
|
id="workOrder"
|
|
name="workOrder"
|
|
placeholder="Work Order: 12345"
|
|
>
|
|
<br>
|
|
<select id="vendorBranchID" name="vendorBranchID">
|
|
#for(branch in context.branches):
|
|
<option value="#(branch.id)">#capitalized(branch.name) - #capitalized(branch.vendor.name)</option>
|
|
#endfor
|
|
</select>
|
|
<br>
|
|
<select id="createdForID" name="createdForID">
|
|
#for(employee in context.employees):
|
|
<option value="#(employee.id)">#capitalized(employee.firstName) #capitalized(employee.lastName)</option>
|
|
#endfor
|
|
</select>
|
|
<br>
|
|
<input type="text"
|
|
id="materials"
|
|
name="materials"
|
|
placeholder="Materials"
|
|
required
|
|
>
|
|
<br>
|
|
<input type="text"
|
|
id="customer"
|
|
name="customer"
|
|
placeholder="Customer Name"
|
|
required
|
|
>
|
|
|
|
<br>
|
|
<label for="truckStock">Truck Stock</label>
|
|
<input type="checkbox"
|
|
id="truckStock"
|
|
name="truckStock"
|
|
>
|
|
<input type="submit" value="Create">
|
|
#endexport
|
|
#endextend
|