Add clear filter button to stock entries page + mobile view optimizations (this now closes #1129)

This commit is contained in:
Bernd Bestel
2020-11-15 14:48:48 +01:00
parent 7bf973dd32
commit 6866109b97
2 changed files with 31 additions and 2 deletions

View File

@@ -16,18 +16,37 @@
<div class="row">
<div class="col">
<h2 class="title">@yield('title')</h2>
<div class="float-right">
<button class="btn btn-outline-dark d-md-none mt-2 order-1 order-md-3"
type="button"
data-toggle="collapse"
data-target="#table-filter-row">
<i class="fas fa-filter"></i>
</button>
</div>
</div>
</div>
<hr class="my-2">
<div class="row">
<div class="row collapse d-md-flex"
id="table-filter-row">
<div class="col-xs-12 col-md-6 col-xl-3">
@include('components.productpicker', array(
'products' => $products,
'disallowAllProductWorkflows' => true
'disallowAllProductWorkflows' => true,
'isRequired' => false
))
</div>
<div class="col">
<div class="float-right mt-3">
<a id="clear-filter-button"
class="btn btn-sm btn-outline-info"
href="#">
{{ $__t('Clear filter') }}
</a>
</div>
</div>
</div>
<div class="row">