{% extends 'planner/base.html' %}{% load static %} {% block title %}Add food · Tasknest{% endblock %} {% block content %}
← Back to diary

Add food

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

{{ product.product_name }}

{% 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 %} {% for field in form %}
{{ field.label_tag }}{{ field }}{{ field.errors }}
{% endfor %}
{% else %}
Create a food manually Search Open Food Facts
{% csrf_token %}

External product data from Open Food Facts.

{% endif %}
{% endblock %}