WIP gettnig there
This commit is contained in:
+9
-29
@@ -366,6 +366,9 @@
|
||||
<h2>Edit Variant</h2>
|
||||
<form id="editVariantForm">
|
||||
<input type="hidden" id="editVariantId">
|
||||
<p id="editVariantLockNotice" style="display:none; margin: 0 0 12px; padding: 8px 10px; background: #fff8e1; border: 1px solid #f5c15d; border-radius: 6px; color: #7a4f01;">
|
||||
Strength, quantity, and base unit are locked once this variant has stock/batch history.
|
||||
</p>
|
||||
<div class="form-group">
|
||||
<label for="editVariantStrength">Strength *</label>
|
||||
<input type="text" id="editVariantStrength" required>
|
||||
@@ -389,6 +392,12 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Add Pack Sizes</label>
|
||||
<div id="editVariantPackRows" class="delivery-lines"></div>
|
||||
<button type="button" id="addEditVariantPackRowBtn" class="btn btn-secondary btn-small">+ Add Another Size</button>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="editVariantThreshold">Low Stock Threshold *</label>
|
||||
@@ -616,35 +625,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Variant Pack Management Modal -->
|
||||
<div id="variantPacksModal" class="modal">
|
||||
<div class="modal-content modal-large">
|
||||
<span class="close">×</span>
|
||||
<h2>Pack Presentations</h2>
|
||||
<p id="variantPacksLabel" style="margin: 6px 0 16px; color: #666; font-weight: 600;"></p>
|
||||
|
||||
<div class="form-group">
|
||||
<h3 style="margin-bottom: 8px;">Add Pack Presentation</h3>
|
||||
<form id="variantPacksForm">
|
||||
<input type="hidden" id="variantPacksVariantId">
|
||||
<div class="form-row">
|
||||
<input type="text" id="variantPacksNewLabel" placeholder="Label (e.g., Bottle 300 ml)" required>
|
||||
<input type="text" id="variantPacksNewUnit" placeholder="Pack Unit Name (e.g., bottle, box)" required>
|
||||
<input type="number" id="variantPacksNewSize" min="0.0001" step="0.0001" placeholder="Size in base units" required>
|
||||
<button type="submit" class="btn btn-primary btn-small">Add Pack</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="variantPacksList" class="locations-list">
|
||||
<p class="loading">Loading packs...</p>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<button type="button" class="btn btn-secondary" id="closeVariantPacksBtn">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="app.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user