
{% 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 }}" />
    			<table class="table" id="tableau">
    			<input type="hidden" name="divLibelle" value="{{ post.divLibelle }}" />
        			<thead class="thead-dark">
        				<tr>
        					<th>{{ triTable('CODEDCP',  infoPagination.filter.tri_CODEDCP, 'Code devise' | trad,'tableau', path('Ajax.liste.decoupage'), 'formDevise') }}</th>
        					<th>{{ triTable('LIBDECOUP',  infoPagination.filter.tri_LIBDECOUP, 'Libellé' | trad,'tableau', path('Ajax.liste.decoupage'), 'formDevise') }}</th>
        				</tr>
        			</thead>
        			<tbody>
        				<tr>
        					<th>{{ filterTable('CODEDCP', infoPagination.filter.filter_CODEDCP, '','tableau', path('Ajax.liste.decoupage'), 'formDevise') }}</th>
        					<th>{{ filterTable('LIBDECOUP', infoPagination.filter.filter_LIBDECOUP, '','tableau', path('Ajax.liste.decoupage'), 'formDevise') }}</th>
            		    </tr>
        				{% for dec in listeDecoupage %}
        				<tr onclick='changeCodeLibelle("{{ post.divCode }}","{{ dec.CODEDCP }}", "{{ post.divLibelle }}", "{{ dec.LIBDECOUP~' ('~dec.CODEDCP~')' | convert_encoding('UTF-8', 'ISO-8859-1') }}");desactivePopup ()'>
        					<td>{{ dec.CODEDCP   | convert_encoding('UTF-8', 'ISO-8859-1') }}</td>
        					<td>{{ dec.LIBDECOUP | convert_encoding('UTF-8', 'ISO-8859-1') }}</td>
        				</tr>
        				{% endfor %}
        			</tbody>
    			</table>
                {{ paginations(path('Ajax.liste.decoupage'),infoPagination.nombreDePage, infoPagination.page, infoPagination.post, 'modal-body') }}
    		</form>
    	</div>
	</center>
</div>
{% endblock %}