Added a new sub feature flag FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS

This commit is contained in:
Bernd Bestel
2019-10-05 13:10:56 +02:00
parent ff92e8235f
commit 700db9ae00
4 changed files with 10 additions and 0 deletions

View File

@@ -21,6 +21,7 @@
<form id="shoppinglist-form" novalidate>
@if(GROCY_FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS)
<div class="form-group">
<label for="shopping_list_id">{{ $__t('Shopping list') }}</label>
<select class="form-control" id="shopping_list_id" name="shopping_list_id">
@@ -29,6 +30,9 @@
@endforeach
</select>
</div>
@else
<input type="hidden" id="shopping_list_id" name="shopping_list_id" value="1">
@endif
@php if($mode == 'edit') { $productId = $listItem->product_id; } else { $productId = ''; } @endphp
@include('components.productpicker', array(