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

{% block body %}
	<center>
	<div id="genetableau">
		<div>
		<form method="POST" id='formulaireListeclause' name='formulaireListeclause'>
			<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_CLA',  infoPagination.filter.tri_CODE_CLA, 'Code' | trad, 'genetableau', path, 'formulaireListeclause') }}</th>
        					<th>{{ triTable('CONTMEMO',  infoPagination.filter.tri_CONTMEMO, 'Libellé' | trad, 'genetableau', path, 'formulaireListeclause') }}</th>
        				</tr>
        			</thead>
        			<tbody>
        				<tr>
        					<th>{{ filterTable('CODE_CLA', infoPagination.filter.filter_CODE_CLA, '', 'genetableau', path, 'formulaireListeclause') }}</th>
        					<th>{{ filterTable('CONTMEMO', infoPagination.filter.filter_CONTMEMO, '', 'genetableau', path, 'formulaireListeclause') }}</th>
        				</tr>
        				{% for clause in entity %}
        				
        				<tr onclick='changeCodeLibelle("{{ post.divCode }}","{{ clause.CODE_CTR }}", "{{ post.divLibelle }}", "{{ clause.CONTMEMO |e('js')|raw }}");desactivePopup ()'>
        					<td id ="{{clause.CODE_CLA}}">{{ clause.CODE_CLA }}</td>
        					<td>{{ clause.CONTMEMO | nl2br  }}
        				
        					</td>
        
        				</tr>
        				{% endfor %}
        			</tbody>
    			</table>
			
		</form>
		
	{{ paginations(path,infoPagination.nombreDePage, infoPagination.page, infoPagination.post, 'genetableau') }}
	</div>
	</div>

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