From 8fa71ccad444a346e59e86b2dd62ede328c226cd Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 8 Oct 2021 18:08:28 +0200 Subject: [PATCH] Show remaining quota on voucher redemption page --- .../presale/templates/pretixpresale/event/voucher.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pretix/presale/templates/pretixpresale/event/voucher.html b/src/pretix/presale/templates/pretixpresale/event/voucher.html index 0475c5c78a..eaf89f608d 100644 --- a/src/pretix/presale/templates/pretixpresale/event/voucher.html +++ b/src/pretix/presale/templates/pretixpresale/event/voucher.html @@ -151,6 +151,9 @@ {{ var.description|localize|rich_text }} {% endif %} + {% if item.do_show_quota_left %} + {% include "pretixpresale/event/fragment_quota_left.html" with avail=var.cached_availability %} + {% endif %}
{% if var.original_price %} @@ -257,6 +260,9 @@ {{ item.description|localize|rich_text }}
{% endif %} + {% if item.do_show_quota_left %} + {% include "pretixpresale/event/fragment_quota_left.html" with avail=item.cached_availability %} + {% endif %}