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.
 
 
 
 
 
 

58 lines
1.7 KiB

{% extends 'base.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">
<table class="table table-hover">
<thead>
<tr>
<th>Название</th>
<th>Заголовок</th>
<th>Адресс</th>
<th>Создана</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
{% for item in object_list %}
<tr>
<td>{{ item.title }}</td>
<td>{{ item.h1 }}</td>
<td><a href = "/admin/page/{{ item.url }}/">{{ item.url }}</a></td>
<td> {{ item.created|date:"Y-m-d H:i" }}</td>
<td class="center sorting_1">
<a class="btn-small btn-info" href="/admin/page/edit/{{ item.url }}">
Изменить
</a>
</td>
<td>
<a class="btn-small btn-danger delete" href="/admin/page/delete/{{ item.url }}/">
Удалить
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<a class="btn btn-success" href="/admin/page/new/">
<i class="icon-plus-sign icon-white"></i> Добавить страницу </a>
</div>
<div class="pagination pagination-centered">
<ul>
{% if page_obj.has_previous %}
<li> <a href="?page={{ page_obj.previous_page_number }}"></a></li>
{% endif %}
{% if page_obj.has_next %}
<li><a href="?page={{ page_obj.next_page_number }}"></a></li>
{% endif %}
</ul>
</div>
</div>
{% endblock %}