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.
83 lines
2.4 KiB
83 lines
2.4 KiB
{% extends 'admin_list.html' %}
|
|
|
|
{% block styles %}
|
|
|
|
td a{
|
|
float:left;
|
|
margin: 0 10px 10px 0
|
|
}
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% 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>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for item in object_list %}
|
|
|
|
<tr>
|
|
<td>{{ item.id }}</td>
|
|
<td>{{ item.name }}</td>
|
|
<td>{{ item.data_begin }}</td>
|
|
<td style="width: 200px; height:100px;">
|
|
<a class="btn-small btn-warning off" style="{% if item.is_published %}{% else %}display: none;{% endif %}"
|
|
href="/admin/exposition/switch/{{ item.url }}/off">
|
|
Отключить
|
|
</a>
|
|
<a class="btn-small btn-success on" style="{% if item.is_published %}display: none;{% else %}{% endif %}"
|
|
href="/admin/exposition/switch/{{ item.url }}/on">
|
|
Включить
|
|
</a>
|
|
<a class="btn-small btn-info" href="/admin/exposition/{{ item.url|lower }}">
|
|
Изменить
|
|
</a>
|
|
<a class="btn-small btn-inverse" target="_blank" href="{{ item.get_permanent_url }}">
|
|
на сайте
|
|
</a>
|
|
<a class="btn-small btn-danger" href="/admin/exposition/delete/{{ item.url|lower }}">
|
|
Удалить
|
|
</a>
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<a class="btn btn-success" href="/admin/exposition/"><i class="icon-plus-sign icon-white"></i> Добавить выставку</a>
|
|
</div>
|
|
{# pagination #}
|
|
{% include 'admin/includes/admin_pagination.html' with page_obj=object_list %}
|
|
</div>
|
|
{% endblock %} |