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

{% block body %}
<div id="genetableau">
	<center>
	<div>
		<form method="POST" id='formulaireAccadre'>
			<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_ACD',  infoPagination.filter.tri_CODE_ACD, 'Code Accord-cadre' | trad, 'tableau', path('Ajax.liste.accadre'), 'formulaireAccadre') }}</th>
    					<th>{{ triTable('LIBELLE',  infoPagination.filter.tri_LIBELLE, 'Libellé' | trad,'tableau', path('Ajax.liste.accadre'), 'formulaireAccadre') }}</th>
    				</tr>
    			</thead>
    			<tbody>
    				<tr>
    					<th>{{ filterTable('CODE_ACD', infoPagination.filter.filter_CODE_ACD, '', 'tableau', path('Ajax.liste.accadre'), 'formulaireAccadre') }}</th>
    					<th>{{ filterTable('LIBELLE', infoPagination.filter.filter_LIBELLE, '', 'tableau', path('Ajax.liste.accadre'), 'formulaireAccadre') }}</th>
    				</tr>
    				{% for accadre in accadres %}
    				
    				<tr onclick='changeCodeLibelle("{{ post.divCode }}","{{ accadre.CODE_ACD | convert_encoding('UTF-8', 'ISO-8859-1')  }}", "{{ post.divLibelle }}", "{{ accadre.LIBELLE~' ('~accadre.CODE_ACD~')' | convert_encoding('UTF-8', 'ISO-8859-1') }}");desactivePopup ()'>
    					<td id ="{{accadre.CODE_ACD}}">{{ accadre.CODE_ACD | convert_encoding('UTF-8', 'ISO-8859-1')  }}</td>
    					<td>{{ accadre.LIBELLE | convert_encoding('UTF-8', 'ISO-8859-1') }}</td>
    				</tr>
    				{% endfor %}
    			</tbody>
			</table>
			
		</form>
		
	{{ paginations(path('Ajax.liste.accadre'),infoPagination.nombreDePage, infoPagination.page, infoPagination.post, 'modal-body') }}
	</div>

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