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

{% block extrahead %}{{ block.super }}
{{ media }}
{% endblock %}

{% block breadcrumbs %}
<div class="breadcrumbs">
    <a href="../../../../">{% trans 'Home' %}</a> &rsaquo;
    <a href="../../../">{{ app_label|capfirst }}</a> &rsaquo;
    <a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo;
    <a href="../">{{ object|truncatewords:"18" }}</a> &rsaquo;
    {% trans 'Preview' %}
</div>
{% endblock %}

{% block content %}
<div id="content-main">
<div>
    <div class="module">
        <div class="form-row">
            <h3>{{ object.name }} ({% blocktrans with object.object_count as count and object.object_count|pluralize as pluralized %}{{ count }} recipient{{ pluralized }}{% endblocktrans %})</h3>
            <ul>
            {% for subscriber in object.object_list.all %}
                <li>{{ subscriber|get_field:object.email_field_name }}</li>
            {% endfor %}
            </ul>
        </div>
    </div>
</div>
</div>
{% endblock %}
