
{% 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('CODE_PAYS',  infoPagination.filter.tri_CODE_PAYS, 'Code' | trad, 'genetableau', path('Ajax.liste.pays'), 'formulaireListe') }}</th>
							<th>{{ triTable('LIBELLE',  infoPagination.filter.tri_LIBELLE, 'Libellé' | trad, 'genetableau', path('Ajax.liste.pays'), 'formulaireListe') }}</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<th>{{ filterTable('CODE_PAYS', infoPagination.filter.filter_CODE_PAYS, '', 'genetableau', path('Ajax.liste.pays'), 'formulaireListe') }}</th>
							<th>{{ filterTable('LIBELLE', infoPagination.filter.filter_LIBELLE, '', 'genetableau', path('Ajax.liste.pays'), 'formulaireListe') }}</th>
						</tr>
						{% for pays in listPays %}
						<tr onclick='changeCodeLibelle("{{ post.divCode }}","{{ pays.CODE_PAYS | convert_encoding('UTF-8', 'ISO-8859-1')  }}", "{{ post.divLibelle }}", "{{ pays.LIBELLE~' ('~pays.CODE_PAYS~')' | convert_encoding('UTF-8', 'ISO-8859-1') }}");desactivePopup ()'>
							<td>{{ pays.CODE_PAYS   | convert_encoding('UTF-8', 'ISO-8859-1') }}</td>
							<td>{{ pays.LIBELLE  | convert_encoding('UTF-8', 'ISO-8859-1') }}</td>
						</tr>
						{% endfor %}
					</tbody>
				</table>
			</form>
			{{ paginations(path('Ajax.liste.pays'),infoPagination.nombreDePage, infoPagination.page, infoPagination.post, 'modal-body') }}
		</div>
	</div>
	</center>
{% endblock %}