forked from CGM_Public/pretix_original
Order change: Warn about actions that might generate a new secret
This commit is contained in:
@@ -102,6 +102,11 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-3">
|
<div class="col-sm-3">
|
||||||
<strong>{% trans "Date" context "subevent" %}</strong>
|
<strong>{% trans "Date" context "subevent" %}</strong>
|
||||||
|
{% if use_revocation_list %}
|
||||||
|
<span class="fa fa-info-circle text-warning"
|
||||||
|
title="{% trans "If you change this, it might cause a new ticket QR code to be generated and the old one to be invalidated." %}"
|
||||||
|
data-toggle="tooltip"></span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-5">
|
<div class="col-sm-5">
|
||||||
{{ position.subevent }}
|
{{ position.subevent }}
|
||||||
@@ -128,6 +133,11 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-3">
|
<div class="col-sm-3">
|
||||||
<strong>{% trans "Product" %}</strong>
|
<strong>{% trans "Product" %}</strong>
|
||||||
|
{% if use_revocation_list %}
|
||||||
|
<span class="fa fa-info-circle text-warning"
|
||||||
|
title="{% trans "If you change this, it might cause a new ticket QR code to be generated and the old one to be invalidated." %}"
|
||||||
|
data-toggle="tooltip"></span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-5">
|
<div class="col-sm-5">
|
||||||
{{ position.item }}
|
{{ position.item }}
|
||||||
@@ -210,6 +220,11 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-3">
|
<div class="col-sm-3">
|
||||||
<strong>{% trans "Validity time" %}</strong>
|
<strong>{% trans "Validity time" %}</strong>
|
||||||
|
{% if use_revocation_list %}
|
||||||
|
<span class="fa fa-info-circle text-warning"
|
||||||
|
title="{% trans "If you change this, it might cause a new ticket QR code to be generated and the old one to be invalidated." %}"
|
||||||
|
data-toggle="tooltip"></span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-5">
|
<div class="col-sm-5">
|
||||||
{% if position.valid_from %}
|
{% if position.valid_from %}
|
||||||
|
|||||||
@@ -1660,6 +1660,7 @@ class OrderChange(OrderView):
|
|||||||
ctx['fees'] = self.fees
|
ctx['fees'] = self.fees
|
||||||
ctx['add_formset'] = self.add_formset
|
ctx['add_formset'] = self.add_formset
|
||||||
ctx['other_form'] = self.other_form
|
ctx['other_form'] = self.other_form
|
||||||
|
ctx['use_revocation_list'] = self.request.event.ticket_secret_generator.use_revocation_list
|
||||||
return ctx
|
return ctx
|
||||||
|
|
||||||
def _process_other(self, ocm):
|
def _process_other(self, ocm):
|
||||||
|
|||||||
Reference in New Issue
Block a user