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

{% block content %}
<div id="content-main">
    <form action="" method="post">
        {% csrf_token %}
        <h2>{{ title }}</h2>

        <p>You have selected the following prospects:</p>
        <ul>
            {% for prospect in prospects %}
            <li>{{ prospect.name }} ({{ prospect.email }})</li>
            <input type="hidden" name="_selected_action" value="{{ prospect.pk }}" />
            {% endfor %}
        </ul>

        <fieldset class="module aligned">
            <h2>Select an email template:</h2>
            {{ form.as_p }}
        </fieldset>

        <div class="submit-row">
            <input type="hidden" name="action" value="send_email" />
            <input type="submit" name="apply" value="Send Email" class="default" />
        </div>
    </form>
</div>
{% endblock %}
