Added stock management
This commit is contained in:
@@ -36,9 +36,6 @@
|
||||
<div class="form-group">
|
||||
<input type="text" id="item-desc" placeholder="Description">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="number" id="item-qty" placeholder="Total Quantity" required>
|
||||
</div>
|
||||
<div class="button-group">
|
||||
<button type="submit" class="btn btn-primary">Save Item</button>
|
||||
<button type="button" class="btn btn-secondary" onclick="closeModal('item-modal')">Cancel</button>
|
||||
@@ -46,4 +43,46 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="stock-modal" class="modal">
|
||||
<div class="modal-content large">
|
||||
<h2 id="stock-modal-title">Manage Stock</h2>
|
||||
<div class="modal-split">
|
||||
<div>
|
||||
<h3>Current Locations</h3>
|
||||
<div class="inner-table">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Location</th>
|
||||
<th>Quantity</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="stock-table-body">
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h3>Update Stock</h3>
|
||||
<form id="stock-form" onsubmit="saveStock(event)" style="margin-top: 1rem;">
|
||||
<input type="hidden" id="stock-item-id">
|
||||
<div class="form-group">
|
||||
<select id="stock-location" class="search-input" style="width: 100%; padding: 0.85rem 1rem; background: #111827; color: white; border: 1px solid var(--border); border-radius: 10px;" required>
|
||||
<option value="">Select Location...</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="number" id="stock-qty" placeholder="Quantity to add/set" required>
|
||||
</div>
|
||||
<div class="button-group">
|
||||
<button type="submit" class="btn btn-primary">Update Stock</button>
|
||||
<button type="button" class="btn btn-secondary" onclick="closeModal('stock-modal')">Done</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user