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

{% block body %}
<div id="genetableau">
	<center>
	<div>
		<form method="POST" id='formulaireListeAcheteurPopup'>
			<input type="hidden" name="divCode" value="{{ post.divCode }}" />
			<input type="hidden" name="divLibelle" value="{{ post.divLibelle }}" />
			<input type="hidden" name="codeMarche" value="{{ post.codeMarche }}" />
			<input type="hidden" name="codeUser" value="{{ post.codeUser }}" />
			
			<table class="table" id="tableau">
				<thead class="thead-dark">
    				<tr>
    					<th>{{ triTable('CODE',  infoPagination.filter.tri_CODE, 'Code Acheteur' | trad, 'genetableau', path('Ajax.liste.multiSocieteUtilisateurAutorise'), 'formulaireListeAcheteurPopup') }}</th>
    					<th>{{ triTable('NOM',  infoPagination.filter.tri_NOM, 'Nom Acheteur' | trad,'genetableau', path('Ajax.liste.multiSocieteUtilisateurAutorise'), 'formulaireListeAcheteurPopup') }}</th>
    				</tr>
    			</thead>
    			<tbody>
    				<tr>
    					<th>{{ filterTable('CODE', infoPagination.filter.filter_CODE, '', 'genetableau', path('Ajax.liste.multiSocieteUtilisateurAutorise'), 'formulaireListeAcheteurPopup') }}</th>
    					<th>{{ filterTable('NOM', infoPagination.filter.filter_NOM, '', 'genetableau', path('Ajax.liste.multiSocieteUtilisateurAutorise'), 'formulaireListeAcheteurPopup') }}</th>
    				</tr>
    				{% for multi in multiSocs %}
    				
    				<tr onclick='changeCodeLibelle("{{ post.divCode }}","{{ multi.CODE | convert_encoding('UTF-8', 'ISO-8859-1')  }}", "{{ post.divLibelle }}", "{{ multi.NOM~' ('~multi.CODE~')' | convert_encoding('UTF-8', 'ISO-8859-1') }}");desactivePopup ()'>
    					<td>{{ multi.CODE | convert_encoding('UTF-8', 'ISO-8859-1')  }}</td>
    					<td>{{ multi.NOM | convert_encoding('UTF-8', 'ISO-8859-1') }}</td>
    				</tr>
    				{% endfor %}
    			</tbody>
			</table>
			
		</form>
		
	{{ paginations(path('Ajax.liste.multiSocieteUtilisateurAutorise'),infoPagination.nombreDePage, infoPagination.page, infoPagination.post, 'modal-body') }}
	</div>

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