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

{% block body %}
<div id="genetableau">
	<center>
	<div>
		<form method="POST" id='formListeGamme'>
			
			<input type="hidden" name="divCode" value="{{ post.divCode }}" />
			<input type="hidden" name="divLibelle" value="{{ post.divLibelle }}" />
			<input type="hidden" name="filter_CODEFABR" value="{{ post.filter_CODEFABR }}" />
			
			
    			<table class="table" id="tableau">
    				<thead class="thead-dark">
        				<tr>
        					<th>{{ triTable('CODEGAMME',  infoPagination.filter.tri_CODEGAMME, 'Code' | trad, 'genetableau', path('Ajax.liste.gamme', {code: code}), 'formListeGamme') }}</th>
        					<th>{{ triTable('DESIGN',  infoPagination.filter.tri_DESIGN, 'Libellé' | trad,'genetableau', path('Ajax.liste.gamme', {code: code}), 'formListeGamme') }}</th>
        				</tr>
        			</thead>
        			<tbody>
        				<tr>
        					<th>{{ filterTable('CODEGAMME', infoPagination.filter.filter_CODEGAMME, '','genetableau', path('Ajax.liste.gamme', {code: code}), 'formListeGamme') }}</th>
        					<th>{{ filterTable('DESIGN', infoPagination.filter.filter_DESIGN, '','genetableau', path('Ajax.liste.gamme', {code: code}), 'formListeGamme') }}</th>
        				</tr>
        				{% for Gamme in ListeGamme %}
        				
        				<tr onclick='changeCodeLibelle("{{ post.divCode }}","{{ Gamme.CODEGAMME | convert_encoding('UTF-8', 'ISO-8859-1')  }}", "{{ post.divLibelle }}", "{{ Gamme.DESIGN~' ('~Gamme.CODEGAMME~')'  | convert_encoding('UTF-8', 'ISO-8859-1')}}");desactivePopup ()'>
        					<td>{{ Gamme.CODEGAMME | convert_encoding('UTF-8', 'ISO-8859-1')  }}</td>
        					<td>{{ Gamme.DESIGN   | convert_encoding('UTF-8', 'ISO-8859-1') }}</td>
        
        				</tr>
        				{% endfor %}
        			</tbody>
    			</table>
			
		</form>
		
	{{ paginations(path('Ajax.liste.gamme', {code: code}),infoPagination.nombreDePage, infoPagination.page, infoPagination.post, 'modal-body') }}
	</div>

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