From 65a7e8516e75cbeb6df6bd98ea05edf99be7790d Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 4 Apr 2022 13:42:26 +0200 Subject: [PATCH] Display self-service cancellation fee during backend cancellation --- .../templates/pretixcontrol/order/cancel.html | 15 ++++++++++++--- src/pretix/control/views/orders.py | 1 + 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/pretix/control/templates/pretixcontrol/order/cancel.html b/src/pretix/control/templates/pretixcontrol/order/cancel.html index 9d4264cea4..688fec9496 100644 --- a/src/pretix/control/templates/pretixcontrol/order/cancel.html +++ b/src/pretix/control/templates/pretixcontrol/order/cancel.html @@ -1,6 +1,7 @@ {% extends "pretixcontrol/event/base.html" %} {% load i18n %} {% load bootstrap3 %} +{% load money %} {% block title %} {% trans "Cancel order" %} {% endblock %} @@ -22,13 +23,21 @@ {% csrf_token %} {% bootstrap_form_errors form %} + {% if form.cancellation_fee %} + {% if fee %} + {% with fee|money:request.event.currency as f %} +

{% blocktrans trimmed with fee=""|add:f|add:""|safe %} + The configured cancellation fee for a self-service cancellation would be {{ fee }} for this + order, but for a cancellation performed by you, you need to set the cancellation fee here: + {% endblocktrans %}

+ {% endwith %} + {% endif %} + {% bootstrap_field form.cancellation_fee layout='' %} + {% endif %} {% bootstrap_field form.send_email layout='' %} {% if form.cancel_invoice %} {% bootstrap_field form.cancel_invoice layout='' %} {% endif %} - {% if form.cancellation_fee %} - {% bootstrap_field form.cancellation_fee layout='' %} - {% endif %}