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

{% block body %}
<div id="genetableau">>
	<center>
	
	<div
		<form method="POST" id='formSi'>
		
			<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('TACFOTAC',  infoPagination.filter.tri_TACFOTAC, 'Code' | trad,'genetableau', path('Ajax.liste.typeAchatWithout'), 'formSi') }}</th>
        					<th>{{ triTable('LIB_TAC',  infoPagination.filter.tri_LIB_TAC, 'Libellé' | trad,'genetableau', path('Ajax.liste.typeAchatWithout'), 'formSi') }}</th>
    				</tr>
    			</thead>
    			<tbody>
    				<tr>
        					<th>{{ filterTable('TACFOTAC', infoPagination.filter.filter_TACFOTAC, '','genetableau', path('Ajax.liste.typeAchatWithout'), 'formSi') }}</th>
        					<th>{{ filterTable('LIB_TAC', infoPagination.filter.filter_LIB_TAC, '','genetableau', path('Ajax.liste.typeAchatWithout'), 'formSi') }}</th>
        		    </tr>
    				{% for si in typeAchatWithout %}
    				
    				<tr onclick="{{ attrJs('changeCodeLibelle', [ post.divCode, si.TACFOTAC, post.divLibelle, si.LIB_TAC ~ ' (' ~ si.TACFOTAC ~ ')']) }};desactivePopup()">
    					<td id ="{{accadre.TACFOTAC}}">{{ si.TACFOTAC}}</td>
    					<td>{{ si.LIB_TAC   | convert_encoding('UTF-8', 'ISO-8859-1') }}</td>
    
    				</tr>
    				{% endfor %}
    			</tbody>
    			</table>
			
		</form>
		
	{{ paginations(path('Ajax.liste.typeAchatWithout'),infoPagination.nombreDePage, infoPagination.page, infoPagination.post, 'modal-body') }}
	</div>

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