{% block body %}
	<div id="refreshFrs">
		<table class="table table-hover">
			<thead class="thead-dark">
				<tr>
					<th scope="col" width="10%">{{ 'Code' | trad }}</th>
					<th scope="col" width="">{{ 'Raison sociale' | trad }}</th>
					<th scope="col" width="10%">{{ 'SIRET' | trad }}</th>
					<th scope="col" width="75px">
					{% if campaign.STATUT == 'P' and droits.HA_CEVALCM %}
						<a class="ajouter_blanc_v2  white-tooltip" href="{{ path('Evaluation.Campaign.supplierList', {id:id}) }}" 
                            style="float: right; background-position: 50% 5px !important;height: 21px!important">
							<span class="infos_tooltip left" style="font-weight: normal;">
								{{ 'Ajouter des fournisseurs' | trad }}
							</span>
						</a>
						<a class="download_blanc_v2  white-tooltip" href="{{ path('Evaluation.Campaign.supplierImportIndex', {id:id}) }}" 
                            style="float: right;background-position: 50% 5px !important;">
							<span class="infos_tooltip left" style="font-weight: normal;">
								{{ 'Importer des fournisseurs' | trad }}
							</span>
						</a>
					{% endif %}
					</th>
					{% if campaign.STATUT == 'E' and droits.HA_CEVALCM %}
						<th scope="col" width="200px">{{ 'Action' | trad }}</th>
					{% endif %}
				</tr>
			
			</thead>
			<tbody>
				{% for supplier in supplierList %}
					<tr id="fou{{ supplier.CODE_FOU }}">
						<td class="loupe">{{ supplier.CODE_FOU }}</td>
						<td>{{ supplier.RS }}</td>
						<td>{{ supplier.NO_SIRET }}</td>
						<td>
							{% if droits.HA_CEVALCM and campaign.STATUT == 'P' %}
                                {{ menuContextuel('fou' ~ supplier.CODE_FOU, false, supplier.menuContextuel, 6) }}
							{% endif %}
						</td>
						
						{% if campaign.STATUT == 'E' and droits.HA_CEVALCM %}
							<td scope="col" width="75px">
								{% if supplier.REPONSEENCOURS != '' %}
									<a href="{{path('Evaluation.Evaluation.saisieDeReponse',{'idCamp' : id, 'idFrs' : supplier.CODE_FOU })}}" type="submit" class="button principal button_right" >{{ 'Saisie des réponses' | trad}}</a>
								{% endif %}
							</td>
						{% endif %}
					</tr>
					<tr id="fou{{ supplier.CODE_FOU }}detail" class="detail_ligne hide_detail">
						<td colspan="10">
							<div class="colonne2">
								<h4>{{ 'Adresse' | trad }}</h4>

								<div class="informations">
									<p>{{ supplier.ADR }}</p>
									<p>{{ supplier.CPOSTAL }}</p>
									<p>{{ supplier.VILLE1 }}</p>
									<p>{{ supplier.LIB_PAYS }}</p>
								</div>

							</div>
							<div class="colonne2 last">
								<h4>{{ 'Contact' | trad }}
								</h4>
								<div class="informations">
									<p>
										<span class="champs_label">{{ 'E-mail' | trad }}</span>
										<span class="resultat">
											<a href='mailto:{{ supplier.EMAILCONT }}'>{{ supplier.EMAILCONT}}</a>
										</span>
									</p>
									<p>
										<span class="champs_label">{{ 'Tél' | trad }}</span>
										<span class="resultat">{{ supplier.TEL_CTCT }}</span>
									</p>
									<p>
										<span class="champs_label">{{ 'Fax' | trad }}</span>
										<span class="resultat">{{ supplier.FAX_CTCT }}</span>
									</p>
									<p>
										<span class="champs_label">{{ 'Tél. portable' | trad }}</span>
										<span class="resultat">{{ supplier.POR_CTCT }}</span>
									</p>
								</div>

							</div>
						</td>
						
					</tr>
				{% endfor %}
			</tbody>
		</table>
	</div>
{% endblock %}
