Product list: Show "sold out" before expanding variations

This commit is contained in:
Raphael Michel
2021-09-17 10:20:30 +02:00
parent 93004a8125
commit 8751e6e5ba
3 changed files with 22 additions and 2 deletions

View File

@@ -69,6 +69,25 @@
</div>
<div class="col-md-2 col-xs-6 availability-box">
{% if not event.settings.show_variations_expanded %}
{% if item.best_variation_availability <= 10 %}
{% if not item.min_price %}
<strong class="gone">{% trans "FULLY BOOKED" %}</strong>
{% else %}
<strong class="gone">{% trans "SOLD OUT" %}</strong>
{% endif %}
{% if allow_waitinglist and item.allow_waitinglist %}
<br/>
{% trans "Waiting list" %}
{% endif %}
<br>
{% elif avail < 100 %}
<strong class="unavailable">{% trans "Reserved" %}</strong>
{% if allow_waitinglist and item.allow_waitinglist %}
<br/>
{% trans "Waiting list" %}
{% endif %}
<br>
{% endif %}
<a data-toggle="variations" class="js-only">
{% trans "Show variants" %}
</a>