From 20b3f43891694fad764267462a99eeb51343532e Mon Sep 17 00:00:00 2001 From: Phin Wolkwitz Date: Mon, 15 Jan 2024 15:38:37 +0100 Subject: [PATCH] Add quota capacity indicator tag --- .../pretixcontrol/event/new_index.html | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/src/pretix/control/templates/pretixcontrol/event/new_index.html b/src/pretix/control/templates/pretixcontrol/event/new_index.html index 942b469b07..32d7d6721b 100644 --- a/src/pretix/control/templates/pretixcontrol/event/new_index.html +++ b/src/pretix/control/templates/pretixcontrol/event/new_index.html @@ -284,6 +284,9 @@ {% trans "Paid tickets per quota" %} + + {% trans "Capacity left" %} + @@ -315,9 +318,48 @@ {% endif %} + + {% for q in s.first_quotas %} + {% include "pretixcontrol/items/fragment_quota_availability.html" with availability=q.cached_avail closed=q.closed %} + {% endfor %} + {% endfor %} {% endif %} + {% if subevent %} + + + + {{ subevent.name }}
+ + #{{ subevent.pk }} + + + + {{ subevent.get_date_from_display }}
+ + {{ subevent.date_from|date:"l" }} + + + + {% for q in subevent.first_quotas|slice:":3" %} + {% include "pretixcontrol/fragment_quota_box_paid.html" with quota=q %} + {% endfor %} + {% if subevent.first_quotas|length > 3 %} + + ··· + + {% endif %} + + + {% for q in subevent.first_quotas %} + {% include "pretixcontrol/items/fragment_quota_availability.html" with availability=q.cached_avail closed=q.closed %} + {% endfor %} + + + {% endif %}