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.
12 lines
1.3 KiB
12 lines
1.3 KiB
{% extends "docs/_base/base_list.html" %}
|
|
|
|
{% block table_header_extra %}
|
|
<th><a href="?{{ ordering.order_var }}=paid_status&{{ ordering.order_type_var }}={% if ordering.order_field == 'paid_status' %}{% if ordering.order_type == 'asc' %}desc{% else %}asc{% endif %}{% else %}asc{% endif %}">Оплачен?{% if ordering.order_field == 'paid_status' %}{% if ordering.order_type == 'asc' %}{{ img_desc }}{% else %}{{ img_asc }}{% endif %}{% else %}{{ img_none }}{% endif %}</a></th>
|
|
<th><a href="?{{ ordering.order_var }}=closed_status&{{ ordering.order_type_var }}={% if ordering.order_field == 'closed_status' %}{% if ordering.order_type == 'asc' %}desc{% else %}asc{% endif %}{% else %}asc{% endif %}">Закрыт?{% if ordering.order_field == 'closed_status' %}{% if ordering.order_type == 'asc' %}{{ img_desc }}{% else %}{{ img_asc }}{% endif %}{% else %}{{ img_none }}{% endif %}</a></th>
|
|
{% endblock %}
|
|
|
|
{% block table_obj_cells_extra %}
|
|
<td class="center"><a href="#" class="toggle_doc_status doc_status{{ obj.paid_status }}" data-doctype="invoice" data-attr="paid_status">{{ obj.get_paid_status_display }}</a></td>
|
|
<td class="center"><a href="#" class="toggle_doc_status doc_status{{ obj.closed_status }}" data-doctype="invoice" data-attr="closed_status">{{ obj.get_closed_status_display }}</a></td>
|
|
{% endblock %}
|
|
|
|
|