Order change: Warn about actions that might generate a new secret

This commit is contained in:
Raphael Michel
2023-02-09 17:10:27 +01:00
parent 37e633812b
commit c44ff6244d
2 changed files with 16 additions and 0 deletions

View File

@@ -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 %}

View File

@@ -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):