<thead class="thead-dark">
	<tr>
		<th scope="col" width="">{{ 'Type' | trad }}</th>
		<th scope="col" width="">{{ 'Nom' | trad }}</th>
		<th scope="col" width="">{{ 'Société' | trad }}</th>
		<th scope="col" width="">{{ 'Fonction' | trad }}</th>
		<th scope="col" width="">
			{% if droits.HA_MQUESCM and campaign.STATUT == 'P' %}
				<a class="ajouter_blanc_v2 white-tooltip" style="float: right;" onclick="addRaterToSupplier();">
					<span class="infos_tooltip left">
						{{ 'Ajouter évaluateur' | trad }}
					</span>
				</a>
			{% endif %}
		</th>
	</tr>
</thead>
{% if raters | length > 0 %}
	{% for rater in raters %}
		<tbody>
			<tr id="noteur_{{ loop.index }}">
				<td>{{ rater.ORIGIN | boolSql ? 'Externe' | trad : 'Interne' | trad }}</td>
				<td>{{ rater.NOM }}</td>
				<td>{{ rater.CODE_STE }}</td>
				<td>{{ rater.FONCTION }}</td>
				<td>
					{% if droits.HA_MQUESCM and campaign.STATUT == 'P' %}
						{{ hover_action(
                            'noteur_' ~ loop.index, 
                            'Supprimer_v2', 
                            "popupConfirmation(
                                '" ~ path('Ajax.Erreur.popupConfirmationSuppresion') ~ "',
                                '', 
                                '" ~ path('Evaluation.RatersBySupplier.removeRaterFromSupplier',{mode:mode, id: id, supplier: supplier, rater: rater.NOTEUR}) ~ "',
                                '" ~ rater.deleteMessage|e('js')|raw ~ "', 
                                'redirect', 
                                '', 
                                '', 
                                '', 
                                '', 
                                '', 
                                '', 
                                '', 
                                '', 
                                '', 
                                '" ~ ('Suppression évaluateur' | trad |e('js')|raw) ~ "'
                            )", 
                            'float: right;margin-right:5px;'
                        ) }}
					{% endif %}
				</td>
			</tr>
		</tbody>
	{% endfor %}
{% endif %}    
<script>
    function addRaterToSupplier() {
        redirectJSWithPost('{{ path('Evaluation.Rater.ratersListForSupplier', {mode: mode, id: id, supplier: supplier}) }}');
    }
</script>

