forked from CGM_Public/pretix_original
Display self-service cancellation fee during backend cancellation
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
{% extends "pretixcontrol/event/base.html" %}
|
{% extends "pretixcontrol/event/base.html" %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
|
{% load money %}
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% trans "Cancel order" %}
|
{% trans "Cancel order" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@@ -22,13 +23,21 @@
|
|||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="hidden" name="status" value="c"/>
|
<input type="hidden" name="status" value="c"/>
|
||||||
{% bootstrap_form_errors form %}
|
{% bootstrap_form_errors form %}
|
||||||
|
{% if form.cancellation_fee %}
|
||||||
|
{% if fee %}
|
||||||
|
{% with fee|money:request.event.currency as f %}
|
||||||
|
<p>{% blocktrans trimmed with fee="<strong>"|add:f|add:"</strong>"|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 %}</p>
|
||||||
|
{% endwith %}
|
||||||
|
{% endif %}
|
||||||
|
{% bootstrap_field form.cancellation_fee layout='' %}
|
||||||
|
{% endif %}
|
||||||
{% bootstrap_field form.send_email layout='' %}
|
{% bootstrap_field form.send_email layout='' %}
|
||||||
{% if form.cancel_invoice %}
|
{% if form.cancel_invoice %}
|
||||||
{% bootstrap_field form.cancel_invoice layout='' %}
|
{% bootstrap_field form.cancel_invoice layout='' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if form.cancellation_fee %}
|
|
||||||
{% bootstrap_field form.cancellation_fee layout='' %}
|
|
||||||
{% endif %}
|
|
||||||
<div class="row checkout-button-row">
|
<div class="row checkout-button-row">
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<a class="btn btn-block btn-default btn-lg"
|
<a class="btn btn-block btn-default btn-lg"
|
||||||
|
|||||||
@@ -1303,6 +1303,7 @@ class OrderTransition(OrderView):
|
|||||||
elif self.order.cancel_allowed() and to == 'c':
|
elif self.order.cancel_allowed() and to == 'c':
|
||||||
return render(self.request, 'pretixcontrol/order/cancel.html', {
|
return render(self.request, 'pretixcontrol/order/cancel.html', {
|
||||||
'form': self.mark_canceled_form,
|
'form': self.mark_canceled_form,
|
||||||
|
'fee': self.order.user_cancel_fee,
|
||||||
'order': self.order,
|
'order': self.order,
|
||||||
})
|
})
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user