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.
52 lines
1.9 KiB
52 lines
1.9 KiB
{% extends 'c_admin/base.html' %}
|
|
{% load i18n %}
|
|
|
|
{% block body %}
|
|
|
|
<div class="box span10">
|
|
<div class="box-header well">
|
|
<h2><i class="icon-arrow-down"></i>{% trans "Списки рассылок" %}</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>{% trans "Название" %}</th>
|
|
<th>{% trans "Подписчиков" %}</th>
|
|
<th>{% trans "Отписалось" %}</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 %}">{% trans "Изменить" %}</a> </td>
|
|
<td><a href="{% url 'newsletters_mailinglist_delete' item.id %}">{% trans "Удалить" %}</a> </td>
|
|
<td><a href="{% url 'newsletters_contact_list' %}?mailinglist={{ item.id }}">{% trans "Подписчики" %}</a> </td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<a class="btn btn-success" href="{% url 'newsletters_mailinglist_create' %}"><i class="icon-plus-sign icon-white"></i> {% trans "Добавить новый список" %}</a>
|
|
</div>
|
|
{# pagination #}
|
|
{% include 'c_admin/includes/admin_pagination.html' with page_obj=page_obj %}
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|