{% extends "base.html" %} {% load i18n %} {% load staticfiles %} {% load wger_extras %} {# #} {# Opengraph #} {# #} {% block opengraph %} {{ block.super }} {% endblock %} {# #} {# Title #} {# #} {% block title %}{% trans "Nutrition plan" %} – {{ plan.creation_date}}{% endblock %} {# #} {# Header #} {# #} {% block header %} {% endblock %} {# #} {# Content #} {# #} {% block content %} {% if plan.description %}

{% trans "Goal" %}: {{plan.description}}

{% endif %} {% for meal in plan.meal_set.select_related %} {% for item in meal.mealitem_set.select_related %} {% ifchanged meal.pk %} {% endifchanged %} {% empty %} {% if is_owner %} {% endif %} {% endfor %} {% empty %} {% if is_owner %}

{% trans "No meals for this plan." %} {% trans "Add one now." %}

{% endif %} {% endfor %} {% if is_owner %} {% endif %}
{% trans "Meal" %} {% trans "Contents" %} {% trans "Energy" %} {% trans "Protein" %} {% trans "Carbohydrates" %} {% trans "Fat" %}
{% trans 'kcal' %} {% trans_weight_unit 'g' owner_user %} {% trans_weight_unit 'g' owner_user %} {% trans_weight_unit 'g' owner_user %}
{% trans "Nr."%} {{ forloop.parentloop.counter }} {% if meal.time %} – {{meal.time|time:"H:i"}}{% endif %} {% if is_owner %} {% endif %} {% if item.get_unit_type == MEALITEM_WEIGHT_GRAM %}{{ item.amount|floatformat:"0" }}g {% else %} {{ item.amount|floatformat:"0" }} × {{ item.weight_unit.unit.name }} {% endif %} {{ item.ingredient.name }} {% if is_owner %} {% endif %} {{item.get_nutritional_values.energy|floatformat}} {{item.get_nutritional_values.protein|floatformat}} {{item.get_nutritional_values.carbohydrates|floatformat}} {{item.get_nutritional_values.fat|floatformat}}
{% trans "No items for this meal." %} {% trans "Add one now."%}
{% trans "Add a new meal" %}

{% trans "Nutritional data" %}

{% if weight_entry %} {% blocktrans with date=weight_entry.date weight=weight_entry.weight %}
Based on the weight entry dated {{date}} ({{weight}})
{% endblocktrans %} {% endif %}
{% trans "Macronutrients" %} {% trans "Total" %} {% trans "Percent of energy" %} {% if owner_user.userprofile.use_metric %} {% trans "g per body kg" %} {% else %} {% trans "oz per body lb" %} {% endif %}
{% trans "Energy" %} {{nutritional_data.total.energy|floatformat}} {% trans "kcal" %}
{% trans "Protein" %} {{nutritional_data.total.protein|floatformat}} {% trans_weight_unit 'g' owner_user %} {{nutritional_data.percent.protein|floatformat}} % {{nutritional_data.per_kg.protein|floatformat:2}}
{% trans "Carbohydrates" %} {{nutritional_data.total.carbohydrates|floatformat}} {% trans_weight_unit 'g' owner_user %} {{nutritional_data.percent.carbohydrates|floatformat}} % {{nutritional_data.per_kg.carbohydrates|floatformat:2}}
{% trans "Sugar content in carbohydrates" %} {{nutritional_data.total.carbohydrates_sugar|floatformat}} {% trans_weight_unit 'g' owner_user %}
{% trans "Fat" %} {{nutritional_data.total.fat|floatformat}} {% trans_weight_unit 'g' owner_user %} {{nutritional_data.percent.fat|floatformat}} % {{nutritional_data.per_kg.fat|floatformat:2}}
{% trans "Saturated fat content in fats" %} {{nutritional_data.total.fat_saturated|floatformat}} {% trans_weight_unit 'g' owner_user %}
{% trans "Others" %}
{% trans "Fibres" %} {{nutritional_data.total.fibres|floatformat}} {% trans_weight_unit 'g' owner_user %}
{% trans "Sodium" %} {{nutritional_data.total.sodium|floatformat}} {% trans_weight_unit 'g' owner_user %}
{% endblock %} {# #} {# Side bar #} {# #} {% block sidebar %}

{% trans "Energy" %}

{% if is_owner and owner_user.userprofile.calories and plan.has_goal_calories %} {% with total=plan.get_calories_approximation %} {% endwith %} {% endif %}
{% trans "Energy" %} {{nutritional_data.total.energy|floatformat}} {% trans "kcal" %}
{% trans "Goal" %} {{owner_user.userprofile.calories}} {% trans "kcal" %}
{% if is_owner and 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 %} {% if language.short_name != 'en' and is_owner %}

{% 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" %}.

{% endif %} {% endblock %} {# #} {# Options #} {# #} {% block options %}
{% endblock %}