Show a little optional checkbox to mark recipe ingredients as done (closes #1606)

This commit is contained in:
Bernd Bestel
2022-04-01 22:43:49 +02:00
parent ba289d6e6a
commit 8c1deefebf
7 changed files with 51 additions and 0 deletions

View File

@@ -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);