Added the option of unlimited quotas

This commit is contained in:
Raphael Michel
2015-10-21 16:31:58 +02:00
parent 2fb90efa4d
commit a2af3db771
6 changed files with 55 additions and 10 deletions

View File

@@ -2,8 +2,12 @@
{% if availability.0 == 10 %}
<span class="label label-warning">{% trans "Sold out (pending orders)" %}</span>
{% elif availability.0 == 100 %}
<span class="label label-success">{% blocktrans trimmed with num=availability.1 %}
{{ num }} available{% endblocktrans %}</span>
{% if availability.1 != None %}
<span class="label label-success">{% blocktrans trimmed with num=availability.1 %}
{{ num }} available{% endblocktrans %}</span>
{% else %}
<span class="label label-success">{% trans "Unlimited" %}</span>
{% endif %}
{% elif availability.0 == 20 %}
<span class="label label-warning">{% trans "Sold out (or reserved)" %}</span>
{% elif availability.0 == 0 %}