mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Waiting list: Fix display on unlimited quota
This commit is contained in:
@@ -212,11 +212,21 @@
|
|||||||
<span class="label label-warning">{% trans "Voucher assigned" %}</span>
|
<span class="label label-warning">{% trans "Voucher assigned" %}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif e.availability.0 == 100 %}
|
{% elif e.availability.0 == 100 %}
|
||||||
<span class="label label-warning">
|
{% if e.availability.1|default_if_none:"none" == "none" %}
|
||||||
{% blocktrans with num=e.availability.1 %}
|
<span class="label label-danger" data-toggle="tooltip"
|
||||||
Waiting, product {{ num }}x available
|
title="{% trans "For safety reasons, the waiting list does not run if the quota is set to unlimited." %}">
|
||||||
{% endblocktrans %}
|
<span class="fa fa-ban" aria-hidden="true"></span>
|
||||||
</span>
|
{% blocktrans trimmed %}
|
||||||
|
Quota unlimited
|
||||||
|
{% endblocktrans %}
|
||||||
|
</span>
|
||||||
|
{% else %}
|
||||||
|
<span class="label label-warning">
|
||||||
|
{% blocktrans with num=e.availability.1 %}
|
||||||
|
Waiting, product {{ num }}x available
|
||||||
|
{% endblocktrans %}
|
||||||
|
</span>
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="label label-danger">{% trans "Waiting, product unavailable" %}</span>
|
<span class="label label-danger">{% trans "Waiting, product unavailable" %}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -226,7 +236,7 @@
|
|||||||
<a href="{% url "control:event.voucher" organizer=request.event.organizer.slug event=request.event.slug voucher=e.voucher.pk %}">
|
<a href="{% url "control:event.voucher" organizer=request.event.organizer.slug event=request.event.slug voucher=e.voucher.pk %}">
|
||||||
{{ e.voucher }}
|
{{ e.voucher }}
|
||||||
</a>
|
</a>
|
||||||
{% elif not e.voucher and e.availability.0 == 100 %}
|
{% elif not e.voucher and e.availability.0 == 100 and e.availability.1|default_if_none:"none" != "none" %}
|
||||||
<button name="assign" value="{{ e.pk }}" class="btn btn-default btn-xs">
|
<button name="assign" value="{{ e.pk }}" class="btn btn-default btn-xs">
|
||||||
{% trans "Send a voucher" %}
|
{% trans "Send a voucher" %}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user