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> </div>
{% endif %} {% endif %}
{% if order.status == 'p' and event.settings.ticket_download %} {% if order.status == 'p' and event.settings.ticket_download %}
<div class="alert alert-info"> {% if can_download and download_buttons %}
{% if can_download %} <div class="alert alert-info">
{% blocktrans trimmed %} {% blocktrans trimmed %}
You can download your tickets using the buttons below. Please have your ticket ready when entering the event. You can download your tickets using the buttons below. Please have your ticket ready when entering the event.
{% endblocktrans %} {% 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" %} {% 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 }}. You will be able to download your tickets here starting on {{ date }}.
{% endblocktrans %} {% endblocktrans %}
{% endif %} </div>
</div> {% endif %}
{% endif %} {% endif %}
<div class="panel panel-primary cart"> <div class="panel panel-primary cart">
<div class="panel-heading"> <div class="panel-heading">