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.
34 lines
2.9 KiB
34 lines
2.9 KiB
{% extends "docs/_base/base_list.html" %}
|
|
|
|
{% block table_header %}
|
|
<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>
|
|
{% if ordering.order_field == 'doc_date' %}{% if ordering.order_type == 'asc' %}<span title="01-31">↑</span>{% else %}<span title="31-01">↓</span>{% endif %}{% endif %}</th>
|
|
|
|
<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>
|
|
{% if ordering.order_field == 'doc_num' %}{% if ordering.order_type == 'asc' %}<span title="1-9">↑</span>{% else %}<span title="9-1">↓</span>{% endif %}{% endif %}</th>
|
|
|
|
<th><a href="?{{ ordering.order_var }}=invoice__doc_num&{{ ordering.order_type_var }}={% if ordering.order_field == 'invoice__doc_num' %}{% if ordering.order_type == 'asc' %}desc{% else %}asc{% endif %}{% else %}asc{% endif %}">По счёту</a>
|
|
{% if ordering.order_field == 'invoice__doc_num' %}{% if ordering.order_type == 'asc' %}<span title="1-9">↑</span>{% else %}<span title="9-1">↓</span>{% 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>
|
|
{% if ordering.order_field == 'client__name' %}{% if ordering.order_type == 'asc' %}<span title="А-Я">↑</span>{% else %}<span title="Я-А">↓</span>{% endif %}{% endif %}</th>
|
|
|
|
<th><a href="?{{ ordering.order_var }}=doc_sum&{{ ordering.order_type_var }}={% if ordering.order_field == 'doc_sum' %}{% if ordering.order_type == 'asc' %}desc{% else %}asc{% endif %}{% else %}asc{% endif %}">Сумма</a>
|
|
{% if ordering.order_field == 'doc_sum' %}{% if ordering.order_type == 'asc' %}<span title="1-9">↑</span>{% else %}<span title="9-1">↓</span>{% endif %}{% endif %}</th>
|
|
|
|
<th>Подписана?</th>
|
|
{% endblock %}
|
|
|
|
{% block table_obj_cells %}
|
|
<td class='clck'><a href="{{ url_img }}">{{ obj.doc_date|date:"d.m.Y" }}</a></td>
|
|
<td class='clck'>{{ obj.doc_num }}</td>
|
|
<td class='clck'>{{ obj.invoice.doc_num }}</td>
|
|
<td class='clck'>{{ obj.client.name }}</td>
|
|
<td class='clck'>{{ obj.doc_sum|default:"---" }}</td>
|
|
<td><a href="#" class="toggle_doc_status doc_status{{ obj.signed_status }}" data-doctype="faktura" data-attr="signed_status">{{ obj.get_signed_status_display }}</a></td>
|
|
{% endblock %}
|
|
|
|
{% block no-docs-create-new %}
|
|
Вы ещё не создали ни одной {{ padeji.rodit }}. <a id="add-new" href="{{ url_add }}">Создать</a>.
|
|
{% endblock %}
|
|
|
|
|