{% load i18n static django_grid_view %} {% if load_assets %} {% grid_view_bundle %} {% endif %} {% if column_settings %} {% grid_view_column_settings_assets %} {% endif %} {% if config.wrapper == "full" %}
{% elif config.wrapper == "shell" %}
{% endif %} {% if config.show_toolbar %} {% if config.wrapper == "full" or config.toolbar_left or config.toolbar_center or config.search_mode != "disabled" or config.export_xlsx_url or config.export_pdf or column_settings %}
{% if config.toolbar_left %}
{{ config.toolbar_left }}
{% endif %} {% if config.search_mode != "disabled" %} {% endif %} {% if config.toolbar_center %}
{{ config.toolbar_center }}
{% endif %} {% if config.show_counter %} {{ count }} {% translate 'tables.records' %} {% endif %}
{% if column_settings %} {% render_django_grid_view_gear config.grid_id %} {% endif %} {% if config.export_xlsx_url %} {% include "django_grid_view/partials/export_xlsx_link.html" with href=config.export_xlsx_url grid_id=config.grid_id %} {% endif %} {% if config.export_pdf %} {% include "django_grid_view/partials/export_pdf_link.html" with href=config.export_pdf_url grid_id=config.grid_id %} {% endif %}
{% endif %} {% endif %} {% for hrow in header_rows %} {% for h in hrow %} {% endfor %} {% endfor %} {% for row in rows %} {% if row.section_header %} {% if row.section_cells %} {% for cell in row.section_cells %} {% endfor %} {% else %} {% endif %} {% else %} {% for cell in row.cells %} {% endfor %} {% endif %} {% empty %} {% endfor %} {% if rows %} {% endif %} {% if footer_cells %} {% for cell in footer_cells %} {% endfor %} {% endif %}
1 %}colspan="{{ h.colspan }}"{% endif %} {% if h.rowspan > 1 %}rowspan="{{ h.rowspan }}"{% endif %} {% if h.width %}style="width:{{ h.width }}"{% endif %} class="cm-th-filterable{% if h.hide %} cm-col-hidden{% endif %}"> {% if h.key %}
{{ h.label }} {% if h.sortable %}{% endif %}
{% else %} {{ h.label }}{% if h.sortable %} {% endif %} {% endif %}
{{ cell.html }} {{ row.section_header }}
{{ cell.html }}
{% if config.empty_message %}{{ config.empty_message }}{% else %}{% translate "tables.empty" %}{% endif %}
1 %}colspan="{{ cell.colspan }}"{% endif %}{% if cell.col_key %} data-cm-col-key="{{ cell.col_key }}" data-cm-footer-aggregate="1"{% endif %}{% if cell.export_raw %} data-cm-export-raw="{{ cell.export_raw }}"{% endif %}>{{ cell.html }}
{% if column_settings %} {% render_django_grid_view_modal config.grid_id %} {% endif %} {% if config.wrapper == "full" or config.wrapper == "shell" %}
{% endif %}