private\formations\formation\infos_pratiques.twig line 1
<div class="pratique">
<div class="titre">Informations pratiques</div>
<div class="info date">
<i class="fa-thin fa-fw fa-calendar-days"></i>
{% set mois_en_fr = {
'January': 'janvier',
'February': 'février',
'March': 'mars',
'April': 'avril',
'May': 'mai',
'June': 'juin',
'July': 'juillet',
'August': 'août',
'September': 'septembre',
'October': 'octobre',
'November': 'novembre',
'December': 'décembre'
} %}
{% set mois_en = formation.formations__date_debut|date('F') %}
{% set mois_en_fin = formation.formations__date_fin|date('F') %}
{% set mois_fr = mois_en_fr[mois_en] %}
{% set mois_fin_fr = mois_en_fr[mois_en_fin] %}
{% if formation.formations__diffusion == 1 and formation.formations__date_fin|date('Y/m/d') < 'NOW'|date('Y/m/d') %}
Formation à venir
{% else %}
{% if formation.formations__date_debut|date('Y') == formation.formations__date_fin|date('Y') %}
Du
{{ formation.formations__date_debut|date('d') ~ ' ' ~ mois_fr }}
au
{{ formation.formations__date_fin|date('d') ~ ' ' ~ mois_fin_fr ~ ' ' ~ formation.formations__date_fin|date('Y') }}
{% else %}
Du
{{ formation.formations__date_debut|date('d') ~ ' ' ~ mois_fr ~ ' ' ~ formation.formations__date_debut|date('Y') }}
<br>
au
{{ formation.formations__date_fin|date('d') ~ ' ' ~ mois_fin_fr ~ ' ' ~ formation.formations__date_fin|date('Y') }}
{% endif %}
{% endif %}
</div>
{% if formation.formations__lieu_adresse or formation.formations__lieu_cp or formation.formations__lieu_ville %}
<div class="info">
<i class="fa-solid fa-fw fa-location-dot"></i>
{{formation.formations__lieu_adresse|raw}}, <br>
{{ formation.formations__lieu_cp|raw }}
{{formation.formations__lieu_ville|raw}}
</div>
{% endif %}
<div class="info">Temps de formation total :
{% set total_heures_participants = formation.formations__total_heures_participants | replace({',': '', '.000': ''}) %}
{{ total_heures_participants | number_format(0, '.', '') }}h
</div>
<div class="mt-3">
{% if formation.formations__tarif %}
<h3 class="mb-2">Tarif : {{formation.formations__tarif|raw}} € (HT)</h3>
Possibilité de financement jusqu'à 100%
{% endif %}
</div>
<div class="links">
<div class="d-flex flex-wrap gap-2 mt-2 mb-3">
{% if formation.formations__contact_mail %}
<a href="mailto:{{ formation.formations__contact_mail|raw }}?subject={{ formation.formations__intitule_for_email|raw }}" onclick="return gtagSendEvent('mailto:{{ formation.formations__contact_mail|raw }}?subject={{ formation.formations__intitule_for_email|raw }}')">
<div class="bouton action full">
Écrivez-nous
</div>
</a>
{% else %}
<a href="mailto:formation@illusion-macadam.fr?subject={{ formation.formations__intitule_for_email|raw }}" onclick="return gtagSendEvent('mailto:formation@illusion-macadam.fr?subject={{ formation.formations__intitule_for_email|raw }}')">
<div class="bouton action full">
Écrivez-nous
</div>
</a>
{% endif %}
{% if formation.formations__devis_url %}
<br class="d-none d-lg-block">
<a href="{{formation.formations__devis_url}}" target="_blank">
<div class="bouton action full">
Devis
</div>
</a>
{% elseif pdf_devis %}
{% for devis in pdf_devis %}
<br class="d-none d-lg-block">
<a href="{{devis.url}}" target="_blank">
<div class="bouton action full">
Devis
</div>
</a>
{% endfor %}
{% else %}
{% endif %}
{% if formation.formations__candidature_url %}
<a href="{{formation.formations__candidature_url}}" target="_blank">
<div class="bouton action">
Dossier de candidature
</div>
</a>
{% elseif pdf_candidature %}
{% for candidature in pdf_candidature %}
<a href="{{candidature.url}}" target="_blank">
<div class="bouton action">
Dossier de candidature
</div>
</a>
{% endfor %}
{% else %}
{% endif %}
{% if formation.formations__financement_url %}
<a href="{{formation.formations__financement_url}}" target="_blank">
<div class="bouton action">
Information sur le financement
</div>
</a>
{% elseif pdf_financement %}
{% for financement in pdf_financement %}
<a href="{{financement.url}}" target="_blank">
<div class="bouton action">Information sur le financement</div>
</a>
{% endfor %}
{% endif %}
{% if formation.formations__co_design_url %}
<a href="{{formation.formations__co_design_url}}" target="_blank">
<div class="bouton action">
Site du partenaire
</div>
</a>
{% endif %}
</div>
<div class="info d-flex mt-2">
{% if formation.formations__contact_tel %}
<a href="tel:{{formation.formations__contact_tel}}" onclick="return gtagSendEvent('tel:0467842989')">
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" fill="rgba(17, 111, 56, 1)" viewbox="0 0 512 512"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M511.2 387l-23.25 100.8c-3.266 14.25-15.79 24.22-30.46 24.22C205.2 512 0 306.8 0 54.5c0-14.66 9.969-27.2 24.22-30.45l100.8-23.25C139.7-2.602 154.7 5.018 160.8 18.92l46.52 108.5c5.438 12.78 1.77 27.67-8.98 36.45L144.5 207.1c33.98 69.22 90.26 125.5 159.5 159.5l44.08-53.8c8.688-10.78 23.69-14.51 36.47-8.975l108.5 46.51C506.1 357.2 514.6 372.4 511.2 387z"/></svg>
<span class="ms-2">{{formation.formations__contact_tel}}</span>
</a>
{% else %}
<a href="tel:04 67 84 29 89" onclick="return gtagSendEvent('tel:0467842989')">
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" fill="rgba(17, 111, 56, 1)" viewbox="0 0 512 512"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M511.2 387l-23.25 100.8c-3.266 14.25-15.79 24.22-30.46 24.22C205.2 512 0 306.8 0 54.5c0-14.66 9.969-27.2 24.22-30.45l100.8-23.25C139.7-2.602 154.7 5.018 160.8 18.92l46.52 108.5c5.438 12.78 1.77 27.67-8.98 36.45L144.5 207.1c33.98 69.22 90.26 125.5 159.5 159.5l44.08-53.8c8.688-10.78 23.69-14.51 36.47-8.975l108.5 46.51C506.1 357.2 514.6 372.4 511.2 387z"/></svg>
<span class="ms-2">04 67 84 29 89</span>
</a>
{% endif %}
</div>
</div>
</div>