{% extends "client/base.html" %} {% load i18n %} {% load admin_urls %} {% load static %} {% load rules %} {% load sous_chef_extras %} {% block title %} {{client}} - {% trans "Food preferences" %} {% endblock %} {% block subcontent %} {% has_perm 'sous_chef.edit' request.user as can_edit_data %}

{% trans 'Meal information' %}
{% trans "Meal information of the referent person" %}.

{% if can_edit_data %} {% trans "Edit" %} {% endif %}

{% trans 'Meal status' %}

{{client.get_status_display}}

{% trans 'Delivery type' %}

{{client.get_delivery_type_display}} {% if client.delivery_type == 'O' %} {% for day, day_display in delivery_days %} {{ day_display }} {% endfor %}
{% endif %}

{% trans 'Meal defaults' %}

{% for tuple__day__day_display in weekdays %} {% endfor %} {% trans "No information provided." as help_text %} {% with empty_text="-" %} {% for component, component_display in components %} {% for day, day_display in weekdays %} {% endfor %} {% endfor %} {% endwith %}
{{ tuple__day__day_display.1|slice:":3" }} {% if client.delivery_type == 'O' and tuple__day__day_display in delivery_days %}{% endif %}
{{ component_display }} {{ meals_default|get_item:day|get_item:component|default_if_none:empty_text }}{% if component == "main_dish" %}{% with size=meals_default|get_item:day|get_item:"size" %}{% with size_str=size_choices|get_item:size %}{% if size %}{{ size }}{% endif %}{% endwith %}{% endwith %}{% endif %}

{% trans 'Restrictions' %}

{% for restricted_item in client.restrictions.all %}
{{ restricted_item.name }}
{% empty %}
{% trans "Yipee! No restriction" %}.
{% endfor %}

{% trans 'Food preparation' %}

{% for option in client.food_preparation %}
{{ option.name }}
{% empty %}
{% trans "Nope! Nothing specific" %}.
{% endfor %}

{% trans 'Ingredients to avoid' %}

{% for ingredient_to_avoid in client.ingredients_to_avoid.all %}
{{ ingredient_to_avoid.name }}
{% empty %}
{% trans "Yeah! Likes everything" %}!
{% endfor %}

{% trans 'Dish(es) to avoid' %}

{% for component_to_avoid in client.components_to_avoid.all %}
{{ component_to_avoid.name }}
{% empty %}
{% trans "Yeah! Likes everything" %}!
{% endfor %}
{% endblock %}