Optimized GROCY_FEATURE_FLAG_STOCK handling (closes #966)

This commit is contained in:
Bernd Bestel
2020-12-21 20:13:49 +01:00
parent 7478d9bb38
commit 694b78f72a
11 changed files with 90 additions and 99 deletions

View File

@@ -46,7 +46,7 @@
'nextInputSelector' => '#amount'
))
<div class="form-group mb-2">
<div class="form-group mb-2 @if(!GROCY_FEATURE_FLAG_STOCK) d-none @endif">
<div class="custom-control custom-checkbox">
<input @if($mode=='edit'
&&
@@ -77,7 +77,7 @@
value="@if($mode == 'edit'){{ $recipePos->variable_amount }}@endif">
</div>
<div class="form-group">
<div class="form-group @if(!GROCY_FEATURE_FLAG_STOCK) d-none @endif">
<div class="custom-control custom-checkbox">
<input @if($mode=='edit'
&&