mirror of https://github.com/kcal-app/kcal.git
Update journal entry from nutrients for new nutrients format
This commit is contained in:
parent
713da8f728
commit
0b862dc7e9
|
@ -56,14 +56,14 @@
|
||||||
<!-- {{ ucfirst($nutrient['value']) }} -->
|
<!-- {{ ucfirst($nutrient['value']) }} -->
|
||||||
<div class="flex-auto">
|
<div class="flex-auto">
|
||||||
<x-inputs.label for="{{ $nutrient['value'] }}"
|
<x-inputs.label for="{{ $nutrient['value'] }}"
|
||||||
:value="ucfirst($nutrient) . ' (g)'"/>
|
:value="ucfirst($nutrient['value']) . ($nutrient['unit'] ? ' (' . $nutrient['unit'] . ')' : '')"/>
|
||||||
|
|
||||||
<x-inputs.input id="{{ $nutrient['value'] }}"
|
<x-inputs.input id="{{ $nutrient['value'] }}"
|
||||||
class="block w-full"
|
class="block w-full"
|
||||||
type="number"
|
type="number"
|
||||||
step="any"
|
step="any"
|
||||||
name="{{ $nutrient['value'] }}"
|
name="{{ $nutrient['value'] }}"
|
||||||
:value="old($nutrient)"/>
|
:value="old($nutrient['value'])"/>
|
||||||
</div>
|
</div>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue