{% load humanize %} {% load static %}
{% for header in headers %} {% if header.can_sort %} {% else %} {% for row in data %} {% if row.group_title %} {% endif %} {% for cell in row.cells %} {% endfor %} {% endfor %} {% for cell in totals.cells %} {% endfor %}
{{ header.label }} {% if header.asc %}▲{% elif header.desc %}▼{% else %}{% endif %} {{ header.label }} {% endif %} {% endfor %}
{{ row.group_title }}
{% if cell.formatter == ColumnFormatter.FLOATFORMAT %} {{ cell.value|floatformat:cell.formatter_param }} {% elif cell.formatter == ColumnFormatter.DATE %} {{ cell.value|date:cell.formatter_param }} {% elif cell.formatter == ColumnFormatter.YESNO %} {{ cell.value|yesno }} {% elif cell.formatter == ColumnFormatter.BOOLEAN %} {% if cell.value %} {% else %} {% endif %} {% else %} {{ cell.value }} {% endif %}
{% if cell.formatter == ColumnFormatter.FLOATFORMAT %} {{ cell.value|floatformat:cell.formatter_param }} {% else %} {{ cell.value }} {% endif %}
{% if order_by %} {% endif %} {% if page_obj %}
Showing {{ page_obj.start_index|intcomma }} to {{ page_obj.end_index|intcomma }} of {{ page_obj.paginator.count|intcomma }} entries {% include "htmx_datatables/_spinner.html" %} {% include "htmx_datatables/_pagination.html" %}
{% endif %}