mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Always show the add item button on the shopping list on mobile (closes #1645)
This commit is contained in:
parent
86aa8f19f7
commit
f5562602f0
@ -27,6 +27,10 @@
|
|||||||
</h2>
|
</h2>
|
||||||
@endif
|
@endif
|
||||||
<div class="float-right">
|
<div class="float-right">
|
||||||
|
<button class="btn btn-primary responsive-button d-md-none mt-2 order-1 order-md-3 show-as-dialog-link"
|
||||||
|
href="{{ $U('/shoppinglistitem/new?embedded&list=' . $selectedShoppingListId) }}">
|
||||||
|
{{ $__t('Add item') }}
|
||||||
|
</button>
|
||||||
<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"
|
||||||
data-toggle="collapse"
|
data-toggle="collapse"
|
||||||
@ -84,7 +88,7 @@
|
|||||||
class="collapse normal-message status-filter-message responsive-button @if(!GROCY_FEATURE_FLAG_STOCK) d-none @else d-md-inline-block @endif"><span class="d-block d-md-none">{{count($missingProducts)}} <i class="fas fa-exclamation-circle"></i></span><span class="d-none d-md-block">{{ $__n(count($missingProducts), '%s product is below defined min. stock amount', '%s products are below defined min. stock amount') }}</span></div>
|
class="collapse normal-message status-filter-message responsive-button @if(!GROCY_FEATURE_FLAG_STOCK) d-none @else d-md-inline-block @endif"><span class="d-block d-md-none">{{count($missingProducts)}} <i class="fas fa-exclamation-circle"></i></span><span class="d-none d-md-block">{{ $__n(count($missingProducts), '%s product is below defined min. stock amount', '%s products are below defined min. stock amount') }}</span></div>
|
||||||
<div id="related-links"
|
<div id="related-links"
|
||||||
class="float-right mt-1 collapse d-md-block">
|
class="float-right mt-1 collapse d-md-block">
|
||||||
<a class="btn btn-primary responsive-button btn-sm mb-1 show-as-dialog-link"
|
<a class="btn btn-primary responsive-button btn-sm mb-1 show-as-dialog-link d-none d-md-inline-block"
|
||||||
href="{{ $U('/shoppinglistitem/new?embedded&list=' . $selectedShoppingListId) }}">
|
href="{{ $U('/shoppinglistitem/new?embedded&list=' . $selectedShoppingListId) }}">
|
||||||
{{ $__t('Add item') }}
|
{{ $__t('Add item') }}
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user