{% load static %}
← Back to diary

Add food

{% if product %}
{% if product.image_url %}{% endif %}

{{ product.product_name }}

{% include "food/partials/favourite_button.html" with is_favourite=product.is_favourite %}
{% if product.brand %}

{{ product.brand }}

{% endif %}

Per 100 {{ product.base_unit }}: {% if product.energy_kcal_100 is not None %}{{ product.energy_kcal_100|floatformat:0 }} kcal{% else %}— kcal{% endif %}

Nutrition information
Carbohydrates
{{ product.carbohydrates_100|default_if_none:'—' }} g
Protein
{{ product.protein_100|default_if_none:'—' }} g
Fat
{{ product.fat_100|default_if_none:'—' }} g
Sugars
{{ product.sugars_100|default_if_none:'—' }} g
Fibre
{{ product.fibre_100|default_if_none:'—' }} g
Salt
{{ product.salt_100|default_if_none:'—' }} g
{% if product.source == 'openfoodfacts' %}

Product data from Open Food Facts.

{% endif %}
{% csrf_token %} {% include 'food/partials/portion_fields.html' %}
{% else %} {% if tab == 'overview' and not query %}

Favourites

{% include 'food/partials/product_list.html' with products=favourites %}

Recent

{% include 'food/partials/product_list.html' with products=recents %}
{% else %}{% include 'food/partials/product_list.html' with products=products %}{% endif %}
Create a food manually Scan barcode Search Open Food Facts
{% csrf_token %}

External product data from Open Food Facts.

{% endif %}
{% if product %}{% endif %} {% if not product %}{% endif %}