{% extends "admin/base_site.html" %}
{% load i18n admin_urls static %}

{% block extrahead %}
    {{ block.super }}
    {{ media }}
    <script src="{% static 'admin/js/cancel.js' %}" async></script>
    <script type="text/javascript" src="{% static "admin/js/vendor/jquery/jquery.js" %}"></script>
    <script type="text/javascript" src="{% static "admin/js/jquery.init.js" %}"></script>
{% endblock %}

{% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} invite-waiter
{% endblock %}

{% block breadcrumbs %}
<div class="breadcrumbs">
<a href="{% url 'admin:index' %}">{% translate 'Home' %}</a>
&rsaquo; <a href="{% url 'admin:app_list' app_label=opts.app_label %}">{{ opts.app_config.verbose_name }}</a>
&rsaquo; <a href="{% url opts|admin_urlname:'changelist' %}">{{ opts.verbose_name_plural|capfirst }}</a>
&rsaquo; {% translate 'Invite multiple waiters' %}
</div>
{% endblock %}

{% block content %}
<h2>{% translate "Invite to a group" %}</h2>
<p>
{% trans "You selected the following waiters:" %}
</p>
<p>
{% for waiter in waiters %}
<ul>
    <li>
    <a href="{% url 'admin:members_memberwaitinglist_change' waiter.id %}">{{ waiter }}</a>
    </li>
</ul>
{% endfor %}
</p>

<p>
{% trans "Please choose the group you want these waiters to be invited for." %}
</p>

<form action="" method="post">
    {% csrf_token %}
    <p>
    {{form}}
    </p>
    <br>
    <div>
    <p>
    <input type="hidden" name="action" value="ask_for_registration">
    <input class="default" style="color: $default-link-color" type="submit" name="apply" value="{% translate 'Invite' %}">
    <a href="#" class="button cancel-link">{% translate "Cancel" %}</a>
    </p>
    </div>
</form>
{% endblock %}
