Only show download info if a payment provider is enabled

This commit is contained in:
Raphael Michel
2016-12-21 18:04:04 +01:00
parent 7639ef9a42
commit 83057e48ec

View File

@@ -67,17 +67,19 @@
</div>
{% endif %}
{% if order.status == 'p' and event.settings.ticket_download %}
<div class="alert alert-info">
{% if can_download %}
{% if can_download and download_buttons %}
<div class="alert alert-info">
{% blocktrans trimmed %}
You can download your tickets using the buttons below. Please have your ticket ready when entering the event.
{% endblocktrans %}
{% else %}
</div>
{% elif not download_buttons %}
<div class="alert alert-info">
{% blocktrans trimmed with date=event.settings.ticket_download_date|date:"SHORT_DATE_FORMAT" %}
You will be able to download your tickets here starting on {{ date }}.
{% endblocktrans %}
{% endif %}
</div>
</div>
{% endif %}
{% endif %}
<div class="panel panel-primary cart">
<div class="panel-heading">