{% extends 'shop_base.html' %} {% load bootstrap3 %} {% load shop_tags %} {% block shop_content %}

Orders

{% for order in orders %} {% if order.products.exists %} {% endif %} {% endfor %}
Order ID Items Total amount Open? Paid? Delivered? Invoice Actions
{{ order.id }} {{ order.get_number_of_items }} {{ order.total|currency }} {{ order.open|truefalseicon }} {{ order.paid|truefalseicon }} {{ order.handed_out_status }} {% if order.invoice.pdf %} {% url 'shop:download_invoice' pk=order.pk as invoice_download_url %} {% bootstrap_button "PDF" icon="save-file" href=invoice_download_url button_class="btn-primary btn-xs" %} {% else %} N/A {% endif %} {% url 'shop:order_detail' pk=order.pk as order_detail_url %} {% bootstrap_button "Order details" icon="th-list" href=order_detail_url button_class="btn-primary btn-xs" %}
{% endblock %}