Fix display error on variations with required vouchers

This commit is contained in:
Raphael Michel
2017-03-20 16:01:09 +01:00
parent 259c0cca69
commit 927e21e5d1

View File

@@ -163,7 +163,13 @@
{% endblocktrans %}</small>
{% endif %}
</div>
{% if var.cached_availability.0 == 100 %}
{% if item.require_voucher %}
<div class="col-md-2 col-xs-6 availability-box unavailable">
<small>
{% trans "Enter a voucher code below to buy this ticket." %}
</small>
</div>
{% elif var.cached_availability.0 == 100 %}
<div class="col-md-2 col-xs-6 availability-box available">
<input type="number" class="form-control input-item-count" placeholder="0" min="0"
max="{{ var.order_max }}"