From db7e299af1861751b469a7c351b3d034d84515bb Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 24 Feb 2022 14:59:27 +0100 Subject: [PATCH] Show voucher link even without subevent specified --- .../pretixcontrol/vouchers/detail.html | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/pretix/control/templates/pretixcontrol/vouchers/detail.html b/src/pretix/control/templates/pretixcontrol/vouchers/detail.html index 7ff30fd983..34e9438880 100644 --- a/src/pretix/control/templates/pretixcontrol/vouchers/detail.html +++ b/src/pretix/control/templates/pretixcontrol/vouchers/detail.html @@ -39,17 +39,15 @@ {% trans "Voucher details" %} {% bootstrap_field form.code layout="control" %} {% if voucher.pk %} - {% if not request.event.has_subevents or voucher.subevent %} -
- -
- -
+
+ +
+
- {% endif %} +
{% endif %} {% bootstrap_field form.max_usages layout="control" %} {% bootstrap_field form.valid_until layout="control" %}