mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Added a location filter to the stock entries page
This commit is contained in:
@@ -14,8 +14,9 @@
|
||||
@php if(empty($hint)) { $hint = ''; } @endphp
|
||||
@php if(empty($nextInputSelector)) { $nextInputSelector = ''; } @endphp
|
||||
@php if(empty($validationMessage)) { $validationMessage = 'You have to select a product'; } @endphp
|
||||
@php if(empty($additionalGroupCssClasses)) { $additionalGroupCssClasses = ''; } @endphp
|
||||
|
||||
<div class="form-group"
|
||||
<div class="form-group {{ $additionalGroupCssClasses }}"
|
||||
data-next-input-selector="{{ $nextInputSelector }}"
|
||||
data-disallow-add-product-workflows="{{ BoolToString($disallowAddProductWorkflows) }}"
|
||||
data-disallow-all-product-workflows="{{ BoolToString($disallowAllProductWorkflows) }}"
|
||||
|
@@ -35,10 +35,27 @@
|
||||
@include('components.productpicker', array(
|
||||
'products' => $products,
|
||||
'disallowAllProductWorkflows' => true,
|
||||
'isRequired' => false
|
||||
'isRequired' => false,
|
||||
'additionalGroupCssClasses' => 'mb-0'
|
||||
))
|
||||
</div>
|
||||
<div class="col">
|
||||
@if(GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING)
|
||||
<div class="col-12 col-md-6 col-xl-3 mt-auto">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i class="fas fa-filter"></i> {{ $__t('Location') }}</span>
|
||||
</div>
|
||||
<select class="custom-control custom-select"
|
||||
id="location-filter">
|
||||
<option value="all">{{ $__t('All') }}</option>
|
||||
@foreach($locations as $location)
|
||||
<option value="{{ $location->id }}">{{ $location->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<div class="col mt-auto">
|
||||
<div class="float-right mt-3">
|
||||
<a id="clear-filter-button"
|
||||
class="btn btn-sm btn-outline-info"
|
||||
|
@@ -73,6 +73,7 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@if(GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING)
|
||||
<div class="col-12 col-md-6 col-xl-3">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
@@ -87,6 +88,7 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<div class="col-12 col-md-6 col-xl-2 mt-1">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
|
Reference in New Issue
Block a user