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.
51 lines
1.5 KiB
51 lines
1.5 KiB
{% extends 'base.html' %}
|
|
{% comment %}
|
|
Displays lists of all companies in the table
|
|
and creating buttons which can change each company
|
|
{% endcomment %}
|
|
{% 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>id</th>
|
|
<th>Компания</th>
|
|
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for item in objects %}
|
|
<tr>
|
|
<td>{{ item.id }}</td>
|
|
<td>{{ item.name }}</td>
|
|
|
|
<td class="center sorting_1">
|
|
<a class="btn btn-info" href="/admin/company/change/{% if item.url %}{{ item.url }}{% else %}{{ item.id }}{% endif %}">
|
|
<i class="icon-edit icon-white"></i> Изменить
|
|
</a>
|
|
|
|
<a class="btn btn-danger" href="/admin/company/delete/{{ item.id }}">
|
|
<i class="icon-trash icon-white"></i> Удалить
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<a class="btn btn-success" href="/admin/company/add"><i class="icon-plus-sign icon-white"></i> Добавить компанию</a>
|
|
{# pagination #}
|
|
{% include 'c_admin/includes/admin_pagination.html' with page_obj=objects %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|