{% extends "base.html" %} {% load i18n %} {% load staticfiles %} {% block title %}{% trans "Nutrition plan" %} – {{ plan.creation_date}}{% endblock %} {% block header %} {% endblock %} {% block content %} {% if plan.description %}

{{plan.description}}

{% endif %} {% for meal in plan.meal_set.select_related %}

{% trans "Options" %}

{% trans 'Delete meal' %} {% trans "Delete meal" %} {% trans 'Edit meal' %} {% trans "Edit meal" %} {% trans 'Add item to meal' %} {% trans "Add item to meal" %}
{% for item in meal.mealitem_set.select_related %}

{% trans "Options" %}

{{item.ingredient}}

{% trans "Nutritional data" %}
{% trans "Energy" %} {{item.get_nutritional_values.energy|floatformat}} kcal
{% trans "Protein" %} {{item.get_nutritional_values.protein|floatformat}} g
{% trans "Carbohydrates" %} {{item.get_nutritional_values.carbohydrates|floatformat}} g
{% trans "Fat" %} {{item.get_nutritional_values.fat|floatformat}} g
{% trans 'Delete' %} {% trans "Delete" %} {% trans 'Edit' %} {% trans "Edit" %}
{% endfor %} {% endfor %} {% for meal in plan.meal_set.select_related %} {% empty %} {% trans "No meals for this plan." %}
{% trans "Add one now." %}
{% endfor %}

{% trans "Add a new meal" %}

{% if language.short_name != 'en' %}

{% trans "If you find the ingredient list too short, you might want to activate the preference to also show English ingredients." %} {% trans "That's done here" %}: {% if user.userprofile.show_english_ingredients %} {% else %} {% endif %}

{% endif %} {% endblock %} {% block sidebar %}

{% trans "Energy" %}

{% if user.userprofile.calories and plan.has_goal_calories %} {% with total=plan.get_calories_approximation %} {% endwith %} {% endif %}
{% trans "Energy" %} {{nutritional_data.total.energy|floatformat:"0"}} kcal
{% trans "Goal" %} {{user.userprofile.calories|floatformat:"0"}} kcal
{% if plan.has_goal_calories %}

{% blocktrans %}You have selected that this nutritional plan has a goal amount of calories. Use the calculator or enter the value yourself.{% endblocktrans %} {% trans "That's done here" %}

{% endif %}

{% trans "Nutritional data" %}

{% trans "Macronutrients" %} {% trans "Total" %} {% trans "Percent of energy" %} {% trans "g per body kg" %}
{% trans "Energy" %} {{nutritional_data.total.energy|floatformat}} kcal
{% trans "Protein" %} {{nutritional_data.total.protein|floatformat}} g {{nutritional_data.percent.protein|floatformat}} % {{nutritional_data.per_kg.protein|floatformat}}
{% trans "Carbohydrates" %} {{nutritional_data.total.carbohydrates|floatformat}} g {{nutritional_data.percent.carbohydrates|floatformat}} % {{nutritional_data.per_kg.carbohydrates|floatformat}}
{% trans "Sugar content in carbohydrates" %} {{nutritional_data.total.carbohydrates_sugar|floatformat}} g
{% trans "Fat" %} {{nutritional_data.total.fat|floatformat}} g {{nutritional_data.percent.fat|floatformat}} % {{nutritional_data.per_kg.fat|floatformat}}
{% trans "Saturated fat content in fats" %} {{nutritional_data.total.fat_saturated|floatformat}} g
{% trans "Others" %}
{% trans "Fibres" %} {{nutritional_data.total.fibres|floatformat}} g
{% trans "Sodium" %} {{nutritional_data.total.sodium|floatformat}} g

{% trans "Options" %}

{% trans 'Download as PDF' %} {% trans "Download as PDF" %} {% trans 'Edit nutrition plan' %} {% trans "Edit nutrition plan" %} {% trans 'Make a copy of this nutrition plan' %} {% trans "Make a copy of this nutrition plan" %} {% trans 'Delete nutrition plan' %} {% trans "Delete nutrition plan" %} {% endblock %}