{% load django_tables2 i18n %} {% block table-wrapper %}
{% block table %} {% block table.thead %} {% if table.show_header %} {# sort attributes and filter row #} {% for column in table.columns %} {% if column.name in table.columns_visible %} {% endif %} {% endfor %} {% if table.filter.style == table.filter.style.HEADER %} {% for field in table.header_fields %} {% endfor %} {% endif %} {% endif %} {% endblock table.thead %} {% block table.tbody %} {% include "django_tableaux/render_rows.html" %} {% endblock table.tbody %} {% block table.tfoot %} {% if table.has_footer %} {% for column in table.columns %} {% if column.name in table.columns_visible %} {% endif %} {% endfor %} {% endif %} {% endblock table.tfoot %}
{% if column.name == "selection" %} {% else %} {% if column.orderable %} {# {% if "-" in column.order_by.0 %}△{% else %}▽{% endif %}#} {{ column.header }} {% else %} {{ column.header }} {% endif %} {% endif %}
{% if field %} {% include "django_tableaux/toolbar/_filter_field.html" with field=field header=True %} {% endif %}
{{ column.footer }}
{% endblock table %} {% block pagination %} {% if not table.infinite_scroll and not table.infinite_load %} {% include "django_tableaux/paginator.html" %} {% endif %} {% endblock pagination %}
{% endblock table-wrapper %}