
{% extends '@ajax-layout/layout.twig' %}

{% block body %}
	<center>
	<div id="genetableau">
		<div>
		<form method="POST" id='formulaireListe'>
			<input type="hidden" name="divCode" value="{{ post.divCode }}" />
			<input type="hidden" name="divLibelle" value="{{ post.divLibelle }}" />
    			<table class="table" id="tableau">
    				<thead class="thead-dark">
        				<tr>
        					<th>{{ triTable('CODEFORM',  post.tri_CODEFORM, 'Code' | trad, 'genetableau', path('Ajax.liste.aoFormatExcel'), 'formulaireListe') }}</th>
        					<th>{{ triTable('VERSFORM',  post.tri_VERSFORM, 'Version' | trad, 'genetableau', path('Ajax.liste.aoFormatExcel'), 'formulaireListe') }}</th>
        					<th>{{ triTable('LIBFORM',  post.tri_LIBFORM, 'Libellé' | trad, 'genetableau', path('Ajax.liste.aoFormatExcel'), 'formulaireListe') }}</th>
        				</tr>
        			</thead>
        			<tbody>
        				<tr>
        					<th>{{ filterTable('CODEFORM', post.filter_CODEFORM, '', 'genetableau', path('Ajax.liste.aoFormatExcel'), 'formulaireListe') }}</th>
        					<th>{{ filterTable('VERSFORM', post.filter_VERSFORM, '', 'genetableau', path('Ajax.liste.aoFormatExcel'), 'formulaireListe') }}</th>
        					<th>{{ filterTable('LIBFORM', post.filter_LIBFORM, '', 'genetableau', path('Ajax.liste.aoFormatExcel'), 'formulaireListe') }}</th>
        				</tr>
        				{% for entity in listeEntity %}
        				
        				<tr onclick='changeCodeLibelle("{{ post.divCode }}","{{ entity.CODEFORM~'|'~entity.VERSFORM }}", "{{ post.divLibelle }}", "{{ entity.LIBFORM }}");desactivePopup ()'>
        					<td>{{ entity.CODEFORM   | convert_encoding('UTF-8', 'ISO-8859-1') }}</td>
        					<td>{{ entity.VERSFORM  | convert_encoding('UTF-8', 'ISO-8859-1') }}</td>
        					<td>{{ entity.LIBFORM  | convert_encoding('UTF-8', 'ISO-8859-1') }}
        				</tr>
        				{% endfor %}
        			</tbody>
    			</table>
		</form>
		
	    {{ paginations(path('Ajax.liste.aoFormatExcel'),infoPagination.nombreDePage, infoPagination.page, infoPagination.post, 'modal-body') }}
		</div>
	</div>

	</center>
	</div>
	
	{% endblock %}