{% load django_tables2 %} {% load tables %} {% block content %} {% load i18n %} {% block table %}
Show entries
{% if search_data|get_search_data:table.prefix %}
{% endif %}
{% block table.thead %} {% if table.complex_header %} {% for column in table.columns %} {% if not column.column.in_group %} {% if column.orderable %} {{ column.header }} {% else %} {{ column.header }} {% endif %} {% else %} {% if column.column.first_in_group %} {% if column.orderable %} {{ column.column.group_name }} {% else %} {{ column.column.group_name }} {% endif %} {% endif %} {% endif %} {% endfor %} {% for column in table.columns %} {% if column.column.in_group %} {{ column.header }} {% endif %} {% endfor %} {% else %} {% for column in table.columns %} {{ column.header }} {% endfor %} {% endif %} {% endblock table.thead %} {% block table.tbody %} {% for row in table.page.object_list|default:table.rows %} {# support pagination #} {% block table.tbody.row %} {% for column, cell in row.items %} {{ cell }} {% endfor %} {% endblock table.tbody.row %} {% empty %} {% if table.empty_text %} {% block table.tbody.empty_text %} {{ table.empty_text }} {% endblock table.tbody.empty_text %} {% endif %} {% endfor %} {% endblock table.tbody %} {% block table.tfoot %} {% endblock table.tfoot %} {% endblock table %} {% if table.page %} {% block pagination %} {% if table.page.has_previous or table.page.has_next %} {% endif %} {% endblock pagination %} {% endif %} {% endblock %}