mirror of
https://github.com/grocy/grocy.git
synced 2025-04-30 01:55:47 +00:00
View base servings on recipecard (#555)
This commit is contained in:
parent
5a65f37f4a
commit
7be2d94cf7
@ -53,7 +53,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{ $__t('Name') }}</th>
|
<th>{{ $__t('Name') }}</th>
|
||||||
<th>{{ $__t('Servings') }}</th>
|
<th>{{ $__t('Desired Servings') }}</th>
|
||||||
<th>{{ $__t('Requirements fulfilled') }}</th>
|
<th>{{ $__t('Requirements fulfilled') }}</th>
|
||||||
<th class="d-none">Hidden status for sorting of "Requirements fulfilled" column</th>
|
<th class="d-none">Hidden status for sorting of "Requirements fulfilled" column</th>
|
||||||
<th class="d-none">Hidden status for filtering by status</th>
|
<th class="d-none">Hidden status for filtering by status</th>
|
||||||
@ -155,11 +155,12 @@
|
|||||||
<div class="col-4">
|
<div class="col-4">
|
||||||
@include('components.numberpicker', array(
|
@include('components.numberpicker', array(
|
||||||
'id' => 'servings-scale',
|
'id' => 'servings-scale',
|
||||||
'label' => 'Servings',
|
'label' => 'Desired Servings',
|
||||||
'min' => 1,
|
'min' => 1,
|
||||||
'value' => $selectedRecipe->desired_servings,
|
'value' => $selectedRecipe->desired_servings,
|
||||||
'invalidFeedback' => $__t('This cannot be lower than %s', '1'),
|
'invalidFeedback' => $__t('This cannot be lower than %s', '1'),
|
||||||
'additionalAttributes' => 'data-recipe-id="' . $selectedRecipe->id . '"'
|
'additionalAttributes' => 'data-recipe-id="' . $selectedRecipe->id . '"',
|
||||||
|
'hint' => $__t('Initial Base Servings:%s', $selectedRecipe->base_servings)
|
||||||
))
|
))
|
||||||
</div>
|
</div>
|
||||||
@if(!empty($selectedRecipeTotalCalories) && intval($selectedRecipeTotalCalories) > 0)
|
@if(!empty($selectedRecipeTotalCalories) && intval($selectedRecipeTotalCalories) > 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user