From 8b99a763d82fb76e7a02f897b48123c261188253 Mon Sep 17 00:00:00 2001 From: Feliciaan De Palmenaer Date: Sat, 28 Mar 2015 10:49:28 +0100 Subject: [PATCH] Better close button --- app/templates/order.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/templates/order.html b/app/templates/order.html index 8844a23..8c8b3fa 100644 --- a/app/templates/order.html +++ b/app/templates/order.html @@ -5,10 +5,10 @@ {% block container %}
-

Order {{ order.id }}

- {% if (current_user.id == order.courrier_id or current_user.is_admin()) and not order.stoptime -%} +

Order {{ order.id }} + {% if (current_user.id == order.courrier_id and (not order.stoptime)) or current_user.is_admin() -%} Close
- {%- endif %} + {%- endif %}

Courrier: {{ order.courrier.username }} {% if order.courrier == None %} Volunteer