{% load static food_quantity %}
← Back to diary

{{ entry.product_name_snapshot }}

{% if entry.brand_snapshot %}

{{ entry.brand_snapshot }}

{% endif %}

Nutrition at current quantity ({{ entry.quantity|quantity_display }}×):

{% if entry.effective_calories_kcal is not None %}{{ entry.effective_calories_kcal|floatformat:0 }} kcal{% else %}— kcal{% endif %} · {% if entry.effective_carbohydrates_g is not None %}{{ entry.effective_carbohydrates_g|floatformat:-1 }}{% else %}—{% endif %} g carbs · {% if entry.effective_protein_g is not None %}{{ entry.effective_protein_g|floatformat:-1 }}{% else %}—{% endif %} g protein · {% if entry.effective_fat_g is not None %}{{ entry.effective_fat_g|floatformat:-1 }}{% else %}—{% endif %} g fat

Nutrition information
Fibre
{{ entry.effective_fibre_g|default_if_none:'—' }} g
Sugars
{{ entry.effective_sugars_g|default_if_none:'—' }} g
Salt
{{ entry.effective_salt_g|default_if_none:'—' }} g
{% csrf_token %} {% include 'food/partials/portion_fields.html' %}
{{ form.quantity.label_tag }}{{ form.quantity }}{{ form.quantity.errors }}Multiplies the selected portion. For example, 2 means two of that portion.
Correct nutrition for this entry

Values are for one logged portion ({{ entry.amount|floatformat:-3 }} {{ entry.unit }}), before the quantity multiplier. Leave a value blank if unknown. This does not change the saved product.

{{ form.edit_nutrition.label_tag }}{{ form.edit_nutrition }}{{ form.edit_nutrition.errors }}Without this selection, nutrition scales automatically when the portion amount changes.
{{ form.calories_kcal.label_tag }}{{ form.calories_kcal }}{{ form.calories_kcal.errors }}
{{ form.carbohydrates_g.label_tag }}{{ form.carbohydrates_g }}{{ form.carbohydrates_g.errors }}
{{ form.protein_g.label_tag }}{{ form.protein_g }}{{ form.protein_g.errors }}
{{ form.fat_g.label_tag }}{{ form.fat_g }}{{ form.fat_g.errors }}
{{ form.fibre_g.label_tag }}{{ form.fibre_g }}{{ form.fibre_g.errors }}
{{ form.sugars_g.label_tag }}{{ form.sugars_g }}{{ form.sugars_g.errors }}
{{ form.salt_g.label_tag }}{{ form.salt_g }}{{ form.salt_g.errors }}
{% if product %}

Edit saved product nutrition for future logs

{% endif %}
{% csrf_token %}
{% if product %}{% endif %}