{% if etablissement.texteReferencement.actif == 1 %}
<div class="fiche-module en-quelques-mots">
<h2 id="en-quelques-mots">En quelques mots...</h2>
<div class="ml-4">
{% set texteReferencement = etablissement.texteReferencement.contenu %}
{% if texteReferencement is not empty and texteReferencement | striptags | length > 15 %}
{{ texteReferencement | raw }}
{% elseif textePresentation is not null %}
{{ textePresentation | raw }}
{% else %}
<!-- TEMPLATE::{{ 'fiche/seo/'~template~'.html.twig' }} -->
{% include 'fiche/seo/'~template~'.html.twig' with {
'etablissement': etablissement,
} only %}
{% endif %}
{# ----- Texte référencement -------------------------------- #}
{# Ce bloc de code était dans index.html/ligne 301 #}
{% set texteReferencementActif = etablissement.texteReferencement.actif %}
{% if texteReferencementActif and etablissement.typeClient in ['établissement', 'internat'] %}
<div class="content clearfix">
{# Enrichir la fiche prospect #}
{% if not etablissement.isClient %}
{% include "fiche/_includes/insertion-non-participant.html.twig" %}
{% endif %}
</div>
{% endif %}
</div>
</div>
{% endif %}
{% include 'fiche/_includes/videos.html.twig'%}
{% if presentation %}
<div class="fiche-module presentation">
<h2 id="presentation">Présentation</h2>
<ul class="list-unstyled card-two-columns-old">
{% for ItemsInsertion in presentation | filter( ItemsInsertion=> (
'COLL-LANG' not in ItemsInsertion.pere and
'COLL-SPEC-ANC_MT' not in ItemsInsertion.pere and
'COLL-SPEC-REG_MT' not in ItemsInsertion.pere and
'LYCPRO-PRESLIBRE_IS' not in ItemsInsertion.pere )
) %}
<li>
{{ ItemsInsertion | itemLibelle | raw }}
{{ ItemsInsertion.texte | raw }}
</li>
{% endfor %}
</ul>
{% if moduleAccueil %}
{% set textePresentation = donneeComplementaire(dc,'presentation', 'texte') %}
{% if textePresentation != "" %}
<p class="presentation-texte-complementaire">{{textePresentation | raw}}</p>
{% endif %}
{% endif %}
</div>
{% endif %}
{% include 'fiche/_includes/diaporamas.html.twig'%}
{% if langues %}
<div class="fiche-module langues">
<h2 id="langues">Langues</h2>
{# Nouvelle version : on reprend les libellés depuis la bdd #}
<ul class="langues">
{% set i = 0 %}
{% set langues2 = langues %}
{% for ii in langues | filter( ii => ii.niveau == 3 ) %}
<li>
<span class="langii {{ii.identifiant}}">{{ ii | itemLibelle | raw }}
{{ ii.texte | raw }}</span>
{% set i2 = 0 %}
{% for ii2 in langues2 %}
{% if ii2.niveau == 4 and ii2.pere == ii.identifiant %}
{% set i2 = i2 + 1 %}
{% if i2 == 1 %}:
{% endif %}
<span class='langii2'>{{ ii2 | itemLibelle | raw }}{{ ii2.texte | raw }}</span>
{% endif %}
{% endfor %}
</li>
{% if i2 > 0 %}
<style>
.{{ii.identifiant}}{
font-weight: bold;
}
</style>
{% endif %}
{% endfor %}
</ul>
</div>
{% endif %}
{% if etablissement.video %}
<div class="fiche-module video">
<h2 id="video">Vidéo de présentation</h2>
<iframe src="{{etablissement.video}}?rel=0" height="280" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>{% endif %}{% if formations %}
<div class="fiche-module formations">
<h2 id="bloc-formations">Formations</h2>
{% for ItemsInsertion in formations | filter ( ItemsInsertion => (
'Autre, précisez' in ItemsInsertion.libelle
and '-FORMA-TXTS' in ItemsInsertion.identifiant )
) %}
{% if ItemsInsertion.texte is not empty %}
{{ ItemsInsertion.texte | raw }}
{% endif %}
{% endfor %}
{% for ItemsInsertion in formations %}
{% if loop.first %}
{% set previous_formation = ItemsInsertion %}
{% else %}
{% set previous_formation = formations[loop.index0 - 1] %}
{% endif %}
{% if loop.last %}
{% set next_formation = ItemsInsertion %}
{% else %}
{% set next_formation = formations[loop.index0 + 1] %}
{% endif %}
{%if loop.length == 1 %}
{% set previous_formation = ItemsInsertion %}
{% set next_formation = ItemsInsertion %}
{% endif %}
{% set niveauxFormation = ["-CAP-", "-BACP-", "-BAC2-", "-PREPA-", "-BAC3-", "-BAC45-", "-ING-", "-FPC-", "-BACTECH-", "-DIPCOMP-"] %}
{% for niveauFormation in niveauxFormation %}
{% if niveauFormation in ItemsInsertion.identifiant %}
{% if previous_formation == ItemsInsertion or niveauFormation not in previous_formation.identifiant %}
<div class="niveau-formation">
{% set title = ''%}
{% if niveauFormation == '-CAP-'%}
{% set title = 'Niveau CAP' %}
{% elseif niveauFormation == '-BACP-'%}
{% set title = 'Niveau BAC Pro' %}
{% elseif niveauFormation == '-BAC2-'%}
{% set title = 'Niveau Bac+2' %}
{% elseif niveauFormation == '-PREPA-'%}
{% set title = 'Classes Prépas' %}
{% elseif niveauFormation == '-BAC3-'%}
{% set title = 'Niveau Bac+3' %}
{% elseif niveauFormation == '-BAC45-'%}
{% set title = 'Niveau Bac+4/5' %}
{% elseif niveauFormation == '-ING-'%}
{% set title = 'Diplômes d\'ingénieurs' %}
{% elseif niveauFormation == '-FPC-'%}
{% set title = 'Formation Professionnelle Continue' %}
{% elseif niveauFormation == '-BACTECH-'%}
{% set title = 'Bac Techno (Agricole)' %}
{% elseif niveauFormation == '-DIPCOMP-'%}
{% set title = 'Diplômes complémentaires' %}
{% endif %}
<h3>{{title}}</h3>
<!-- Afficher des compléments AVANT -->
{% if (
ItemsInsertion.niveau == 3 and
'Texte avant liste des diplômes' in ItemsInsertion.libelle and
'LYC-BACTEC' not in ItemsInsertion.identifiant
)
%}
<p class="texte-complementaire txt-avant-diplomes">{{ ItemsInsertion.texte | raw }}</p>
{% endif %}
<ul class="list-unstyled card-two-columns-old l-174">
{% endif %}
{% endif %}
{% endfor %}
{% if
'-LANG' not in ItemsInsertion.pere and
'-ANC_MT' not in ItemsInsertion.pere and
'-FORMA2021-' not in ItemsInsertion.pere and
'-SPEC-REG_MT' not in ItemsInsertion.pere and
'-LANG-REG_MT' not in ItemsInsertion.pere and
'LYC-BACTEC-' not in ItemsInsertion.identifiant
%}
{% if ItemsInsertion.niveau == 4 %}
<li class="l-188">
<strong id="{{ ItemsInsertion.id }}">
{{ ItemsInsertion | itemLibelle | raw }}
{% if ItemsInsertion.options is not empty %} - {{ ItemsInsertion | itemOptions }} {% endif %}
{% if ItemsInsertion.texte is not empty %} {{ ItemsInsertion.texte | raw }} {% endif %}
</strong>
{% set complementTexte = donneeComplementaire(dc, ItemsInsertion.identifiant, 'texte') %}
{# {% if complementTexte %}
<p class="texte">{{ complementTexte | raw }}</p>
{% endif %} #}
{% set complementUrlLibelle = donneeComplementaire(dc, ItemsInsertion.identifiant, 'urlLibelle') %}
{% set complementUrl = donneeComplementaire(dc, ItemsInsertion.identifiant, 'url') %}
{% if complementTexte or complementUrlLibelle or complementUrl %}
<p class="texte-complementaire formation-niv-4">{{ complementTexte | raw }}</p>
{% if complementUrl %}
{% if complementUrlLibelle == "" %}
{% set complementUrlLibelle = "En savoir plus" %}
{% endif %}
<a class="texte-complementaire-url" href='{{ complementUrl }}' target="_blank" data-trace-action="{{ constant('App\\Entity\\Trace::TEXTE_COMPLEMENTAIRE') | e('html_attr') }}" data-trace-etab="{{ etablissement.id | e('html_attr') }}">
{{ complementUrlLibelle | raw }}
</a>
{% endif %}
{% endif %}
</li>
{% endif %}
{% endif %}
{% for niveauFormation in niveauxFormation %}
{% if niveauFormation in ItemsInsertion.identifiant %}
{% if next_formation == ItemsInsertion or niveauFormation not in next_formation.identifiant %}
</ul>
<!-- Afficher des compléments -->
{% if (
ItemsInsertion.niveau == 3 and
'Texte après liste des diplômes' in ItemsInsertion.libelle and
'LYC-BACTEC' not in ItemsInsertion.identifiant
)
%}
<p class="texte-complementaire txt-apres-diplomes">{{ ItemsInsertion.texte | raw }}</p>
{% endif %}
</div>
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{# ------ Bloc "Bac 2021" ------------------------------- #}
<ul class="bloc_2021">
{% set i = 0 %}
{% for ItemsInsertion in formations %}
{% if ItemsInsertion.pere == 'LYC-FORMA2021' or ItemsInsertion.pere == 'LYC-FORMA2021-SPEC' or ItemsInsertion.pere == 'LYC-FORMA2021-GFACU' %}
{% if i == 0 %}<li><strong id="{{ ItemsInsertion.id }}">Bac Général : </strong> <ul class="list-unstyled card-two-columns-old">{%endif%}
<li class="{{ ItemsInsertion.identifiant in ['LYC-FORMA2021-SPEC', 'LYC-FORMA2021-GFACU'] ? 'title' : 'sub-title'}}">{{ ItemsInsertion | itemLibelle | replace({'<br />': '', '<br/>': '', '<b>': ''}) | raw }}
{% if ItemsInsertion.texte %}
{{ ItemsInsertion.texte | raw }}
{% endif %}
</li>
{% set i = i +1 %}
{% endif %}
{% endfor %}
{% if i != 0 %}</ul>{%endif%}
{% if i != 0 %}</li>{%endif%}
</ul>
{# ------ Bloc "Bac Général" ------------------------------- #}
<ul class="general">
{% set i = 0 %}
{% for ItemsInsertion in formations %}
{% if ItemsInsertion.pere == 'LYC-FORMA' %}
{% if i == 0 %}<li><strong id="{{ ItemsInsertion.id }}">Bac Général : </strong>{%endif%}
{{ ItemsInsertion | itemLibelle }} {{ ItemsInsertion.texte | raw }}
{% set i = i +1 %}
{% endif %}
{% endfor %}
{% if i != 0 %}</li>{%endif%}
</ul>
{# ------ Bloc "Bacs Technologiquesl" ------------------------------- #}
<!-- Afficher des compléments AVANT -->
{% for ItemsInsertion in formations | filter ( ItemsInsertion =>
ItemsInsertion.niveau == 3 and
'Texte avant liste des diplômes' in ItemsInsertion.libelle and
'LYC-BACTEC' in ItemsInsertion.identifiant
)
%}
<p class="texte-complementaire txt-avant-diplomes">{{ ItemsInsertion.texte | raw }}</p>
{% endfor %}
<ul class="technologique">
{% set i = 0 %}
{% for ItemsInsertion in formations | filter ( ItemsInsertion =>
'Texte avant liste des diplômes' not in ItemsInsertion.libelle and
'Texte après liste des diplômes' not in ItemsInsertion.libelle
)
%}
{% if 'LYC-BACTEC' in ItemsInsertion.pere %}
{% if i == 0 %}<li><strong id="{{ ItemsInsertion.id }}">Bacs Technologiques : </strong> <ul class="list-unstyled card-two-columns-old">{%endif%}
<li class="{{ ItemsInsertion.identifiant == 'LYC-BACTEC-TFACU' or ItemsInsertion.pere != 'LYC-BACTEC-TFACU' ? 'title' : 'sub-title'}} li-290">
{{ ItemsInsertion | itemLibelle | replace({'<br />': '', '<br/>': '', '<b>': ''}) | raw}} <em>{{ ItemsInsertion | itemOptions | raw }}</em> {{ ItemsInsertion.texte | raw }}
{# Textes complémentaires des formations #}
{# Visiblement ce bloc ne sert à rien, la v2 ci-dessous devrait le remplacer
SELECT * FROM aep.items_insertion where complement_texte is not null order by complement_updated_at desc;
ceci montre que les données complémentaires dans items_insertion n'ont pas été modifiée depuis 11/2019,
visiblement remplacées par la table donne_complementaire
#}
{% if ItemsInsertion.complementTexte or ItemsInsertion.complementUrlLibelle or ItemsInsertion.complementUrl %}
<p class="texte-complementaire">{{ ItemsInsertion.complementTexte | raw }}</p>
{% if ItemsInsertion.complementUrl %}
<a class="texte-complementaire-url" href='{{ ItemsInsertion.complementUrl }}' target="_blank" data-trace-action="{{ constant('App\\Entity\\Trace::TEXTE_COMPLEMENTAIRE') | e('html_attr') }}" data-trace-etab="{{ etablissement.id | e('html_attr') }}">
{{ ItemsInsertion.complementUrlLibelle | raw }}
</a>
{% endif %}
{% endif %}
{# Textes complémentaires -v2 #}
{% set complementTexte = donneeComplementaire(dc, ItemsInsertion.identifiant, 'texte') %}
{# {% if complementTexte %}
<p class="texte">{{ complementTexte | raw }}</p>
{% endif %} #}
{% set complementUrlLibelle = donneeComplementaire(dc, ItemsInsertion.identifiant, 'urlLibelle') %}
{% set complementUrl = donneeComplementaire(dc, ItemsInsertion.identifiant, 'url') %}
{% if complementTexte or complementUrlLibelle or complementUrl %}
<p class="texte-complementaire formation-niv-4">{{ complementTexte | raw }}</p>
{% if complementUrl %}
{% if complementUrlLibelle == "" %}
{% set complementUrlLibelle = "En savoir plus" %}
{% endif %}
<a class="texte-complementaire-url" href='{{ complementUrl }}' target="_blank" data-trace-action="{{ constant('App\\Entity\\Trace::TEXTE_COMPLEMENTAIRE') | e('html_attr') }}" data-trace-etab="{{ etablissement.id | e('html_attr') }}">
{{ complementUrlLibelle | raw }}
</a>
{% endif %}
{% endif %}
</li>
{% set i = i +1 %}
{% endif %}
{% endfor %}
{% if i != 0 %}
</ul>
{%endif%}
{% if i != 0 %}
</li>
{%endif%}
</ul>
<!-- Afficher des compléments -->
{% for ItemsInsertion in formations | filter ( ItemsInsertion => (
ItemsInsertion.niveau == 3 and
'Texte après liste des diplômes' in ItemsInsertion.libelle and
'LYC-BACTEC' in ItemsInsertion.identifiant )
)
%}
<p class="texte-complementaire txt-apres-diplomes">{{ ItemsInsertion.texte | raw }}</p>
{% endfor %}
</div>
{% endif %}
{% if classes %}
<div class="fiche-module classes">
<h2 id="classes">Classes</h2>
<ul class="list-unstyled card-two-columns-old">
{% for ItemsInsertion in classes %}
<li>
{{ ItemsInsertion | itemLibelle | raw }}
{{ ItemsInsertion.texte | raw }}
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if specificites %}
<div class="fiche-module specificites">
<h2 id="specificites">Spécificités</h2>
<ul class="list-unstyled card-two-columns-old">
{% for ItemsInsertion in specificites %}
{% if loop.index == 1 %}
<li>
{% endif %}
{% if loop.index > 1 and ItemsInsertion.niveau==3 %}
</li>
<li>
{% endif %}
{{ ItemsInsertion | itemLibelle | ireplace({'<br />': '', '<br/>': '', '<br>': ''}) | raw }}
{{ ItemsInsertion.texte | raw }}
{% if ItemsInsertion.niveau==4 %},
{% endif %}
{% endfor %}
</ul>
{% if moduleSpecificite %}
{% set texteSpecificite = donneeComplementaire(dc,'specificite', 'texte') %}
{% if texteSpecificite != "" %}
<p class="specificite-texte-complementaire">{{texteSpecificite | raw}}</p>
{% endif %}
{% endif %}
</div>
{% endif %}
{% if accueil %}
<div class="fiche-module accueil">
<h2 id="accueil">Accueil / Accès</h2>
<ul class="list-unstyled card-two-columns-old">
{% for ItemsInsertion in accueil %}
{% if ItemsInsertion.niveau ==3 %}
<li>
{{ ItemsInsertion | itemLibelle | raw }}
{{ ItemsInsertion.texte | raw }}
{% for ItemsInsertionNiv4 in accueil %}
{% if ItemsInsertion.identifiant in ItemsInsertionNiv4.pere %}
{{ ItemsInsertionNiv4 | itemLibelle | raw }}
{{ ItemsInsertionNiv4.texte | raw }}
{% endif %}
{% endfor %}
</li>
{% endif %}
{% endfor %}
</ul>
{% if moduleSpecificite %}
{% set texteAccueil = donneeComplementaire(dc,'accueil', 'texte') %}
{% if texteAccueil != "" %}
<p class="accueil-texte-complementaire">{{texteAccueil | raw}}</p>
{% endif %}
{% endif %}
</div>
{% endif %}
{% if prices %}
<div class="fiche-module prices">
<h2 id="prices">Frais de scolarité</h2>
<ul class="list-unstyled card-one-columns">
{% for ItemsInsertion in prices %}
<li>
{{ ItemsInsertion | itemLibelle | raw }}
{{ ItemsInsertion.valeur | replace({'.': ','}) }}
{{ ItemsInsertion.texte | raw }}
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% include 'fiche/_includes/jpos.html.twig'%}
{% if complement %}
{% for ItemsInsertion in complement %}
<div
class="fiche-module complement">
{# Ne pas affiche le titre s'il s'agit d'un texte Complémentaire #}
{% set h2 = ItemsInsertion | itemLibelle %}
{% if "Texte Complémentaire" not in h2 and h2 is not empty %}
<h2>{{ h2 | raw }}</h2>
{% endif %}
<p>
{{ ItemsInsertion.texte | raw }}
</p>
</div>
{% endfor %}
{% endif %}
{# ------ INTERNAT -------------------------------------- #}
{% if type == 'internat' %}
{% if infos %}
<div class="fiche-module infos">
<h2 id="info-pratique">Informations pratiques</h2>
<ul class="list-unstyled card-two-columns-old">
{% for ItemsInsertion in infos %}
<li>
{{ ItemsInsertion | itemLibelle | raw }}
{{ ItemsInsertion.texte | raw }}
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if hebergement %}
<div class="fiche-module hebergement">
<h2>Hébergement</h2>
<ul class="list-unstyled card-two-columns-old">
{% for ItemsInsertion in hebergement %}
<li>
{{ ItemsInsertion | itemLibelle | raw }}
{{ ItemsInsertion.texte | raw }}
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if equipement %}
<div class="fiche-module equipements">
<h2 id="equipement">Equipements complémentaires</h2>
<ul class="list-unstyled card-two-columns-old">
{% for ItemsInsertion in equipement %}
<li>
{{ ItemsInsertion | itemLibelle | raw }}
{{ ItemsInsertion.texte | raw }}
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if accompagnement %}
<div class="fiche-module accompagnement">
<h2 id="accompagnement">Accompagnement scolaire</h2>
<ul class="list-unstyled card-two-columns-old">
{% for ItemsInsertion in accompagnement %}
<li>
{{ ItemsInsertion | itemLibelle | raw }}
{{ ItemsInsertion.texte | raw }}
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if activites %}
<div class="fiche-module activites">
<h2 id="perisco">Activité(s) périscolaire(s)</h2>
<ul class="list-unstyled card-two-columns-old">
{% for ItemsInsertion in activites %}
<li>
{{ ItemsInsertion | itemLibelle | raw }}
{{ ItemsInsertion.texte | raw }}
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if tarifs %}
<div class="fiche-module tarifs">
<h2>Tarifs</h2>
<ul class="list-unstyled card-two-columns-old">
{% for ItemsInsertion in tarifs %}
<li>
{{ ItemsInsertion | itemLibelle | raw }}
{{ ItemsInsertion.texte | raw }}
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endif %}
{% include 'fiche/_includes/documents.html.twig'%}
{% include 'fiche/_includes/actualites.html.twig'%}