Refs #757: show voucher input for subevents only if subevent is selected (#777)

* show voucher input for subevents only if subevent is selected

* move logic to python
This commit is contained in:
Felix Rindt
2018-02-22 09:44:53 +01:00
committed by Raphael Michel
parent e096898a05
commit 70fbbfe2a0
2 changed files with 12 additions and 7 deletions

View File

@@ -442,7 +442,7 @@
</form>
{% endif %}
{% endif %}
{% if vouchers_exist %}
{% if show_vouchers %}
<section class="front-page">
<h3>{% trans "Redeem a voucher" %}</h3>
<form method="get" action="{% eventurl event "presale:event.redeem" cart_namespace=cart_namespace %}">