{% extends "oscar/customer/baseaccountpage.html" %} {% load currency_filters %} {% load i18n %} {% load static %} {% block tabcontent %} {% if orders or form.is_bound %}
Filter

{% trans "Filter" %}

{% for field in form %} {% if field.name == "date_from" or field.name == "date_to" %}
{% else %}
{% endif %} {% if field.name == "order_number" %} {% include "oscar/partials/form_field.html" with field=field placeholder=field.label nolabel=True %} {% else %} {% include "oscar/partials/form_field.html" with field=field placeholder=field.label %} {% endif %}
{% endfor %}
{% trans 'Reset' %}
{% endif %} {% if orders %} {% block table_heading %} {% endblock table_heading %} {% for order in orders %} {% block table_data %} {% block additional_row_data %}{% endblock additional_row_data %} {% endblock table_data %} {% endfor %}
{% trans "Order number" %} {% trans "Date submitted" %} {% trans "Num items" %} {% trans "Total inc tax" %} {% trans "Status" %}
{{ order.number }} {{ order.date_placed|date:"d-m-Y" }} {{ order.num_items }} {{ order.total_incl_tax|currency:order.currency }} {% if order.status in "paid,completed" %} {% else %} {% trans order.status %} {% endif %} {% if order.status in "new,pending-payment" %} {% trans "Pay now" %} {% endif %}
{% include "oscar/partials/pagination.html" %} {% else %} {% if form.is_bound %}

{% trans "No orders match your search." %}

{% else %}

{% trans "You haven't placed any orders." %}

{% endif %} {% endif %} {% endblock tabcontent %}