commit
3556211279
7 changed files with 161 additions and 6 deletions
@ -0,0 +1,40 @@ |
|||||||
|
{% 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"> |
||||||
|
|
||||||
|
<thead> |
||||||
|
<tr> |
||||||
|
<th>Название</th> |
||||||
|
<th>Список рассылки</th> |
||||||
|
<th>Статус</th> |
||||||
|
<th>Дата отправки</th> |
||||||
|
<th> </th> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
<tbody> |
||||||
|
{% for item in object_list %} |
||||||
|
<tr> |
||||||
|
<td>{{ item.title }}</td> |
||||||
|
<td>{{ item.mailing_list }}</td> |
||||||
|
<td>{{ item.get_status_text }}</td> |
||||||
|
<td>{{ item.sending_date|date:"Y-m-d H:i" }}</td> |
||||||
|
<td><a href="{% url 'newsletters_newsletters_update' item.id %}">Изменить</a> </td> |
||||||
|
</tr> |
||||||
|
{% endfor %} |
||||||
|
</tbody> |
||||||
|
</table> |
||||||
|
<a class="btn btn-success" href="{% url 'newsletters_newsletters_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 %} |
||||||
Loading…
Reference in new issue