{% extends "base.html" %} {% load i18n %} {% load l10n %} {% load static %} {% load sous_chef_extras %} {% block title %} {% trans 'Place orders' %} {% endblock %} {% block extrahead %} {% comment %} Wash out jquery UI css on other semantic UI elements by importing it again. {% endcomment %} {% endblock %} {% block content %}
{% csrf_token %}
{{ form.client }} {{ form.client.errors }}
{{ form.delivery_dates }}
{% if delivery_dates %}
{% for date, date_obj, default_json in delivery_dates %}
{{ date_obj|date:"DATE_FORMAT"|capfirst }}
{% for meal, Meal in meals %} {% endfor %}
{% trans 'Size' %} {% trans 'Component' %} {% trans 'Quantity' %}
{% if meal == "main_dish" %} {% with "size_"|add:date as field_name %} {% with form|get_item:field_name as field %}
{{ field }} {{ field.errors }}
{% endwith %} {% endwith %} {% endif %}
{{ Meal }} {% with meal|add:"_"|add:date|add:"_quantity" as field_name %} {% with form|get_item:field_name as field %}
{{ field }} {{ field.errors }}
{% endwith %} {% endwith %}
{% with "delivery_"|add:date as field_name %} {% with form|get_item:field_name as field %}
{{ field }} {{ field.errors }}
{% endwith %} {% endwith %}
{% with "pickup_"|add:date as field_name %} {% with form|get_item:field_name as field %}
{{ field }} {{ field.errors }}
{% endwith %} {% endwith %}
{% with "visit_"|add:date as field_name %} {% with form|get_item:field_name as field %}
{{ field }} {{ field.errors }}
{% endwith %} {% endwith %}
{% endfor %}
{% else %}
{% trans 'Please select one or multiple delivery dates.' %}
{% endif %} {% if show_override_modal %} {% endif %}
{% endblock %} {% block extrajs %} {% if debug %} {% else %} {% endif %} {% comment %} Wash out jquery UI js on other semantic UI elements by importing it again. {% endcomment %} {% endblock %}