
{% 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('CODE_MSG',  infoPagination.filter.tri_CODE_MSG, '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('CODE_MSG', infoPagination.filter.filter_CODE_MSG, '', 'genetableau', path(path), 'formulaireListe') }}</th>
        					<th>{{ filterTable('LIBELLE', infoPagination.filter.filter_LIBELLE, '', 'genetableau', path(path), 'formulaireListe') }}</th>
        				</tr>
        				</tr>
        				{% for val in entity %}
        				
        				<tr onclick='changeCodeLibelle("{{ post.divCode }}","{{ val.CODE_MSG |e('js')|raw }}", "{{ post.divLibelle }}", "{{ val.LIBELLE~' ('~val.NO_CDE~')' |e('js')|raw }}");desactivePopup ()'>
        					<td>{{ val.CODE_MSG }}</td>        
        					<td>{{ val.LIBELLE }}</td> 
        				</tr>
        				{% endfor %}
        			</tbody>
    			</table>
			
		</form>
		
	{{ paginations(path(path),infoPagination.nombreDePage, infoPagination.page, infoPagination.post, 'modal-body') }}
	</div>

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