{% load template_utils %} {% with table_id=table.object_id|default:'obj'|concat:'-table' %}
{% block table %} {% block table_header %} {% for column in table.columns %} {% endfor %} {% endblock table_header %} {% block table_rows %} {% for object in page.object_list %} {% block object %} {% for column in table.columns %} {% endfor %} {% endblock object %} {% empty %} {% endfor %} {% endblock table_rows %} {% block table_footer %} {% endblock table_footer %}
{% if column.header_template %} {% include column.header_template %} {% elif column.filter_by or column.order_by %} {% include "./_table_filterable_column_header.html" %} {% else %} {{ column.header }} {% endif %}
{% if column.cell_template %} {% include column.cell_template %} {% elif column.lookup_key %} {% with default=column.default|default:'-' %}{{ object|get_item:column.lookup_key|default:default }}{% endwith %} {% endif %}
No items on this page.
Total
{{ count }}
{{ table.add_button.text }}
{% include "components/_table_paginator.html" %}
{% with ordering_value=table.filter_form|fieldvalue:table.ordering_field %} {% if ordering_value %}
{% endif %} {% endwith %} {% endblock table %}
{% endwith %}