From b83752005ae500d8cf31df264d2c81b03701dae5 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 14 Mar 2019 15:34:51 +0100 Subject: [PATCH] Voucher: Do not show URL if subevent is required --- .../pretixcontrol/vouchers/detail.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/pretix/control/templates/pretixcontrol/vouchers/detail.html b/src/pretix/control/templates/pretixcontrol/vouchers/detail.html index 09bb678ca2..afdc1bc1da 100644 --- a/src/pretix/control/templates/pretixcontrol/vouchers/detail.html +++ b/src/pretix/control/templates/pretixcontrol/vouchers/detail.html @@ -27,15 +27,17 @@ {% 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" %}