forked from CGM_Public/pretix_original
Fix #1205 -- Layout bug on order page if only some tickets can be downloaded
This commit is contained in:
@@ -56,8 +56,9 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if download and line.generate_ticket %}
|
{% if download %}
|
||||||
<div class="download-desktop">
|
<div class="download-desktop">
|
||||||
|
{% if line.generate_ticket %}
|
||||||
{% for b in download_buttons %}
|
{% for b in download_buttons %}
|
||||||
<form action="{% eventurl event "presale:event.order.download" secret=order.secret order=order.code output=b.identifier position=line.id %}"
|
<form action="{% eventurl event "presale:event.order.download" secret=order.secret order=order.code output=b.identifier position=line.id %}"
|
||||||
method="post" data-asynctask data-asynctask-download class="download-btn-form">
|
method="post" data-asynctask data-asynctask-download class="download-btn-form">
|
||||||
@@ -68,6 +69,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% elif line.addon_to %}
|
{% elif line.addon_to %}
|
||||||
<div class="count"> </div>
|
<div class="count"> </div>
|
||||||
@@ -147,8 +149,9 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% if download and line.generate_ticket %}
|
{% if download %}
|
||||||
<div class="download-mobile">
|
<div class="download-mobile">
|
||||||
|
{% if line.generate_ticket %}
|
||||||
{% for b in download_buttons %}
|
{% for b in download_buttons %}
|
||||||
<form action="{% eventurl event "presale:event.order.download" secret=order.secret order=order.code output=b.identifier position=line.id %}"
|
<form action="{% eventurl event "presale:event.order.download" secret=order.secret order=order.code output=b.identifier position=line.id %}"
|
||||||
method="post" data-asynctask data-asynctask-download class="download-btn-form">
|
method="post" data-asynctask data-asynctask-download class="download-btn-form">
|
||||||
@@ -159,6 +162,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user