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
3.2 KiB

{% extends "docs/_base/base_list.html" %}
{% block table_header %}
<th><a href="?{{ ordering.order_var }}=doc_num&{{ ordering.order_type_var }}={% if ordering.order_field == 'doc_num' %}{% if ordering.order_type == 'asc' %}desc{% else %}asc{% endif %}{% else %}asc{% endif %}">Номер</a>&nbsp;
{% if ordering.order_field == 'doc_num' %}{% if ordering.order_type == 'asc' %}{{ img_asc }}{% else %}{{ img_desc }}{% endif %}{% endif %}</th>
<th><a href="?{{ ordering.order_var }}=doc_date&{{ ordering.order_type_var }}={% if ordering.order_field == 'doc_date' %}{% if ordering.order_type == 'asc' %}desc{% else %}asc{% endif %}{% else %}asc{% endif %}">Дата выдачи</a>&nbsp;
{% if ordering.order_field == 'doc_date' %}{% if ordering.order_type == 'asc' %}{{ img_asc }}{% else %}{{ img_desc }}{% endif %}{% endif %}</th>
<th><a href="?{{ ordering.order_var }}=doc_expire_date&{{ ordering.order_type_var }}={% if ordering.order_field == 'doc_expire_date' %}{% if ordering.order_type == 'asc' %}desc{% else %}asc{% endif %}{% else %}asc{% endif %}">Срок действия</a>&nbsp;
{% if ordering.order_field == 'doc_expire_date' %}{% if ordering.order_type == 'asc' %}{{ img_asc }}{% else %}{{ img_desc }}{% endif %}{% endif %}</th>
<th><a href="?{{ ordering.order_var }}=dover_name&{{ ordering.order_type_var }}={% if ordering.order_field == 'dover_name' %}{% if ordering.order_type == 'asc' %}desc{% else %}asc{% endif %}{% else %}asc{% endif %}">Кому выдана</a>&nbsp;
{% if ordering.order_field == 'dover_name' %}{% if ordering.order_type == 'asc' %}{{ img_asc }}{% else %}{{ img_desc }}{% endif %}{% endif %}</th>
<th><a href="?{{ ordering.order_var }}=client__name&{{ ordering.order_type_var }}={% if ordering.order_field == 'client__name' %}{% if ordering.order_type == 'asc' %}desc{% else %}asc{% endif %}{% else %}asc{% endif %}">Контрагент</a>&nbsp;
{% if ordering.order_field == 'client__name' %}{% if ordering.order_type == 'asc' %}{{ img_asc }}{% else %}{{ img_desc }}{% endif %}{% endif %}</th>
{% endblock %}
{% block table_obj_cells %}
<td class='clck'>{{ obj.doc_num }}</td>
<td class='clck'><a href="{{ url_img }}">{{ obj.doc_date|date:"d.m.Y" }}</a></td>
<td class='clck'>{{ obj.doc_expire_date|date:"d.m.Y" }}</td>
<td class='clck'>{{ obj.dover_name }}</td>
<td class='clck'>
{% if obj.client.name_short_dadata %}
{{ obj.client.name_short_dadata }}
{% else %}
{{ obj.client.name }}
{% endif %}
{% if obj.client.name_short_self %}
<br><span style="color: gray; font-size: 11px;">{{ obj.client.name_short_self }}</span>
{% endif %}
</td>
{% endblock %}
{# важно! tfoot (также как и thead), нужен в js для показа/скрытия боковой панели #}
{# правильный colspan нужен для IE, иначе он игнорит footer #}
{% block table_footer %}
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
{% endblock table_footer %}
{% block no-docs-create-new %}
Вы ещё не создали ни одной {{ padeji.rodit }}. </br></br><a id="add-new" href="{{ url_add }}">Создать</a>
{% endblock %}