<tr id="contactLiv{{ligne.CTC_IND}}" >
	<td class="loupe">
		{% set click_action = 
			attrJs('changeCodeLibelle', [divCode, ligne.CTC_IND]) ~';' 
			~ attrJs('fermerOnglet', [ idTrigger, idClose, iDivReset])
		%}

		{% set dataAttr = '	data-updateForm="contact"
							data-nom="'~ ligne.CTC_NOM ~'"
							data-fonction="'~ ligne.CTC_FCT ~'"
							data-tel="'~ ligne.CTC_TEL ~'"
							data-fax="'~ ligne.CTC_FAX ~'"
							data-port="'~ ligne.CTC_GSM ~'"
							data-mail="'~ ligne.CTC_MAIL ~'"' 
		%}


		<input type="hidden" name="divCode" value="{{ divCode }}" />
		<input type="hidden" name="idTrigger" value="{{ idTrigger }}" />
		<input type="hidden" name="idClose" value="{{ idClose }}" />
		<input type="hidden" name="iDivReset" value="{{ iDivReset }}" />
		{{ ligne.CTC_NOM }}
	</td>
	<td onclick="{{ click_action | raw }}" {{ dataAttr | raw }} style="cursor: pointer;">                    
		{{ ligne.CTC_FCT }}
	</td>
	<td onclick="{{ click_action | raw }}" {{ dataAttr | raw }} style="cursor: pointer;">
		{{ ligne.CTC_TEL }}
	</td>
	<td onclick="{{ click_action | raw }}" {{ dataAttr | raw }} style="cursor: pointer;">
		{{ ligne.CTC_FAX }}
	</td>
	<td onclick="{{ click_action | raw }}" {{ dataAttr | raw }} style="cursor: pointer;">
		{{ ligne.CTC_GSM }}
	</td>
	<td onclick="{{ click_action | raw }}" {{ dataAttr | raw }} style="cursor: pointer;">
		{{ ligne.CTC_MAIL }}
	</td>
	{% if module == 'CDE' %}
	<td>
		{% if ligne.CTC_RCA | boolSql == false   %}
		<span class="alert_ecart white-tooltip">
			<span class="infos_tooltip top-left">
				{{ 'Attention, ce contact n\'est pas receptionnaire de bon de commande.' | trad }}
			</span> 
		</span>
		{% endif %}
	</td>
	{% endif %}
	<td class="parametrage">
		{% if droit.HA_CCTR_CM %}
			{{ hover_action(
				'contactLiv'~ligne.CTC_IND, 
				'modifier_v2',
				"ajoutLigneContactLiv(\'"~ligne.CTC_IND~"\');",
			)  }}
			{% if ligne.COD_ADR != 'ADR_FOU' and ligne.COD_ADR != 'REG' %}
				{{ hover_action(
					'contactLiv'~ligne.CTC_IND, 
					'Supprimer_v2' , 
					"suppressionContact(\'LIV\',\'"~ligne.CTC_IND~"\')") 
				}}
			{% endif %}
		{% endif %}
	</td>
</tr>
<tr id="contactLiv{{ ligne.CTC_IND }}detail" class="detail_ligne hide_detail">	
	<td colspan="12">
		<div class="colonne2">
			<div class="informations">           
				<p>
					<span class="champs_label">{{ 'Réception Bon de Commande ?' | trad }}</span>
					<span class="resultat">{{ ligne.CTC_RCA | boolTrad }}</span>
				</p>                              
				<p>
					<span class="champs_label">{{ 'Destinataire des AR de DA ?' | trad }}</span>
					<span class="resultat">{{ ligne.CTC_DARDA | boolTrad }}</span>
				</p>

				{% if ligne.CTC_REN | boolSql %}
				<p>
					<span class="champs_label">{{ 'Maquette Etat Navette' | trad }}</span>
					<span class="resultat">{{ ligne.CTC_CMQ }}</span>
				</p>
				<p>
					<span class="champs_label">{{ 'Mardi' | trad }}</span>
					<span class="resultat">{{  ligne.PERETNV|slice(1, 1) | boolTrad }}</span>
				</p>
				<p>
					<span class="champs_label">{{ 'Jeudi' | trad }}</span>
					<span class="resultat">{{  ligne.PERETNV|slice(3, 1) | boolTrad }}</span>
				</p>
				<p>
					<span class="champs_label">{{ 'Samedi' | trad }}</span>
					<span class="resultat">{{  ligne.PERETNV|slice(5, 1) | boolTrad }}</span>
				</p>
				{% endif %}				
			</div>
		</div>
		<div class="colonne2 last">
			<div class="informations">
				<p>
					<span class="champs_label">{{ 'Réception Offre de Prix ?' | trad }}</span>
					<span class="resultat">{{ ligne.CTC_ROP | boolTrad }}</span>
				</p>
				<p>
					<span class="champs_label">{{ 'Réception Etat navette ?' | trad }}</span>
					<span class="resultat">{{ ligne.CTC_REN | boolTrad }}</span>
				</p> 
				{% if ligne.CTC_REN | boolSql %}
				<p>
					<span class="champs_label">{{ 'Lundi' | trad }}</span>
					<span class="resultat">{{  ligne.PERETNV|slice(0, 1) | boolTrad }}</span>
				</p>
				<p>
					<span class="champs_label">{{ 'Mercredi' | trad }}</span>
					<span class="resultat">{{  ligne.PERETNV|slice(2, 1) | boolTrad }}</span>
				</p>
				<p>
					<span class="champs_label">{{ 'Vendredi' | trad }}</span>
					<span class="resultat">{{  ligne.PERETNV|slice(4, 1) | boolTrad }}</span>
				</p>
				<p>
					<span class="champs_label">{{ 'Dimanche' | trad }}</span>
					<span class="resultat">{{  ligne.PERETNV|slice(6, 1) | boolTrad }}</span>
				</p>
				{% endif %}                  
			</div>
		</div>		
	</td>
</tr>
	
