{% set path = path('Ajax.liste.domfonct') %}
<div id="genetableau">
<form method="POST" id='form-zoom-liste'>
	<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('CODE',  infoPagination.filter.tri_CODE, 'Code' | trad, 'genetableau', path, 'form-zoom-liste') }}</th>
				<th>{{ triTable('LIBELLE',  infoPagination.filter.tri_LIBELLE, 'Libellé' | trad, 'genetableau', path, 'form-zoom-liste') }}</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<th>{{ filterTable('CODE', infoPagination.filter.filter_CODE, '', 'genetableau', path, 'form-zoom-liste') }}</th>
				<th>{{ filterTable('LIBELLE', infoPagination.filter.filter_LIBELLE, '', 'genetableau', path, 'form-zoom-liste') }}</th>
			</tr>
			{% for item in listItem %}
			<tr onclick="{{ attrJs('changeCodeLibelle', [ post.divCode, item.CODE, post.divLibelle, item.LIBELLE ~ ' (' ~ item.CODE ~ ')']) }};desactivePopup ()">
				<td>{{ item.CODE }}</td>
				<td>{{ item.LIBELLE }}</td>
			</tr>
			{% endfor %}
		</tbody>
	</table>
{{ paginations(path,infoPagination.nombreDePage, infoPagination.page, infoPagination.post, 'modal-body') }}
	
</form>
</div>