Simplified "checkboxUncheckedValue" handling

This commit is contained in:
Bernd Bestel
2020-11-11 17:34:37 +01:00
parent 9949f30c2b
commit 9c81fc890b
19 changed files with 21 additions and 78 deletions

View File

@@ -54,9 +54,6 @@
@if(GROCY_FEATURE_FLAG_STOCK_PRODUCT_FREEZING)
<div class="form-group">
<div class="custom-control custom-checkbox">
<input type="hidden"
name="is_freezer"
value="0">
<input @if($mode=='edit'
&&
$location->is_freezer == 1) checked @endif class="form-check-input custom-control-input" type="checkbox" id="is_freezer" name="is_freezer" value="1">