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.
104 lines
3.9 KiB
104 lines
3.9 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">
|
|
<form class="form-horizontal" method="get">
|
|
<fieldset>
|
|
|
|
<!-- Form Name -->
|
|
<legend>Filter subscribers</legend>
|
|
|
|
<!-- Search input-->
|
|
<div class="control-group">
|
|
<label class="control-label" for="id_email">{{ form.email.label }}</label>
|
|
|
|
<div class="controls">
|
|
{# <input id="Email" name="Email" type="text" placeholder="Email"#}
|
|
{# class="input-xlarge search-query">#}
|
|
{{ form.email }}
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Select Basic -->
|
|
<div class="control-group">
|
|
<label class="control-label" for="id_theme">{{ form.theme.label }}</label>
|
|
|
|
<div class="controls">
|
|
{{ form.theme }}
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Select Basic -->
|
|
<div class="control-group">
|
|
<label class="control-label" for="id_country">{{ form.id_country }}</label>
|
|
|
|
<div class="controls">
|
|
{{ form.country }}
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Select Basic -->
|
|
<div class="control-group">
|
|
<label class="control-label" for="id_area">{{ form.area.label }}</label>
|
|
|
|
<div class="controls">
|
|
{{ form.area }}
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Button -->
|
|
<div class="control-group">
|
|
<label class="control-label" for="submit"></label>
|
|
|
|
<div class="controls">
|
|
<button id="submit" name="submit" class="btn btn-info">Filter</button>
|
|
</div>
|
|
</div>
|
|
|
|
</fieldset>
|
|
</form>
|
|
|
|
|
|
<table class="table table-hover">
|
|
|
|
<thead>
|
|
<tr>
|
|
<th>Email</th>
|
|
<th>Имя</th>
|
|
<th>Тестер</th>
|
|
<th>Подписчик</th>
|
|
<th>Потверждена подписка</th>
|
|
<th>Дата создания</th>
|
|
<th>Дата редактирования</th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for item in object_list %}
|
|
<tr>
|
|
<td>{{ item.email }}</td>
|
|
<td>{{ item.first_name }}</td>
|
|
<td>{% if item.tester %}<span class="label label-success">да</span>{% else %}<span class="label label-important">нет</span>{% endif %}</td>
|
|
<td>{% if item.subscriber %}<span class="label label-success">да</span>{% else %}<span class="label label-important">нет</span>{% endif %}</td>
|
|
<td>{% if item.activated %}<span class="label label-success">да</span>{% else %}<span class="label label-important">нет</span>{% endif %}</td>
|
|
<td>{{ item.creation_date|date:"Y-m-d H:i" }}</td>
|
|
<td>{{ item.modification_date|date:"Y-m-d H:i" }}</td>
|
|
|
|
<td><a href="{% url 'newsletters_contact_update' item.contactsettings.id %}">Изменить</a> </td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
{# pagination #}
|
|
{% include 'admin/includes/admin_pagination.html' with page_obj=object_list %}
|
|
</div>
|
|
|
|
{% endblock %} |