private\formations_partenaires\PageLeft.twig line 1
<div class="leftsearch">{% include '/formations_partenaires/search.twig' %}</div>
<div class="titre mt-2">
<h1>
<b>Découvrez les formations proposées par nos partenaires</b>
</h1>
</div>
<div class="left col col-12 col-lg-8">
{% for partnerFormation in partnerFormations %}
<div class="structure {{ partnerFormation.structure }}" data-partner=".{{ partnerFormation.partnerId }}">
<div class="mt-4 PartnerTitle .{{ partnerFormation.partnerId }}">
{% if partnerFormation.structure == "cotéact" %}
<h3>CoTéAct</h3>
{% else %}
<h3 class="text-capitalize">{{ partnerFormation.structure }}</h3>
{% endif %}
</div>
<div class="grid .{{ partnerFormation.partnerId }}">
<div class="grid-sizer"></div>
<div class="gutter-sizer"></div>
{% for formation in formations %}
{% if formation.formations__commentaires == partnerFormation.structure %}
{% if formation.formations__url %}
<a href="/formations_partenaires/{{ formation.formations__url }}">
{% else %}
<a href="/formations_partenaires/detail?id={{ formation.formations__id_action_de_formation }}">
{% endif %}
<div class="icard {{ formation.citytag }} bgcover">
{% if formation.formations__lieu_ville %}
<div class="bouton">{{ formation.formations__lieu_ville|raw }}</div>
{% endif %}
<div class="text-container">
{% if formation.formations__intitule %}
<div class="titre">
<span>{{ formation.formations__intitule|raw }}</span>
</div>
{% endif %}
{% if formation.formations__date_debut and formation.formations__date_fin %}
<div class="date-subtitle">
<p>
{{ formation.formations__date_debut|date('d/m/Y') }} - {{ formation.formations__date_fin|date('d/m/Y')}}
</p>
</div>
{% endif %}
</div>
{% set backgrounds = [
'images/crete_jaune.png',
'images/fleur_rose.png',
'images/etoile_violette.png',
'images/pois_gris.svg',
] %}
{% set index = loop.index0 % backgrounds|length %}
{% set color_classes = ['bleu', 'jaune','violet', 'gris'] %}
<div class="visuel bgcontain {{ color_classes[index % color_classes|length] }}" style="background-image: url('{{ backgrounds[index % backgrounds|length] }}')"></div>
</div>
</a>
{% endif %}
{% endfor %}
</div>
</div>
{% endfor %}
</div>