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

{% block body %}
<div id="genetableau">
	<center>
	<div>
		<form method="POST" id='formListefabricant'>
			
			<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',  infoPagination.filter.tri_CODE, 'Code' | trad, 'genetableau', path('Ajax.liste.fabricant'), 'formListefabricant') }}</th>
        					<th>{{ triTable('RS',  infoPagination.filter.tri_RS, 'RS' | trad,'genetableau', path('Ajax.liste.fabricant'), 'formListefabricant') }}</th>
        				</tr>
        			</thead>
        			<tbody>
        				<tr>
        					<th>{{ filterTable('CODE', infoPagination.filter.filter_CODE, '','genetableau', path('Ajax.liste.fabricant'), 'formListefabricant') }}</th>
        					<th>{{ filterTable('RS', infoPagination.filter.filter_RS, '','genetableau', path('Ajax.liste.fabricant'), 'formListefabricant') }}</th>
        				</tr>
        				{% for fabricant in ListeFabricant %}
        				
        				<tr onclick='changeCodeLibelle("{{ post.divCode }}","{{ fabricant.CODE | convert_encoding('UTF-8', 'ISO-8859-1')  }}", "{{ post.divLibelle }}", "{{ fabricant.RS~' ('~fabricant.CODE~')'  | convert_encoding('UTF-8', 'ISO-8859-1')}}");desactivePopup ()'>
        					<td>{{ fabricant.CODE | convert_encoding('UTF-8', 'ISO-8859-1')  }}</td>
        					<td>{{ fabricant.RS   | convert_encoding('UTF-8', 'ISO-8859-1') }}</td>
        
        				</tr>
        				{% endfor %}
        			</tbody>
    			</table>
			
		</form>
		
	{{ paginations(path('Ajax.liste.fabricant'),infoPagination.nombreDePage, infoPagination.page, infoPagination.post, 'modal-body') }}
	</div>

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