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

{% block body %}
<div id="genetableau">
	<center>
	<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('DOUANE',  infoPagination.filter.tri_DOUANE, 'Code' | trad, 'genetableau', path(path), 'formulaireListe') }}</th>
        					<th>{{ triTable('LIBELLE',  infoPagination.filter.tri_LIBELLE, 'Libellé' | trad, 'genetableau', path(path), 'formulaireListe') }}</th>
        				</tr>
        			</thead>
        			<tbody>
        				<tr>
        					<th>{{ filterTable('DOUANE', infoPagination.filter.filter_DOUANE, '', 'genetableau', path(path), 'formulaireListe') }}</th>
        					<th>{{ filterTable('LIBELLE', infoPagination.filter.filter_LIBELLE, '', 'genetableau', path(path), 'formulaireListe') }}</th>

        				</tr>
        				</tr>
        				{% for value in entity %}
        				
        				<tr onclick='changeCodeLibelle("{{ post.divCode }}","{{ value.DOUANE |e('js')|raw }}", "{{ post.divLibelle }}", "{{ value.NO_CDE~' ('~value.DOUANE~')' |e('js')|raw }}");desactivePopup ()'>
        					<td>{{ value.DOUANE }}</td>        
        					<td>{{ value.LIBELLE }}</td> 
        				</tr>
        				{% endfor %}
        			</tbody>
    			</table>
			
		</form>
		
	{{ paginations(path(path),infoPagination.nombreDePage, infoPagination.page, infoPagination.post, 'modal-body') }}
	</div>

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