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.
37 lines
1.5 KiB
37 lines
1.5 KiB
{% extends 'base.html' %}
|
|
{% load i18n %}
|
|
|
|
{% block body %}
|
|
<div class="box span8">
|
|
<div class="box-header well">
|
|
<h2><i class="icon-arrow-down"></i>{% trans "Список комментариев" %}</h2>
|
|
</div>
|
|
<div class="box-content">
|
|
{% block list_table %}
|
|
<a class="btn btn-success" href="{% url 'expobaner-comment_add' %}"><i class="icon-plus-sign icon-white"></i> {% trans "Добавить комментарий" %}</a>
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>{% trans "Имя" %}</th>
|
|
<th>{% trans "Должность" %}</th>
|
|
<th> </th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for item in object_list %}
|
|
<tr>
|
|
<td>{{ item }}</td>
|
|
<td>{{ item.position }}</td>
|
|
<td><a class="btn btn-info" href="{% url 'expobaner-comment_edit' item.pk %}"><i class="icon-edit icon-white"></i>{% trans "Изменить" %}</a></td>
|
|
<td><a class="btn btn-danger delete" href="{% url 'expobaner-comment_delete' item.pk %}"><i class="icon-trash icon-white"></i>{% trans "Удалить" %}</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endblock %}
|
|
</div>
|
|
{# pagination #}
|
|
{% include 'c_admin/includes/admin_pagination.html' with page_obj=object_list %}
|
|
</div>
|
|
{% endblock %}
|
|
|