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

{% block body %}

<div >
	<center>
    	<div id="genetableau">
    		<form method="POST" id='formListe'>
    			<input type="hidden" name="divCode" value="{{ post.divCode }}" />
    			<input type="hidden" name="divLibelle" value="{{ post.divLibelle }}" />
    			<input type="hidden" name="SOCIETE" value="{{ post.SOCIETE }}" />
    			<table class="table" id="tableau">
    				<thead class="thead-dark">
        				<tr>
        					<th>{{ triTable('SCA_CODE_SOUS_CPTE_ANALYSE',  infoPagination.filter.tri_SCA_CODE_SOUS_CPTE_ANALYSE, 'Code' | trad, 'genetableau', path('Specifique118.TableauReporting.listePrestation'), 'formListe') }}</th>
        					<th>{{ triTable('SCA_DESIGNATION',  infoPagination.filter.tri_SCA_DESIGNATION, 'Libellé' | trad,'genetableau', path('Specifique118.TableauReporting.listePrestation'), 'formListe') }}</th>
        				</tr>
        			</thead>
        			<tbody>
        				<tr>
        					<th>{{ filterTable('SCA_CODE_SOUS_CPTE_ANALYSE', infoPagination.filter.filter_SCA_CODE_SOUS_CPTE_ANALYSE, '','genetableau', path('Specifique118.TableauReporting.listePrestation'), 'formListe') }}</th>
        					<th>{{ filterTable('SCA_DESIGNATION', infoPagination.filter.filter_SCA_DESIGNATION, '','genetableau', path('Specifique118.TableauReporting.listePrestation'), 'formListe') }}</th>
        				</tr>
        				{% for ligne in listePresta %}
        				<tr onclick='changeCodeLibelle("{{ post.divCode }}","{{ ligne.SCA_CODE_SOUS_CPTE_ANALYSE | convert_encoding('UTF-8', 'ISO-8859-1')  }}", "{{ post.divLibelle }}", "{{ ligne.SCA_DESIGNATION~' ('~ligne.SCA_CODE_SOUS_CPTE_ANALYSE~')' | convert_encoding('UTF-8', 'ISO-8859-1')}}");desactivePopup ()'>
        					<td>{{ ligne.SCA_CODE_SOUS_CPTE_ANALYSE | convert_encoding('UTF-8', 'ISO-8859-1')  }}</td>
        					<td>{{ ligne.SCA_DESIGNATION | convert_encoding('UTF-8', 'ISO-8859-1') }}</td>
        				</tr>
        				{% endfor %}
        			</tbody>
    			</table>
    	        {{ paginations(path('Specifique118.TableauReporting.listePrestation'), infoPagination.nombreDePage, infoPagination.page, infoPagination.post, 'modal-body') }}	
    		</form>
    	</div>
	</center>
</div>

{% endblock %}