{% 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 %}
{% for tuple__day__day_display in weekdays %} | {{ tuple__day__day_display.1|slice:":3" }} {% if client.delivery_type == 'O' and tuple__day__day_display in delivery_days %}{% endif %} | {% endfor %}
---|---|
{{ component_display }} | {% for day, day_display in weekdays %}{{ 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 %} | {% endfor %}