From b6dd9a0df0b7a09e93b04b09a5ae25a32f3771d6 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 6 Feb 2017 23:41:04 +0100 Subject: [PATCH] Sales estimate --- .../pretixcontrol/waitinglist/index.html | 82 ++++++++++++------- src/pretix/control/views/waitinglist.py | 13 +++ 2 files changed, 66 insertions(+), 29 deletions(-) diff --git a/src/pretix/control/templates/pretixcontrol/waitinglist/index.html b/src/pretix/control/templates/pretixcontrol/waitinglist/index.html index ee918db2631..9f9a14a6789 100644 --- a/src/pretix/control/templates/pretixcontrol/waitinglist/index.html +++ b/src/pretix/control/templates/pretixcontrol/waitinglist/index.html @@ -10,6 +10,59 @@

{% trans "Waiting list" %}

{% trans "The waiting list is disabled, so if the event is sold out, people cannot add themselves to this list. If you want to enable it, go to the event settings." %} {% endif %} +
+ {% if request.eventperm.can_change_orders %} +
+
+
+ {% trans "Send vouchers" %} +
+
+ {% csrf_token %} + {% if request.event.settings.waiting_list_auto %} +

+ {% blocktrans trimmed %} + You have configured that vouchers will automatically be sent to the persons on this list who waited + the longest as soon as capacity becomes available. It might take up to half an hour for the + vouchers to be sent after the capacity is available, so don't worry if entries do not disappear + here immediately. If you want, you can also send them out manually right now. + {% endblocktrans %} +

+ {% else %} +

+ {% blocktrans trimmed %} + You have configured that vouchers will not be sent automatically. + You can either send them one-by-one in an order of your choice by clicking the + buttons next to a line in this table (if sufficient quota is available) or you can + press the big button below this text to send out as many vouchers as currently + possible to the persons who waitet longest. + {% endblocktrans %} +

+ {% endif %} + +
+
+
+ {% endif %} +
+
+
+ {% trans "Sales estimate" %} +
+
+ {% blocktrans trimmed with amount=estimate|floatformat:2 currency=request.event.currency %} + If you can make enough room at your event to fit all the persons on the waiting list in, you + could sell tickets worth an additional {{ amount }} {{ currency }}. + {% endblocktrans %} +
+
+
+
+