From b49e02d988e62ad45e1a76431141f67f31413304 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 25 Nov 2019 15:54:11 +0100 Subject: [PATCH] Voucher redemption: Disable add-on-cart button if no products are selected --- src/pretix/presale/templates/pretixpresale/event/voucher.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pretix/presale/templates/pretixpresale/event/voucher.html b/src/pretix/presale/templates/pretixpresale/event/voucher.html index 18c26d9b3..e1f6193bb 100644 --- a/src/pretix/presale/templates/pretixpresale/event/voucher.html +++ b/src/pretix/presale/templates/pretixpresale/event/voucher.html @@ -23,6 +23,7 @@ action="{% eventurl request.event "presale:event.cart.add" cart_namespace=cart_namespace %}?next={{ cart_redirect|urlencode }}{% if "iframe" in request.GET and not new_tab %}&iframe={{ request.GET.iframe }}{% endif %}{% if "take_cart_id" in request.GET and new_tab %}&take_cart_id={{ request.GET.take_cart_id }}{% endif %}" {% if new_tab %}target="_blank"{% else %} data-asynctask data-asynctask-headline="{% trans "We're now trying to reserve this for you!" %}" + class="{% if voucher.seating_available %}has-seating{% endif %}" data-asynctask-text="{% blocktrans with time=event.settings.reservation_time %}Once the items are in your cart, you will have {{ time }} minutes to complete your purchase.{% endblocktrans %}" {% endif %}> {% csrf_token %} @@ -295,7 +296,7 @@ {% if event.presale_is_running %}
-