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

{% block body %}
<div id ="nouveau-tableau">
	<center>
    	<div id="genetableau">
			<div>
    		<form method="POST" id='formDevise'>
    			<input type="hidden" name="divCode" value="{{ post.divCode }}" />
    			<input type="hidden" name="divLibelle" value="{{ post.divLibelle }}" />
    			<input type="hidden" name="ouvert" value="{{ post.ouvert }}" />
    			<input type="hidden" name="not_INEURO" value="{{ post.not_INEURO }}" />
    			<table class="table" id="tableau">
        			<thead class="thead-dark">
        				<tr>
        					<th>{{ triTable('CODE_DEVI',  infoPagination.filter.tri_CODE_DEVI, 'Code devise' | trad,'tableau', path('Ajax.liste.devise'), 'formDevise') }}</th>
        					<th>{{ triTable('LIBELLE',  infoPagination.filter.tri_LIBELLE, 'Libellé' | trad,'tableau', path('Ajax.liste.devise'), 'formDevise') }}</th>
        				</tr>
        			</thead>
        			<tbody>
        				<tr>
        					<th>{{ filterTable('CODE_DEVI', infoPagination.filter.filter_CODE_DEVI, '','tableau', path('Ajax.liste.devise'), 'formDevise') }}</th>
        					<th>{{ filterTable('LIBELLE', infoPagination.filter.filter_LIBELLE, '','tableau', path('Ajax.liste.devise'), 'formDevise') }}</th>
            		    </tr>
        				{% for devise in devises %}
        				<tr onclick='changeCodeLibelle("{{ post.divCode }}","{{ devise.CODE_DEVI }}", "{{ post.divLibelle }}", "{{ devise.LIBELLE~' ('~devise.CODE_DEVI~')' | convert_encoding('UTF-8', 'ISO-8859-1') }}");desactivePopup ()'>
        					<td>{{ devise.CODE_DEVI   | convert_encoding('UTF-8', 'ISO-8859-1') }}</td>
        					<td>{{ devise.LIBELLE   | convert_encoding('UTF-8', 'ISO-8859-1') }}</td>
        				</tr>
        				{% endfor %}
        			</tbody>
    			</table>

                {{ paginations(path('Ajax.liste.devise'),infoPagination.nombreDePage, infoPagination.page, infoPagination.post, 'nouveau-tableau') }}
    		</form>
    	</div>
    	</div>
	</center>
</div>
{% endblock %}