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

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

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