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

{% block body %}
<div id="genetableau">
	<center>
	<div>
		<form method="POST" id='formOrdonance'>
			<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_ORDO',  infoPagination.filter.tri_NO_CDE, 'Code ordonnance' | trad,'genetableau', path('Ajax.liste.ordonance'), 'formOrdonance') }}</th>
        					<th>{{ triTable('LIBELLE',  infoPagination.filter.tri_LIBELLE, 'Libellé ordonnance' | trad,'genetableau', path('Ajax.liste.ordonance'), 'formOrdonance') }}</th>
    				</tr>
    			</thead>
    			<tbody>
    				<tr>
        					<th>{{ filterTable('CODE_ORDO', infoPagination.filter.filter_NO_CDE, '','genetableau', path('Ajax.liste.ordonance'), 'formOrdonance') }}</th>
        					<th>{{ filterTable('LIBELLE', infoPagination.filter.filter_LIBELLE, '','genetableau', path('Ajax.liste.ordonance'), 'formOrdonance') }}</th>
        		    </tr>
    				{% for ordonance in ordonances %}
    				
    				<tr onclick='changeCodeLibelle("{{ post.divCode }}","{{ ordonance.CODE_ORDO }}", "{{ post.divLibelle }}", "{{ ordonance.CODE_ORDO | convert_encoding('UTF-8', 'ISO-8859-1') }}");desactivePopup ()'>
    					<td>{{ ordonance.CODE_ORDO   | convert_encoding('UTF-8', 'ISO-8859-1') }}</td>
    
    				</tr>
    				{% endfor %}
    			</tbody>
    			</table>
			
		</form>
		
	{{ paginations(path('Ajax.liste.ordonance'),infoPagination.nombreDePage, infoPagination.page, infoPagination.post, 'modal-body') }}
	</div>

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