display weight
This commit is contained in:
parent
5bfcb3ea9a
commit
b02a0ac6ad
5 changed files with 8 additions and 8 deletions
|
|
@ -6,16 +6,12 @@
|
|||
<div class="amounts">
|
||||
<p class="unit">
|
||||
<!-- <sup>1</sup>⁄<sub>4</sub> Cup -->
|
||||
{{ food.portion }}
|
||||
{{ food.portion }} ({{ food.portion_weight }} g)
|
||||
</p>
|
||||
<p class="kc">
|
||||
{{ food.kc_per_serving }} kc
|
||||
</p>
|
||||
</div>
|
||||
<div class="buttons">
|
||||
<button class="increase" hx-post="/increase/{{ food.id }}" hx-target="#card-{{ food.id }}">+</button>
|
||||
<button class="decrease" hx-post="/decrease/{{ food.id }}" hx-target="#card-{{ food.id }}">-</button>
|
||||
</div>
|
||||
<div class="checkboxes">
|
||||
{% for counter in self::range(10) %}
|
||||
{% if loop.index as i32 <= food.target_servings %}
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@
|
|||
}
|
||||
|
||||
.amounts {
|
||||
width: 4em;
|
||||
width: 8em;
|
||||
}
|
||||
|
||||
.increase {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue