Skip to content

Commit 76e4b88

Browse files
Add minimum value for quantity input field
1 parent be3678f commit 76e4b88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

transaction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
<?php items_list() ?>
214214
</optgroup>
215215
</select></div>
216-
<div class="mb-3"><label class="form-label"><strong>Quantity</strong></label><input class="form-control" type="number" name="qty" placeholder="Qty" value="1"></div>
216+
<div class="mb-3"><label class="form-label"><strong>Quantity</strong></label><input class="form-control" type="number" name="qty" placeholder="Qty" min="1" value="1"></div>
217217

218218
</div>
219219
<div class="modal-footer"><button class="btn btn-light" type="button" data-bs-dismiss="modal">Close</button><button class="btn btn-primary" type="submit">Add</button></div>

0 commit comments

Comments
 (0)