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.
54 lines
1.8 KiB
54 lines
1.8 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">
|
|
<form class='form-search'>
|
|
{{ search_form.search_name }}
|
|
<button type="submit" class="btn">Найти</button>
|
|
</form>
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Заголовок</th>
|
|
<th>Автор</th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for item in object_list %}
|
|
<tr>
|
|
|
|
<td>{{ item.main_title }}</td>
|
|
<td>{% ifnotequal item.author None %}{{ item.author }} {% endifnotequal %}</td>
|
|
<td class="center sorting_1">
|
|
<a class="btn-small btn-info" href="{{ item.admin_url }}">
|
|
Изменить
|
|
</a>
|
|
</td>
|
|
|
|
<td class="center sorting_1">
|
|
<a class="btn-small btn-inverse" href="/admin/article/copy/{{ item.slug|lower }}">
|
|
Копировать
|
|
</a>
|
|
</td>
|
|
|
|
<td>
|
|
<a class="btn-small btn-danger delete" href="/admin/article/delete/{{ item.slug }}/">
|
|
Удалить
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<a class="btn btn-success" href="{% if blog_flag %}/admin/article/blog/{% else %}{% if news_flag %}/admin/article/news/{% endif %}{% endif %}">
|
|
<i class="icon-plus-sign icon-white"></i> Добавить
|
|
{% if blog_flag %}статью{% else %}{% if news_flag %}новость{% endif %}{% endif %}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |