{% block main %}
{% if multiple %}<form name="frm-{{ id }}">{% endif %}
<table class="{{ class|default('display table table-bordered') }}" id="{{ id }}">
<thead>
<tr>
{% if multiple %}
<th width="1%" ><input type="checkbox" name="datatable_action_all" /></th>
{% endif %}
{% for label,key in fields %}
{% if label != '_identifier_' %}
<th>{{ label|replace({' ': ' '})|raw }}</th>
{% endif %}
{% endfor %}
</tr>
</thead>
{% if search %}
{% set i = 0 %}
<tfoot>
<tr>
{% if multiple %}
<th></th>
{% endif %}
{% for label,key in fields %}
{% if label != '_identifier_' %}
{% if searchFields is not empty %}
{% if i in searchFields %}
<td><input index="{{ i }}" searchable="true" type="text" placeholder="{% trans %}Rechercher{% endtrans %}" class="search_init" /></td>
{% else %}
<td></td>
{% endif %}
{% endif %}
{% endif %}
{% set i = i+1 %}
{% endfor %}
</tr>
</tfoot>
{% endif %}
</table>
{% if multiple %}</form>{% endif %}
{% endblock %}