{% block body %}
	<div class="contenu clearfix" id="groupes">
		<h1>
			{% if droits.HA_MQUESCM %}
				{{ Button('Nouveau groupe' | trad, true, path('Evaluation.GroupOfRaters.creatEdit', {mode: mode, id: id}), '', '', '', '', '', '') }}
			{% endif %}
		</h1>
		<div class="tab-content" id="divRefresh">
			<form method="post" name="filtre_groupes" id="filtre_groupes">
				<div class="resultat_filtre">
					{{ bullFiltre(post, 'filtre_groupes') }}
				</div>
				<table class="table table-hover">
					<thead class="thead-dark">
						<tr>
							<th scope="col" width="">{{ sortTable({
                                    'key' : 'GROUPE',
                                    'value' : post.tri_GROUPE,
                                    'title' : 'Libellé' | trad,
                                    'formName' : 'filtre_groupes'
                                    })  }}</th>
							<th scope="col" width="7%">{{ 'Actions' | trad }}</th>
						</tr>
					</thead>
					<tbody>
						<tr class="recherche">
							<td>{{ filterTable('GROUPE', post.filter_GROUPE, '', '', '','filtre_groupes', '','Libellé' | trad,'',true) }}</td>
							<td></td>
						</tr>
					</tbody>
					{% for group in groupsOfRaters %}
						<tr id="group{{ loop.index }}">
							<td>{{ group.GROUPE }}</td>
							<td class="parametrage">
								{% if droits.HA_MQUESCM %}
									{{ hover_action(
										'group'~ loop.index, 
										'Supprimer_v2' , 
										"popupConfirmation(
											'" ~ path('Ajax.Erreur.popupConfirmationSuppresion') ~ "', 
											'', 
											'" ~ path('Evaluation.GroupOfRaters.delete', {mode: mode, id: id, group: group.GROUPE}) ~ "',
											'" ~ group.deleteMessage|e('js')|raw ~ "', 
											'groupes', 
											'', 
											'', 
											'', 
											'', 
											'', 
											'', 
											'', 
											'', 
											'', 
											'" ~ ('Confirmation suppression' | trad|e('js')|raw) ~ "', 
										)",
										'float: right;margin-right:30px;') }}
								{% endif %}
							</td>
						</tr>
					{% endfor %}
				</thead>
			</table>
			{{ paginations(path('Evaluation.GroupOfRaters.index', {mode: mode, id: id}),infoPagination.nombreDePage, infoPagination.page, infoPagination.post, 'groupes') }}
		</form>
	</div>
</div>{% endblock %}
