From 15bdcb9973adce699974502d8c79283498214f7b Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 5 May 2020 12:17:31 +0200 Subject: [PATCH] Change "SOLD OUT" to "FULLY BOOKED" for free tickets --- .../pretixpresale/event/fragment_availability.html | 6 +++++- .../pretixpresale/event/fragment_product_list.html | 6 +++--- .../presale/templates/pretixpresale/event/voucher.html | 4 ++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/pretix/presale/templates/pretixpresale/event/fragment_availability.html b/src/pretix/presale/templates/pretixpresale/event/fragment_availability.html index 3e3e19f62..4709cfc3f 100644 --- a/src/pretix/presale/templates/pretixpresale/event/fragment_availability.html +++ b/src/pretix/presale/templates/pretixpresale/event/fragment_availability.html @@ -2,7 +2,11 @@ {% load eventurl %} {% if avail <= 10 %}
- {% trans "SOLD OUT" %} + {% if price != None and not price %} + {% trans "FULLY BOOKED" %} + {% else %} + {% trans "SOLD OUT" %} + {% endif %} {% if event.settings.waiting_list_enabled and item.allow_waitinglist %}
diff --git a/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html b/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html index 9a2090a20..b0507d0a5 100644 --- a/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html +++ b/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html @@ -164,7 +164,7 @@ {% endif %}
{% else %} - {% include "pretixpresale/event/fragment_availability.html" with avail=var.cached_availability.0 event=event item=item var=var %} + {% include "pretixpresale/event/fragment_availability.html" with price=var.display_price.gross avail=var.cached_availability.0 event=event item=item var=var %} {% endif %}
@@ -258,7 +258,7 @@ {% trans "Enter a voucher code below to buy this ticket." %} - {% elif item.cached_availability.0 == 100 %} + {% elif item.cached_availability.0 == 100 %}
{% if item.order_max == 1 %}
{% else %} - {% include "pretixpresale/event/fragment_availability.html" with avail=item.cached_availability.0 event=event item=item var=0 %} + {% include "pretixpresale/event/fragment_availability.html" with price=item.display_price.gross avail=item.cached_availability.0 event=event item=item var=0 %} {% endif %}
diff --git a/src/pretix/presale/templates/pretixpresale/event/voucher.html b/src/pretix/presale/templates/pretixpresale/event/voucher.html index 1e754516b..58a3ac0c8 100644 --- a/src/pretix/presale/templates/pretixpresale/event/voucher.html +++ b/src/pretix/presale/templates/pretixpresale/event/voucher.html @@ -219,7 +219,7 @@ {% endif %} {% else %} - {% include "pretixpresale/event/fragment_availability.html" with avail=var.cached_availability.0 %} + {% include "pretixpresale/event/fragment_availability.html" with price=var.display_price.gross avail=var.cached_availability.0 %} {% endif %}
@@ -325,7 +325,7 @@ {% endif %} {% else %} - {% include "pretixpresale/event/fragment_availability.html" with avail=item.cached_availability.0 %} + {% include "pretixpresale/event/fragment_availability.html" with price=item.display_price.gross avail=item.cached_availability.0 %} {% endif %}