{% extends "base.html" %} {% load i18n %} {% load static %} {% load rules %} {% block title %} {% trans 'Orders' %} {% endblock %} {% block extrajs %} {% endblock %} {% block content %} {% has_perm 'sous_chef.edit' request.user as can_edit_data %}
{% if can_edit_data %} {% trans 'New orders' %}
{% trans 'Or' %}
{% endif %} {% include 'order/partials/filters.html' %}
{% if orders %} {% for order in orders %} {% include "order_confirm_delete.html" %} {% endfor %}
{% trans 'Order' %} {% trans 'Client' %} {% trans 'Delivery Date' %} {% trans 'Status' %} {% trans 'Amount' %} {% trans 'Actions' %}
{{order.id}} {{order.client.member}} {% if order.client_planned_status_at_delivery != 'A' %} ({{ order.client_planned_status_at_delivery_verbose }}) {% endif %} {{order.delivery_date}} {{order.get_status_display}} {{order.price}} {% if can_edit_data %} {% if order.status == 'O' %} {% endif %} {% endif %}
{% include "system/_button_export.html" %}
{% if is_paginated %} {% endif %} {% else %}

{% trans "Sorry, no result found" %}.

{% endif %} {# To display the cancel dialog. #} {% if can_edit_data %} {% endif %} {% endblock %}