{% extends "base.html" %} {% load i18n static 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 %}

{{plan.description}}

{% endif %} {% if is_owner %} {% for meal in plan.meal_set.select_related %} {% for item in meal.mealitem_set.select_related %} {% endfor %} {% endfor %} {% endif %} {% for meal in plan.meal_set.select_related %}
{% if is_owner %} {% endif %} {% trans "Nr."%} {{ forloop.counter }} {% if meal.time %} – {{meal.time|time:"H:i"}}{% endif %} {% for item in meal.mealitem_set.select_related %} {% if is_owner %} {% endif %}

{{ item.ingredient.name }}

{% if item.get_unit_type == MEALITEM_WEIGHT_GRAM %}{{ item.amount|floatformat:"0" }}g {% else %} {{ item.amount|floatformat:"0" }} × {{ item.weight_unit.unit.name }} {% endif %}

{% if forloop.last and is_owner %} {% trans "Add item to meal" %} {% endif %} {% empty %} {% if is_owner %} {% trans "No items for this meal." %}
{% trans "Add one now." %}
{% endif %} {% endfor %}
{% empty %} {% if is_owner %} {% trans "No meals for this plan." %}
{% trans "Add one now." %}
{% endif %} {% endfor %} {% if is_owner %}

{% trans "Add a new meal" %}

{% endif %} {% if is_owner and 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 owner_user.userprofile.show_english_ingredients %} {% else %} {% endif %}

{% endif %} {% 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:"0"}} {% trans "kcal" %}
{% trans "Goal" %} {{owner_user.userprofile.calories|floatformat:"0"}} {% 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 %}

{% trans "Nutritional data" %}

{% 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 %} {# #} {# Options #} {# #} {% block options %}
{% endblock %}