From 710aaa5f1cfe8d17281957630770069b19d233e6 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 29 Oct 2020 09:17:00 +0100 Subject: [PATCH] Add icons to order status in backend --- .../orders/fragment_order_status.html | 29 +++++++++++++++---- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/src/pretix/control/templates/pretixcontrol/orders/fragment_order_status.html b/src/pretix/control/templates/pretixcontrol/orders/fragment_order_status.html index 765a55a343..81ff041ff2 100644 --- a/src/pretix/control/templates/pretixcontrol/orders/fragment_order_status.html +++ b/src/pretix/control/templates/pretixcontrol/orders/fragment_order_status.html @@ -2,19 +2,36 @@ {% load bootstrap3 %} {% if order.status == "n" %} {% if order.require_approval %} - {% trans "Approval pending" %} + + + {% trans "Approval pending" %} + {% else %} {% trans "Pending" %} + class="label label-warning {{ class }}"> + + {% trans "Pending" %} + {% endif %} {% elif order.status == "p" %} {% if order.count_positions == 0 %} - {% trans "Canceled (paid fee)" %} + + + {% trans "Canceled (paid fee)" %} + {% else %} - {% trans "Paid" %} + + + {% trans "Paid" %} + {% endif %} {% elif order.status == "e" %} {# expired #} - {% trans "Expired" %} + + + {% trans "Expired" %} {% elif order.status == "c" %} - {% trans "Canceled" %} + + + {% trans "Canceled" %} + {% endif %}