{% extends "base.html" %} {% load i18n %} {% load staticfiles %} {% load wger_extras %} {% block title %}{{ingredient.name}}{% endblock %} {% block header %} {% endblock %} {% block content %} {% if ingredient.status == ingredient.INGREDIENT_STATUS_PENDING %}

{% trans "Ingredient is pending review" %}

{% blocktrans %}This user submitted ingredient is pending a decision to be included in the database. Till then, it will not be shown in the overview or the search.{% endblocktrans %} {% if perms.exercises %}{% trans "Please select one of the options below." %}{% endif %}

{% if perms.exercises %}
{% endif %} {# end check permissions #}
{% endif %} {# end ingredient is pending review #}
{% csrf_token %}
{% trans 'Nutritional values in' %}
{{form.amount}}
{{form.unit}}
{% trans "Macronutrients" %}
{% trans "Energy" %} {{ingredient.energy}} kcal
{% trans "Protein" %} {{ingredient.protein}} g
{% trans "Carbohydrates" %} {{ingredient.carbohydrates}} g
{% trans "Sugar content in carbohydrates" %} {% if ingredient.carbohydrates_sugar %} {{ingredient.carbohydrates_sugar}} g {% else %} {% trans "n.A." %} {% endif %}
{% trans "Fat" %} {{ingredient.fat}} g
{% trans "Saturated fat content in fats" %} {% if ingredient.fat_saturated %} {{ingredient.fat_saturated}} g {% else %} {% trans "n.A." %} {% endif %}
{% trans "Others" %}
{% trans "Fibres" %} {% if ingredient.fibres %} {{ingredient.fibres}} g {% else %} {% trans "n.A." %} {% endif %}
{% trans "Sodium" %} {% if ingredient.sodium %} {{ingredient.sodium}} g {% else %} {% trans "n.A." %} {% endif %}
{% endblock %} {% block sidebar %} {% if ingredient.status == ingredient.INGREDIENT_STATUS_ACCEPTED %}

{% trans "User submitted ingredient" %}

{% with username=ingredient.user.username %}

{% blocktrans %}This exercise was submitted by {{username}}.{% endblocktrans %} {% endwith %}

{% endif %} {% if perms.exercises %}

{% trans "Options" %}

{% trans 'Delete ingredient' %} {% trans 'Delete ingredient' %}

{% trans 'Edit ingredient' %} {% trans 'Edit ingredient' %}

{% trans "Weight units" %}

{% trans 'Add new weight unit' %} {% trans "Add new weight unit" %}

{% if ingredient.ingredientweightunit_set.exists %} {% for unit in ingredient.ingredientweightunit_set.select_related %} {% endfor %}
{% trans "Name" %}
{{unit.amount}} {{unit.unit.name}} = {{unit.gramm}}g {% trans 'Edit' %} {% trans 'Delete' %}
{% endif %} {% endif %} {% license_sidebar ingredient.license ingredient.license_author %} {% endblock %}