37 lines
2.3 KiB
HTML
37 lines
2.3 KiB
HTML
<div id="float" class="float" style="display: block;">
|
|
<div class="btn-row">
|
|
<button class="btn-close" onclick="toggleContent('float'); window.location.href='/purchase-orders';">x</button>
|
|
</div>
|
|
<p><span class="label" style="margin-right: 15px;">Note:</span><span><i style="font-size: 1em;">Vendor and Employee can not be changed once a purchase order has been created.</i></span></p>
|
|
<form hx-post="/purchase-orders" hx-target="#purchase-order-table" hx-swap="afterbegin" hx-on::after-request="if(event.detail.successful) toggleContent('float');">
|
|
<div class="row">
|
|
<label for="customer" class="label col-2" style="margin-right: 15px; margin-bottom: 5px;">Customer:</label>
|
|
<input type="text" class="col-3" name="customer" placeholder="Customer" value="Testy McTestface" required autofocus>
|
|
Work Order:<label for="workOrder" class="label col-2" style="margin-right: 15px; margin-bottom: 5px;"></label>
|
|
<input type="text" class="col-4" name="workOrder" placeholder="Work Order: (12345)" value="12245">
|
|
</div>
|
|
<div class="row">
|
|
<label for="materials" class="label col-2" style="margin-right: 15px; margin-bottom: 5px;">Materials:</label>
|
|
<input type="text" class="col-3" name="materials" placeholder="Materials" value="foo" required>
|
|
Vendor:<label for="vendorBranchID" class="label col-2" style="margin-right: 15px; margin-bottom: 5px;"></label>
|
|
<input type="text" class="col-4" name="vendorBranchID" value="Test - Mock" disabled>
|
|
</div>
|
|
<div class="row">
|
|
<label for="createdForID" class="label col-2" style="margin-right: 15px; margin-bottom: 5px;">Employee:</label>
|
|
<input type="text" class="col-3" value="Testy Mctestface" disabled>
|
|
Truck Stock:<label for="truckStock" class="label col-2" style="margin-right: 15px; margin-bottom: 5px;"></label>
|
|
<input type="checkbox" class="col-2" name="truckStock" style="margin-top: 20px;" checked>
|
|
</div>
|
|
<div class="row">
|
|
<label class="label col-2">Created:</label>
|
|
<h3 class="col-2">01/31/2025</h3>
|
|
<div class="col-1"></div>
|
|
Updated:<label class="label col-2"></label>
|
|
<h3 class="col-2">01/31/2025</h3>
|
|
</div>
|
|
<div class="btn-row">
|
|
<button class="btn-primary" type="submit">Update</button>
|
|
<button class="danger">Delete</button>
|
|
</div>
|
|
</form>
|
|
</div> |