Update journal entry from nutrients for new nutrients format

This commit is contained in:
Christopher C. Wells 2021-02-11 06:51:03 -08:00
parent 713da8f728
commit 0b862dc7e9
1 changed files with 2 additions and 2 deletions

View File

@ -56,14 +56,14 @@
<!-- {{ ucfirst($nutrient['value']) }} -->
<div class="flex-auto">
<x-inputs.label for="{{ $nutrient['value'] }}"
:value="ucfirst($nutrient) . ' (g)'"/>
:value="ucfirst($nutrient['value']) . ($nutrient['unit'] ? ' (' . $nutrient['unit'] . ')' : '')"/>
<x-inputs.input id="{{ $nutrient['value'] }}"
class="block w-full"
type="number"
step="any"
name="{{ $nutrient['value'] }}"
:value="old($nutrient)"/>
:value="old($nutrient['value'])"/>
</div>
@endforeach
</div>