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.
75 lines
2.3 KiB
75 lines
2.3 KiB
{% extends 'admin_list.html' %}
|
|
|
|
{% block body %}
|
|
|
|
<div class="box span8">
|
|
<div class="box-header well">
|
|
<h2><i class="icon-arrow-down"></i>Фильтры</h2>
|
|
</div>
|
|
<div class="box-content">
|
|
<form>
|
|
{{ form }}
|
|
|
|
<button type="submit" class="btn">Найти</button>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="box span8">
|
|
<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>id</th>
|
|
<th>Компания</th>
|
|
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
{% with request.GET.urlencode as request_get_params %}
|
|
<tbody>
|
|
{% for item in object_list %}
|
|
<tr>
|
|
<td>{{ item.id }}</td>
|
|
<td>{{ item.name }}</td>
|
|
|
|
<td class="center sorting_1">
|
|
{% if item.blocked %}
|
|
<a class="btn btn-success" href="{% url 'admin_company_unblock' item.url_or_pk %}?{{ request_get_params }}" title="Разблокировать">
|
|
<i class="icon-check icon-white"></i>
|
|
</a>
|
|
{% elif not item.blocked %}
|
|
<a class="btn btn-inverse" href="{% url 'admin_company_block' item.url_or_pk %}?{{ request_get_params }}" title="Заблокировать">
|
|
<i class="icon-ban-circle icon-white"></i>
|
|
</a>
|
|
{% endif %}
|
|
|
|
<a class="btn btn-info" href="{% url 'admin_company_change' item.url_or_pk %}">
|
|
<i class="icon-edit icon-white"></i> Изменить
|
|
</a>
|
|
|
|
<a class="btn btn-danger" href="{% url 'admin_company_delete' item.url_or_pk %}">
|
|
<i class="icon-trash icon-white"></i> Удалить
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
{% endwith %}
|
|
</table>
|
|
<a class="btn btn-success" href="/admin/company/add"><i class="icon-plus-sign icon-white"></i> Добавить компанию</a>
|
|
|
|
|
|
</div>
|
|
|
|
{# pagination #}
|
|
{% include 'admin/includes/admin_pagination.html' with page_obj=object_list %}
|
|
</div>
|
|
|
|
|
|
{% endblock %}
|
|
|