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.
50 lines
1.8 KiB
50 lines
1.8 KiB
{% extends "base.html" %}
|
|
|
|
{% block title %}Контрагенты{% endblock %}
|
|
|
|
{% block content %}
|
|
<h2>Контрагенты</h2>
|
|
|
|
<div>
|
|
<a class="client add-link" href="{% url 'customer_clients_add' %}" title="Добавить контрагента">
|
|
<img src="{{ STATIC_URL }}img/icon-add.gif" alt="Добавить" title="Добавить контрагента" />Добавить контрагента
|
|
</a>
|
|
</div>
|
|
|
|
{% if page %}
|
|
<br /><br />
|
|
|
|
<table id="clients" class="list">
|
|
<tr id='clients_header_row'>
|
|
<th style="width: 50%">Контрагент</th>
|
|
<th style="width: 18%">Контактное лицо</th>
|
|
<th style="width: 14%">Телефон</th>
|
|
<th style="width: 10%; text-align: center">Редактировать</th>
|
|
<th style="width: 8%; text-align: center">Удалить</th>
|
|
</tr>
|
|
|
|
{% for obj in page.object_list %}
|
|
{% include "customer/clients/list_item.html" %}
|
|
{% endfor %}
|
|
</table>
|
|
|
|
{% include 'paginator.html' with url_list='customer_clients_list' %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block dialogs %}
|
|
{% include "customer/clients/form.html" with form=client_form is_ajax="True" %}
|
|
|
|
<form id="client-delete-form" action="" method="post" title="Удалить контрагента" data-dialog-btn-caption="Да, я уверен">
|
|
{% csrf_token %}
|
|
<div class="errors-layout"></div>
|
|
<p>Вы уверены, что хотите удалить контрагента <span class='client'></span>?</p>
|
|
</form>
|
|
{% endblock %}
|
|
|
|
{% block js %}
|
|
<script src="{{ STATIC_URL }}js/client.commons.js"></script>
|
|
<script src="{{ STATIC_URL }}js/client.list.js"></script>
|
|
|
|
<script src="{{ STATIC_URL }}js/paginator.js"></script>
|
|
{% endblock %}
|
|
|