{% extends "base.html" %} {% load i18n staticfiles wger_extras django_bootstrap_breadcrumbs %} {% block title %}{{ingredient.name}}{% endblock %} {% block header %} {% endblock %} {% block breadcrumbs %} {{ block.super }} {% breadcrumb "Ingredients" "nutrition:ingredient:list" %} {% breadcrumb ingredient ingredient.get_absolute_url %} {% 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 #}
{% trans 'Nutritional values in' %}
{{form.amount|form_field_add_css:'form-control'}}
{{form.unit|form_field_add_css:'form-control'}}
{% trans "Macronutrients" %}
{% trans "Energy" %} {{ingredient.energy}} {% trans "kcal" %}
{% trans "Protein" %} {{ingredient.protein}} {% trans "g" context "weight unit, i.e. grams" %}
{% trans "Carbohydrates" %} {{ingredient.carbohydrates}} {% trans "g" context "weight unit, i.e. grams" %}
{% trans "Sugar content in carbohydrates" %} {% if ingredient.carbohydrates_sugar %} {{ingredient.carbohydrates_sugar}} {% trans "g" context "weight unit, i.e. grams" %} {% else %} {% trans "n.A." %} {% endif %}
{% trans "Fat" %} {{ingredient.fat}} {% trans "g" context "weight unit, i.e. grams" %}
{% trans "Saturated fat content in fats" %} {% if ingredient.fat_saturated %} {{ingredient.fat_saturated}} {% trans "g" context "weight unit, i.e. grams" %} {% else %} {% trans "n.A." %} {% endif %}
{% trans "Others" %}
{% trans "Fibres" %} {% if ingredient.fibres %} {{ingredient.fibres}} {% trans "g" context "weight unit, i.e. grams" %} {% else %} {% trans "n.A." %} {% endif %}
{% trans "Sodium" %} {% if ingredient.sodium %} {{ingredient.sodium}} {% trans "g" context "weight unit, i.e. grams" %} {% 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.gram}}g {% trans 'Edit' %} {% trans 'Delete' %}
{% endif %} {% endif %} {% license_sidebar ingredient.license author %} {% endblock %}