mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +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);
|
||||
|
@@ -28,6 +28,23 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox"
|
||||
class="form-check-input custom-control-input user-setting-control"
|
||||
id="recipes_show_ingredient_checkbox"
|
||||
data-setting-key="recipes_show_ingredient_checkbox">
|
||||
<label class="form-check-label custom-control-label"
|
||||
for="recipes_show_ingredient_checkbox">
|
||||
{{ $__t('Show a little checkbox next to each ingredient to mark it as done') }}
|
||||
<i class="fas fa-question-circle text-muted"
|
||||
data-toggle="tooltip"
|
||||
data-trigger="hover click"
|
||||
title="{{ $__t('The ingredient is crossed out when clicked, the status is not saved, means reset when the page is reloaded') }}"></i>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4 class="mt-2">{{ $__t('Recipe card') }}</h4>
|
||||
<div class="form-group">
|
||||
<div class="custom-control custom-checkbox">
|
||||
|
Reference in New Issue
Block a user