You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.7 KiB
51 lines
1.7 KiB
{% extends 'admin/base.html' %}
|
|
|
|
{% block body %}
|
|
|
|
<div class="box span10">
|
|
<div class="box-header well">
|
|
<h2><i class="icon-arrow-down"></i>Списки рассылок</h2>
|
|
</div>
|
|
<div class="box-content">
|
|
|
|
<table class="table table-hover">
|
|
<colgroup>
|
|
<col width="30%">
|
|
<col width="20%">
|
|
<col width="20%">
|
|
<col width="10%">
|
|
<col width="10%">
|
|
<col width="10%">
|
|
</colgroup>
|
|
|
|
<thead>
|
|
<tr>
|
|
<th>Название</th>
|
|
<th>Подписчиков</th>
|
|
<th>Отписалось</th>
|
|
<th> </th>
|
|
<th> </th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for item in object_list %}
|
|
<tr>
|
|
<td>{{ item.name }}</td>
|
|
<td>{{ item.subscribers_count }}</td>
|
|
<td>{{ item.unsubscribers_count }}</td>
|
|
|
|
<td><a href="{% url 'newsletters_mailinglist_update' item.id %}">Изменить</a> </td>
|
|
<td><a href="{% url 'newsletters_mailinglist_delete' item.id %}">Удалить</a> </td>
|
|
<td><a href="{% url 'newsletters_contact_list' %}?mailinglist={{ item.id }}">Подписчики</a> </td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<a class="btn btn-success" href="{% url 'newsletters_mailinglist_create' %}"><i class="icon-plus-sign icon-white"></i> Добавить новый список</a>
|
|
</div>
|
|
{# pagination #}
|
|
{% include 'admin/includes/admin_pagination.html' with page_obj=object_list %}
|
|
</div>
|
|
|
|
{% endblock %} |