{% extends "pretixcontrol/event/base.html" %} {% load i18n %} {% load eventurl %} {% load money %} {% load urlreplace %} {% block title %}{% trans "Waiting list" %}{% endblock %} {% block content %}

{% trans "Waiting list" %} {% trans "Settings" %}

{% if not request.event.settings.waiting_list_enabled %}
{% 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." %}
{% elif not request.event.waiting_list_active and not request.event.has_subevents %}
{% trans "The waiting list is no longer active for this event. The waiting list no longer affects quotas and no longer notifies waiting users." %}
{% endif %} {% if request.event.settings.hide_sold_out %}
{% trans "According to your event settings, sold out products are hidden from customers. This way, customers will not be able to discover the waiting list." %}
{% endif %}
{% if 'can_change_orders' in request.eventpermset %}
{% 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 %}

{% if not running %}
{% trans "Currently, no vouchers will be sent since your event is not live or is not selling tickets." %}
{% endif %} {% 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 waited longest. {% endblocktrans %}

{% endif %} {% if request.event.has_subevents %} {% endif %}
{% endif %}
{% trans "Sales estimate" %}
{% blocktrans trimmed with amount=estimate|default:0|money: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 }}. {% endblocktrans %}

{% if request.event.has_subevents %} {% endif %} {% trans "Download list" %}

{% csrf_token %}
{% if request.event.settings.waiting_list_names_asked %} {% endif %} {% if request.event.settings.waiting_list_phones_asked %} {% endif %} {% if request.event.has_subevents %} {% endif %} {% if "can_change_orders" in request.eventpermset and page_obj.paginator.num_pages > 1 %} {% endif %} {% for e in entries %} {% if request.event.settings.waiting_list_names_asked %} {% endif %} {% if request.event.settings.waiting_list_phones_asked %} {% endif %} {% if request.event.has_subevents %} {% endif %} {% endfor %}
{% if "can_change_orders" in request.eventpermset %} {% endif %} {% trans "Name" %}{% trans "Email" %}{% trans "Phone number" %}{% trans "Product" %}{% trans "Date" context "subevent" %}{% trans "On the list since" %} {% trans "Status" %} {% trans "Voucher" %}
{% if "can_change_orders" in request.eventpermset %} {% endif %} {{ e.name_all_components|default:"" }}{{ e.email }}{{ e.phone|default:"" }} {{ e.item }} {% if e.variation %} – {{ e.variation }} {% endif %} {{ e.subevent }} {{ e.created|date:"SHORT_DATETIME_FORMAT" }} {% if e.priority != 0 %} {% if e.priority > 0 %}+{% endif %}{{ e.priority }} {% endif %} {% if e.voucher %} {% if e.voucher.redeemed >= e.voucher.max_usages %} {% trans "Voucher redeemed" %} {% elif not e.voucher.is_active %} {% trans "Voucher expired" %} {% else %} {% trans "Voucher assigned" %} {% endif %} {% elif e.availability.0 == 100 %} {% if e.availability.1|default_if_none:"none" == "none" %} {% blocktrans trimmed %} Quota unlimited {% endblocktrans %} {% else %} {% blocktrans with num=e.availability.1 %} Waiting, product {{ num }}x available {% endblocktrans %} {% endif %} {% else %} {% trans "Waiting, product unavailable" %} {% endif %} {% if e.voucher %} {{ e.voucher }} {% elif not e.voucher and e.availability.0 == 100 and e.availability.1|default_if_none:"none" != "none" %} {% endif %} {% if not e.voucher %} {% if request.event.has_subevents %} {% endif %} {% else %} {% endif %}
{% if "can_change_orders" in request.eventpermset %}
{% endif %}
{% include "pretixcontrol/pagination.html" %} {% endblock %}