mirror of
https://github.com/grocy/grocy.git
synced 2025-08-28 17:10:11 +00:00
Show a little optional checkbox to mark recipe ingredients as done (closes #1606)
This commit is contained in:
@@ -468,6 +468,15 @@
|
||||
@if($selectedRecipePosition->product_active == 0)
|
||||
<div class="small text-muted font-italic">{{ $__t('Disabled') }}</div>
|
||||
@endif
|
||||
@if($userSettings['recipes_show_ingredient_checkbox'])
|
||||
<a class="btn btn-link btn-xs cursor-pointer ingredient-done-button"
|
||||
href="#"
|
||||
data-toggle="tooltip"
|
||||
data-placement="right"
|
||||
title="{{ $__t('Mark this item as done') }}">
|
||||
<i class="far fa-check-circle"></i>
|
||||
</a>
|
||||
@endif
|
||||
@php
|
||||
$product = FindObjectInArrayByPropertyValue($products, 'id', $selectedRecipePosition->product_id);
|
||||
$productQuConversions = FindAllObjectsInArrayByPropertyValue($quantityUnitConversionsResolved, 'product_id', $product->id);
|
||||
|
Reference in New Issue
Block a user