feat: Reorganizing views
This commit is contained in:
41
Resources/Views/purchaseOrders/form.leaf
Normal file
41
Resources/Views/purchaseOrders/form.leaf
Normal file
@@ -0,0 +1,41 @@
|
||||
<form hx-post="/fix-me"
|
||||
>
|
||||
<input type="number"
|
||||
id="workOrder"
|
||||
name="workOrder"
|
||||
placeholder="12345"
|
||||
>
|
||||
<br>
|
||||
<!-- TODO: Add vendor drop-down -->
|
||||
<input type="hidden"
|
||||
id="vendorBranchId"
|
||||
name="vendorBranchId"
|
||||
>
|
||||
<!-- TODO: Add employee drop-down -->
|
||||
<input type="hidden"
|
||||
id="employeeId"
|
||||
name="employeeId"
|
||||
>
|
||||
<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">
|
||||
<input type="checkbox"
|
||||
id="truckStock"
|
||||
name="truckStock"
|
||||
>
|
||||
|
||||
</form>
|
||||
26
Resources/Views/purchaseOrders/table.leaf
Normal file
26
Resources/Views/purchaseOrders/table.leaf
Normal file
@@ -0,0 +1,26 @@
|
||||
<table id="po-table">
|
||||
<tr>
|
||||
<th>PO</th>
|
||||
<th>Work Order</th>
|
||||
<th>Vendor</th>
|
||||
<th>Materials</th>
|
||||
<th>Employee</th>
|
||||
<th>Truck Stock</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tbody id="po-table-body">
|
||||
#for(po in purchaseOrders):
|
||||
<tr id="po_#(po.id)">
|
||||
<td>#(po.id)</td>
|
||||
<td>#(po.workOrder)</td>
|
||||
<td>#(po.vendorBranch.vendor.name) - #(po.vendorBranch.name)</td>
|
||||
<td>#(po.materials)</td>
|
||||
<td>#(po.employee.firstName) #(po.employee.lastName)</td>
|
||||
<td>#capitalized(po.truckStock)</td>
|
||||
<td>
|
||||
<!-- TODO: add buttons here -->
|
||||
</td>
|
||||
</tr>
|
||||
#endfor
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user