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

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