{# TODO : every template should close every tag it open
	use block and close the 3 div
#}
<div class="contenu clearfix"  id="campaign">
	<h1>
		{{ title }}
	</h1>
	
	{{ ariane() }}

	<h2 id="divMenu" style="position:relative;">
		{{ campaign.LIBELLE }} {{ 'créée le' | trad }} {{ campaign.DTECREAT | dateTrad }}  {{ 'par' | trad }} {{ campaign.CREATOR }} 
        {{ menuContextuel('campaign', false, campaign.menuContextuel, 7) }}
	</h2>
	<div class="tab-content">
		<div class="padding15">
			<details open class="block_edition clearfix" id="divEntete">
				<summary class="titre_block">
					{{ 'Détails campagne' | trad ~ ' ' ~ id }}
				</summary>
				<div class="clearfix">
					<div class="colonne2">
						<div class="informations">
							<p>
								<span class="champs_label">{{ 'Description' | trad }}</span>
								<span class="resultat">{{ campaign.DESCRIPT }}</span>
							</p>
							<p>
								<span class="champs_label">{{ 'Statut' | trad }}</span>
								<span class="resultat">
                                    {{ {
                                        '': 'Tous' | trad,
                                        'E': 'En cours' | trad,
                                        'P': 'En préparation' | trad,
                                        'T': 'Terminée' | trad,
                                    }[campaign.STATUT] }}
                                </span>
							</p>
						</div>
					</div>
					<div class="colonne2 last">
						<div class="informations">
							<p {% if campaign.DTEVALID == '00000000' %}style="display: none;"{% endif %}>
								<span class="champs_label">{{ 'Date de validation' | trad }}</span>
								<span class="resultat">{{ campaign.DTEVALID | dateTrad }}</span>
							</p>
							<p {% if campaign.DTEFIN == '00000000' %}style="display: none;"{% endif %}>
								<span class="champs_label">{{ 'Date de clôture' | trad }}</span>
								<span class="resultat">{{ campaign.DTEFIN | dateTrad }}
								</span>
							</p>
						</div>
					</div>
				</div>
			</details>
			{{ arianeSub() }}

<style>
	summary::after {
		margin: -15px 0 0;
		width: 0;
		float: right;
		transform: rotate(90deg);
		content: "\203A";
		font-size: 30px;
	}
	details[open] summary::after {
		margin: -5px 5px 0 0;
		transform: rotate(-90deg);
		content: "\203A";
	}
</style>
