{% if table.search %}
{% trans 'table_search' %}:
{% if table.filters %}
(Aucun)
{% for key, value in table.filters.items %}
{{ value }}
{% endfor %}
{% endif %}
{% trans 'table_search_action' %}
{% if table.modules %}
Actions
{% endif %}
{% if table.reports %}
Imprimer
{% endif %}
{% for button in table.buttons %}
{% if button|class_name == 'TableButtonGroup' %}
{{button.label}}
{% else %}
{{button.label}}
{% endif %}
{% endfor %}
{% endif %}
{% if filter_title %}
{{filter_title}}
{% endif %}
{% for column in table.columns %}
{% if column.sortable %}
{% include "components/table_header.html" with sort=sort key=column.key name=column.name %}
{% else %}
{{column.name}}
{% endif %}
{% endfor %}
{% if table.rows %}
{% for row in table.rows %}
{% if table.update %}
{% else %}
{% endif %}
{% for column in table.columns %}
{% if column.link %}
{% if column.method %}
{{ row|method:column.method }}
{% else %}
{% include "components/table_column.html" with type=column.type value=row|get:column%}
{% endif %}
{% else %}
{% if column.method %}
{{ row|method:column.method }}
{% else %}
{% if column.buttons %}
{% for button in column.buttons %}
{% if button|class_name == 'TableButton' %}
{% if button.label %}
{{ button.label }}
{% endif %}
{% if button.icon %}
{% endif %}
{% endif %}
{% if button|class_name == 'TableButtonIcon' %}
{%if button|visible:row %}
{% endif %}
{% endif %}
{% endfor %}
{% else %}
{% include "components/table_column.html" with type=column.type value=row|get:column%}
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
{% if page_count and not no_paginate %}
{% if pagination %}
{% include "components/paginator.html" %}
{% endif %}
{{ page_count }} élément(s)
{% endif %}