{% extends "pretixpresale/event/base.html" %}
{% load i18n eventurl bootstrap3 %}
{% block title %}{% trans "Waiting list" %}{% endblock %}
{% block content %}
    <h2>{% trans "Add me to the waiting list" %}</h2>
    <form action="{{ request.get_full_path }}" method="post">
        {% csrf_token %}
        <div class="form-horizontal">
            {% if subevent %}
                <div class="form-group">
                    <label class="col-md-3 control-label" for="input_subevent">{% trans "Event" %}</label>
                    <div class="col-md-9">
                        <input id="input_subevent" class="form-control" readonly="readonly"
                                value="{{ subevent.name }} – {{ subevent.get_date_range_display }}">
                    </div>
                </div>
            {% endif %}
            {% bootstrap_form form layout="checkout" %}
            <div class="form-group">
                <div class="col-md-9 col-md-offset-3">
                    <p class="help-block">
                        {% blocktrans trimmed with hours=event.settings.waiting_list_hours %}
                            If tickets become available again, we will inform the first persons on the waiting list. If we notify you, you'll have {{ hours }} hours time to buy a ticket until we assign it to the next person on the list.
                        {% endblocktrans %}
                    </p>
                    <p class="help-block">
                        {% if event.settings.waiting_list_limit_per_user > 1 %}
                            {% blocktrans trimmed %}
                                Note that you will only receive one ticket. If you need multiple tickets, you need to add yourself to the waiting list multiple times. There is no guarantee that you will receive a certain number of tickets.
                            {% endblocktrans %}
                        {% else %}
                            {% blocktrans trimmed %}
                                Note that you will only receive one ticket. If you need multiple tickets, you need to add yourself to the waiting list multiple times with different email addresses. There is no guarantee that you will receive a certain number of tickets.
                            {% endblocktrans %}
                        {% endif %}
                    </p>
                    <p>
                        <button type="submit" class="btn btn-primary">
                            {% trans "Add me to the list" %}
                        </button>
                    </p>
                </div>
            </div>
        </div>
    </form>
{% endblock %}
