diff --git a/shop/templates/order_list.html b/shop/templates/order_list.html
index 7784bb9e..143181d6 100644
--- a/shop/templates/order_list.html
+++ b/shop/templates/order_list.html
@@ -7,6 +7,8 @@
Order ID |
+ Items |
+ Total amount |
Open? |
Paid? |
Delivered? |
@@ -15,17 +17,19 @@
{% for order in orders %}
-
+
{{ order.id }} |
+ {{ order.get_number_of_items }} |
+ {{ order.total }} |
{{ order.open }} |
{{ order.paid }} |
{{ order.handed_out_status }} |
- {% if not order.open and not order.paid %}
- {% url 'shop:order_detail' pk=order.pk as order_detail_url %}
+ {% url 'shop:order_detail' pk=order.pk as order_detail_url %}
+ {% bootstrap_button "Order details" href=order_detail_url button_class="btn-primary btn-small" %}
+ {% if not order.paid %}
{% url 'shop:order_cancel' pk=order.pk as order_cancel_url %}
- {% bootstrap_button "Order details" href=order_detail_url button_class="btn-primary" %}
- {% bootstrap_button "Cancel order" href=order_cancel_url button_class="btn-primary" %}
+ {% bootstrap_button "Cancel order" href=order_cancel_url button_class="btn-primary btn-small" %}
{% endif %}
|