From 27e5fcc40747ecd942e78d060a20577d7575eef7 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Fri, 24 Mar 2017 03:01:28 +0100 Subject: [PATCH] a few more changes to order_detail.html template, and import fixed py3 version of coinify api --- src/shop/templates/order_detail.html | 16 +++++++++------- src/vendor/coinify | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/shop/templates/order_detail.html b/src/shop/templates/order_detail.html index b894065a..e1d90d72 100644 --- a/src/shop/templates/order_detail.html +++ b/src/shop/templates/order_detail.html @@ -13,7 +13,7 @@
{% csrf_token %} {% endif %} - +
@@ -66,18 +66,20 @@
- {% if order.open == None and order.customer_comment or order.open %} -

Comment:

-

- {% endif %} - {% if not order.open == None %} - {% bootstrap_button "Update order" button_type="submit" button_class="btn-primary" name="update_order" %} +

Comment:

+

+ {% elif order.open == None and order.comment %} +
{{ order.comment }}
{% endif %} + {% if order.open %} + {% bootstrap_button "Update order" button_type="submit" button_class="btn-primary" name="update_order" %} + {% endif %} {% if not order.paid %} {% bootstrap_button "Cancel order" button_type="submit" button_class="btn-danger" name="cancel_order" %} {% endif %} + {% if order.paid %}