Do not show waiting list if presale is over

This commit is contained in:
Raphael Michel
2021-06-11 17:58:10 +02:00
parent 97d67d58d5
commit bb89bf68ef
3 changed files with 12 additions and 3 deletions

View File

@@ -7,7 +7,7 @@
{% else %}
<strong>{% trans "SOLD OUT" %}</strong>
{% endif %}
{% if event.settings.waiting_list_enabled and item.allow_waitinglist %}
{% if allow_waitinglist and item.allow_waitinglist %}
<br/>
<a href="{% eventurl event "presale:event.waitinglist" cart_namespace=cart_namespace|default_if_none:"" %}?item={{ item.pk }}{% if var %}&var={{ var.pk }}{% endif %}{% if subevent %}&subevent={{ subevent.pk }}{% endif %}">
<span class="fa fa-plus-circle" aria-hidden="true"></span>
@@ -20,7 +20,7 @@
<strong>{% trans "Reserved" %}</strong>
<br/>
{% trans "All remaining products are reserved but might become available again." %}
{% if event.settings.waiting_list_enabled and item.allow_waitinglist %}
{% if allow_waitinglist and item.allow_waitinglist %}
<br/>
<a href="{% eventurl event "presale:event.waitinglist" cart_namespace=cart_namespace|default_if_none:"" %}?item={{ item.pk }}{% if var %}&var={{ var.pk }}{% endif %}{% if subevent %}&subevent={{ subevent.pk }}{% endif %}">
<span class="fa fa-plus-circle" aria-hidden="true"></span>