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

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

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