{% load render_table from django_tables2 %} {% load django_tables2 %} {% load humanize %}
{% if table.paginated_rows %}
{% include "htmx/table/header.html" %} {% include "htmx/table/bulkaction.html" %}
{% endif %}
{% if table.paginated_rows %} {% if table.show_header %} {% for column in table.columns %} {% endfor %} {% endif %} {% for row in table.paginated_rows %} {% for column, cell in row.items %} {% endfor %} {% endfor %}
{% if column.orderable %} {{ column.header }} {% if column.is_ordered %} {% if column.order_by_alias.is_descending %} {% else %} {% endif %} {% else %} {% endif %} {% else %} {{ column.header }} {% endif %}
{{ cell }}
{% else %}

{{ table.empty_text|default:"No records found." }}

{% endif %}
{% if table.paginated_rows %} {% include "htmx/table/pagination.html" %} {% endif %}