mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
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="col-sm-3">
|
||||
<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 class="col-sm-5">
|
||||
{{ position.subevent }}
|
||||
@@ -128,6 +133,11 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<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 class="col-sm-5">
|
||||
{{ position.item }}
|
||||
@@ -210,6 +220,11 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<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 class="col-sm-5">
|
||||
{% if position.valid_from %}
|
||||
|
||||
@@ -1660,6 +1660,7 @@ class OrderChange(OrderView):
|
||||
ctx['fees'] = self.fees
|
||||
ctx['add_formset'] = self.add_formset
|
||||
ctx['other_form'] = self.other_form
|
||||
ctx['use_revocation_list'] = self.request.event.ticket_secret_generator.use_revocation_list
|
||||
return ctx
|
||||
|
||||
def _process_other(self, ocm):
|
||||
|
||||
Reference in New Issue
Block a user