mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Added a "Clear done items" button to the shopping list (closes #1999)
This commit is contained in:
@@ -92,11 +92,18 @@
|
||||
href="{{ $U('/shoppinglistitem/new?embedded&list=' . $selectedShoppingListId) }}">
|
||||
{{ $__t('Add item') }}
|
||||
</a>
|
||||
<a id="clear-shopping-list"
|
||||
class="btn btn-outline-danger btn-sm mb-1 responsive-button @if($listItems->count() == 0) disabled @endif"
|
||||
href="#">
|
||||
{{ $__t('Clear list') }}
|
||||
</a>
|
||||
<div class="btn-group">
|
||||
<a id="clear-shopping-list"
|
||||
class="btn btn-outline-danger btn-sm mb-1 responsive-button @if($listItems->count() == 0) disabled @endif"
|
||||
href="#">
|
||||
{{ $__t('Clear list') }}
|
||||
</a>
|
||||
<a id="clear-done-items"
|
||||
class="btn btn-outline-danger btn-sm mb-1 responsive-button @if($listItems->count() == 0) disabled @endif"
|
||||
href="#">
|
||||
{{ $__t('Clear done items') }}
|
||||
</a>
|
||||
</div>
|
||||
<a id="add-all-items-to-stock-button"
|
||||
class="btn btn-outline-primary btn-sm mb-1 responsive-button @if(!GROCY_FEATURE_FLAG_STOCK) d-none @endif"
|
||||
href="#">
|
||||
|
Reference in New Issue
Block a user