Allow ticket output methods to opt-out from ZIP generation

This commit is contained in:
Raphael Michel
2017-07-14 17:32:16 +02:00
parent 7d9e642f24
commit 42287b92f1
4 changed files with 19 additions and 5 deletions

View File

@@ -73,14 +73,16 @@
You can download your tickets using the buttons below. Please have your ticket ready when entering the event.
{% endblocktrans %}
</div>
{% if cart.positions|length > 1 %}
{% if cart.positions|length > 1 and can_download_multi %}
<p>
{% trans "Download all tickets at once:" %}
{% for b in download_buttons %}
<a href="{% eventurl event "presale:event.order.download.combined" secret=order.secret order=order.code output=b.identifier %}"
class="btn btn-default btn-sm" data-asyncdownload>
<span class="fa fa-download"></span> {{ b.text }}
</a>
{% if b.multi %}
<a href="{% eventurl event "presale:event.order.download.combined" secret=order.secret order=order.code output=b.identifier %}"
class="btn btn-default btn-sm" data-asyncdownload>
<span class="fa fa-download"></span> {{ b.text }}
</a>
{% endif %}
{% endfor %}
</p>
{% endif %}