forked from CGM_Public/pretix_original
Product list: Show "sold out" before expanding variations
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user