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.
 
 
 
 

36 lines
2.5 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>&nbsp;
{% if ordering.order_field == 'doc_date' %}{% if ordering.order_type == 'asc' %}<span title="01-31">&uarr;</span>{% else %}<span title="31-01">&darr;</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>&nbsp;
{% if ordering.order_field == 'doc_num' %}{% if ordering.order_type == 'asc' %}<span title="1-9">&uarr;</span>{% else %}<span title="9-1">&darr;</span>{% endif %}{% endif %}</th>
<th>Тип</th>
<th><a href="?{{ ordering.order_var }}=doc_info&{{ ordering.order_type_var }}={% if ordering.order_field == 'doc_info' %}{% if ordering.order_type == 'asc' %}desc{% else %}asc{% endif %}{% else %}asc{% endif %}">Назначение платежа</a>&nbsp;
{% if ordering.order_field == 'doc_info' %}{% if ordering.order_type == 'asc' %}<span title="А-Я">&uarr;</span>{% else %}<span title="Я-А">&darr;</span>{% endif %}{% endif %}</th>
<th><a href="?{{ ordering.order_var }}=doc_total&{{ ordering.order_type_var }}={% if ordering.order_field == 'doc_total' %}{% if ordering.order_type == 'asc' %}desc{% else %}asc{% endif %}{% else %}asc{% endif %}">Сумма</a>&nbsp;
{% if ordering.order_field == 'doc_total' %}{% if ordering.order_type == 'asc' %}<span title="1-9">&uarr;</span>{% else %}<span title="9-1">&darr;</span>{% endif %}{% endif %}</th>
{% endblock %}
{% block table_obj_cells %}
<td><a href="{{ url_edit }}">{{ obj.doc_date|date:"d.m.Y" }}</a></td>
<td>{{ obj.doc_num }}</td>
<td>{{ obj.get_platej_type_display }}</td>
<td>{{ obj.doc_info }}</td>
<td>{{ obj.doc_total }}</td>
{% endblock %}
{# важно! tfoot (также как и thead), нужен в js для показа/скрытия боковой панели #}
{# правильный colspan нужен для IE, иначе он игнорит footer #}
{% block table_footer %}
<tfoot><tr><td colspan="5"></td></tr></tfoot>
{% endblock %}
{% block panel_copy %}
<a href="{{ url_copy }}" title="Копию плат. поручения">Копию плат. поручения</a><br />
<br />
{% endblock %}