{% extends 'templates.html.twig' %}
{% block headcontent %}
<script type="text/javascript">
// image quand erreur
var img_error = '<br /><img src="/navigation/js/jquery-validate/img/error.png" alt="Email incorrect" style="vertical-align:middle;" />';
// image quand OK
var img_ok = ' <img src="/navigation/js/jquery-validate/img/ok.png" alt="Correct" style="vertical-align:middle;" />';
</script>
<section class="tc-header row">
<header class="tc-panel-header-bg-black tc-panel">
<img style="width:100%" src="{{ racine_site }}/images/icones/fleurs-1165x150-cut.png" alt="Image d'entête de l'espace Mon Théâtre">
<div class="tc-desktop-2_3 tc-phone-1_1 tc-tablet-3_5">
<div class="tc-header row">
<header>
<h1 class="tc-pre-large-logo">Inscription</h1>
</header>
</div>
</div>
</header>
</section>
{% include 'includes/navigation.inc.html.twig' %}
{% endblock %}
{% block content %}
<main class="tc-desktop-2_3 tc-phone-1_1">
<section class="tc-panel">
{% if change_mode is not defined or change_mode == false %}
<div class="tc-panel-header">
{% if from_module_titre is not defined or (from_module_titre is defined and not from_module_titre) %}
{% set from_module_titre = '' %}
{% endif %}
{% if inscription_ok is defined and inscription_ok %}
<h2>{{ titre_confirmation|raw }} {{ from_module_titre|raw }}</h2>
{% else %}
<h2 >{{ titre_inscription|raw }} {{ from_module_titre|raw }}</h2>
{% endif %}
{% if from_module_logo is defined and from_module_logo %}
<h2><img src="/images/menu/logo/{{ from_module_logo }}" alt="{{ from_module_nom }}" /></h2>
{% endif %}
</div>
{% endif %}
<div class="tc-panel-body">
{% if inscription_ok is defined and inscription_ok %}
{% if change_mode is not defined or (change_mode is defined and not change_mode) %}
<div class="tc-block">
{% if attente_validation is defined and attente_validation %}
<div class="tc-block-header">
<h4 class="tc-neutral-color">Etape [1/2] : Vous devez maintenant confirmer votre inscription à mon théâtre en consultant vos courriels !</h4>
</div>
<div class="tc-block-body">
<p>Un message vient de vous être envoyé <strong>à l'adresse {{ email_validation }}</strong>.<br />
Il vous suffit de <strong>cliquer sur le lien</strong> qui se trouve dans ce courriel pour valider votre inscription.</p>
</div>
<div class="tc-block-header">
<h4 class="tc-neutral-color">Etape [2/2] : Accès à l'Espace Enseignants en attente de validation</h4>
</div>
<div class="tc-block-body">
<p><span>ATTENTION, votre inscription doit être validée !</span>
L'accès aux fonctionnalités réservées aux enseignants est validé par l'administrateur du site,
pendant les jours ouvrables (du lundi au vendredi, de 9h30 à 16h30).
Vous serez alerté(e) par courriel dès validation.
</p>
</div>
{% else %}
<div class="tc-block-body">
<span>Vous devez maintenant confirmer votre inscription en consultant vos courriels !</span><br /><br />
Un message vient de vous être envoyé <strong>à l'adresse {{ email_validation }}</strong>.<br />
Il vous suffit de <strong>cliquer sur le lien</strong> qui se trouve dans ce courriel pour valider votre inscription.
</div>
{% endif %}
</div>
{% else %}
<div class="tc-block">Les modifications sur votre profil ont bien été enregistrées.
{% if modif_email is defined and modif_email %}
<br /><br /><span style="color: #C30; font-weight: bold; font-size: 14px;">Attention, vous avez modifié votre adresse de courriel.
Un message vient de vous être envoyé à la nouvelle adresse {{ email_validation }}.
Vous devez le consulter et cliquer sur le lien qu'il contient pour valider ce changement d'adresse.</span><br /><br />
{% endif %}
Vous pouvez retourner sur <a href="/montheatre/">votre page</a> mon théâtre.</div>
{% endif %}
{% else %}
{% include 'includes/result.inc.html.twig' %}
{% if from_module_include is defined and from_module_include %}
{% include 'montheatre/inscription_'~from_module~'.inc.html.twig' %}
{% else %}
{% include 'montheatre/inscription_normal.inc.html.twig' %}
{% endif %}
{% endif %}
</div>
</section>
</main>
{% endblock %}