{% load form_extras %} {% load i18n %} {% if not table.rows and table.placeholder and table.create %}
{{table.placeholder}}
{% else %}
{% if table.heading %}
{{table.heading}} {% if table.count %}({{table.count}}){% endif %}
{% endif %}
{% if table.search %} {% if table.filters %} {% endif %} {% if table.modules %} {% endif %} {% if table.reports %} {% endif %} {% for button in table.buttons %} {% endfor %}
{% trans 'table_search' %}:
{% 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 %} {% endif %} {% endfor %} {% if table.rows %} {% for row in table.rows %} {% if table.update %} {% else %} {% endif %} {% for column in table.columns %} {% endfor %} {% endfor %} {% endif %}
{{column.name}}
{% 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 %} {% include "components/table_column.html" with type=column.type value=row|get:column%} {% endif %} {% endif %}
{% if page_count and not no_paginate %}
{% if pagination %}
{% include "components/paginator.html" %}
{% endif %}
 {{ page_count }} élément(s)
{% endif %}
{% if table.create %} {% endif %}
{% endif %}