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

{% block body %}
<div id="genetableau">
	<center>
    	<div>
    		<form method="POST" id='formDoa'>
    			<input type="hidden" name="divCode" value="{{ post.divCode }}" />
    			<input type="hidden" name="filter_IS_PERE" value="{{ post.filter_IS_PERE }}" />
    			<table class="table" id="tableau">
    			<input type="hidden" name="divLibelle" value="{{ post.divLibelle }}" />
        			<thead class="thead-dark">
        				<tr>
        					<th>{{ triTable('REF',  infoPagination.filter.tri_REF, 'Code devise' | trad,'tableau', path('Ajax.liste.doa'), 'formDoa') }}</th>
        					<th>{{ triTable('LIB',  infoPagination.filter.tri_LIB, 'Libellé' | trad,'tableau', path('Ajax.liste.doa'), 'formDoa') }}</th>
        				</tr>
        			</thead>
        			<tbody>
        				<tr>
        					<th>{{ filterTable('REF', infoPagination.filter.filter_REF, '','tableau', path('Ajax.liste.doa'), 'formDoa') }}</th>
        					<th>{{ filterTable('LIB', infoPagination.filter.filter_LIB, '','tableau', path('Ajax.liste.doa'), 'formDoa') }}</th>
            		    </tr>
        				{% for entity in listeEntity %}
        				<tr onclick='changeCodeLibelle("{{ post.divCode }}","{{ entity.ID }}", "{{ post.divLibelle }}", "{{ entity.ID~' ('~entity.LIB~')' | convert_encoding('UTF-8', 'ISO-8859-1') }}");desactivePopup ()'>
        					<td>{{ entity.REF   | convert_encoding('UTF-8', 'ISO-8859-1') }}</td>
        					<td>{{ entity.LIB | convert_encoding('UTF-8', 'ISO-8859-1') }}</td>
        				</tr>
        				{% endfor %}
        			</tbody>
    			</table>
                {{ paginations(path('Ajax.liste.doa'),infoPagination.nombreDePage, infoPagination.page, infoPagination.post, 'modal-body') }}
    		</form>
    	</div>
	</center>
</div>
{% endblock %}