mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 20:26:42 +00:00
Fixed shopping list print button when FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS was disabled (references #1199)
This commit is contained in:
@@ -20,7 +20,6 @@
|
|||||||
<h2 class="title mr-2 order-0">
|
<h2 class="title mr-2 order-0">
|
||||||
@yield('title')
|
@yield('title')
|
||||||
</h2>
|
</h2>
|
||||||
@if(GROCY_FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS)
|
|
||||||
<div class="float-right">
|
<div class="float-right">
|
||||||
<button class="btn btn-outline-dark d-md-none mt-2 order-1 order-md-3"
|
<button class="btn btn-outline-dark d-md-none mt-2 order-1 order-md-3"
|
||||||
type="button"
|
type="button"
|
||||||
@@ -37,6 +36,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="related-links collapse d-md-flex order-2 width-xs-sm-100"
|
<div class="related-links collapse d-md-flex order-2 width-xs-sm-100"
|
||||||
id="related-links">
|
id="related-links">
|
||||||
|
@if(GROCY_FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS)
|
||||||
<div class="my-auto float-right">
|
<div class="my-auto float-right">
|
||||||
<select class="custom-control custom-select custom-select-sm"
|
<select class="custom-control custom-select custom-select-sm"
|
||||||
id="selected-shopping-list">
|
id="selected-shopping-list">
|
||||||
@@ -58,26 +58,18 @@
|
|||||||
href="#">
|
href="#">
|
||||||
{{ $__t('Delete shopping list') }}
|
{{ $__t('Delete shopping list') }}
|
||||||
</a>
|
</a>
|
||||||
|
@else
|
||||||
|
<input type="hidden"
|
||||||
|
name="selected-shopping-list"
|
||||||
|
id="selected-shopping-list"
|
||||||
|
value="1">
|
||||||
|
@endif
|
||||||
<a id="print-shopping-list-button"
|
<a id="print-shopping-list-button"
|
||||||
class="btn btn-outline-dark responsive-button m-1 mt-md-0 mb-md-0 float-right"
|
class="btn btn-outline-dark responsive-button m-1 mt-md-0 mb-md-0 float-right"
|
||||||
href="#">
|
href="#">
|
||||||
{{ $__t('Print') }}
|
{{ $__t('Print') }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@else
|
|
||||||
<div class="float-right">
|
|
||||||
<button class="btn btn-outline-dark d-md-none mt-1 order-1 order-md-3"
|
|
||||||
type="button"
|
|
||||||
data-toggle="collapse"
|
|
||||||
data-target="#table-filter-row">
|
|
||||||
<i class="fas fa-filter"></i>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<input type="hidden"
|
|
||||||
name="selected-shopping-list"
|
|
||||||
id="selected-shopping-list"
|
|
||||||
value="1">
|
|
||||||
@endif
|
|
||||||
</div>
|
</div>
|
||||||
<div class="border-top border-bottom my-2 py-1">
|
<div class="border-top border-bottom my-2 py-1">
|
||||||
<div id="table-filter-row"
|
<div id="table-filter-row"
|
||||||
|
Reference in New Issue
Block a user