templates/Default/formation.html.twig line 1

Open in your IDE?
  1. {% set title = item.label %}
  2. {% set description = item.description %}
  3. {% set menu = 'formations' %}
  4. {% extends 'Default/base.html.twig' %}
  5. {% block content %}
  6. <style>
  7.     ul{margin-left: var(--25px)}
  8. </style>
  9. <div id="formation" class='relative gpadding {{desktop("vt-80-in")}} {{mobile("vt-30-in")}} '>
  10.     {% set content = item.details|summary %}
  11.     <div id="article" class='{{desktop("flex row top")}} {{mobile("")}}'>
  12.         {% set hasSidebar = content.summary|length > 20 %}
  13.         <div class='border-right border-1x border-solid border-gray-alt hoverflow {{desktop("third-40 right-80")}} {{mobile("w100 bottom-20")}}'>
  14.             <ul class='list h5 upper success'>
  15.                 {{ content.summary|raw }}
  16.             </ul>
  17.         </div>
  18.         <div class='w100 {{desktop("")}} {{mobile("")}} '>
  19.             <div class='article h6 text-justify light'>
  20.             {{ content.content|raw }}
  21.             </div>
  22.             {% for o in item.thematics %}
  23.             {% if o.isEnabled %}
  24.             <h3 class="h5 upper medium success top-20 lh-1x flex row">
  25.                 <i class="bg-success-alt bold hz-15-in vt-7-in radius-top-30 flex row middle right-10 white">{{loop.index}}</i>
  26.                 <span class="vt-7-in">{{o.label}}</i>
  27.             </h3>
  28.             <div class="bg-white shadow padding-30">
  29.                 {% if o.domain %}
  30.                 <div class="flex col w100">
  31.                     <h4 class="success-alt h5 upper semibold">Domaine :</h4>
  32.                     <label class="h5">{{o.domain.label}}</label>
  33.                 </div>
  34.                 {% endif %}
  35.                 {% if o.mainObjective %}
  36.                 <div class="flex col w100 border-bottom border-solid border-white border-1x vt-20-in">
  37.                     <h4 class="success-alt h5 upper semibold">Objectif général :</h4>
  38.                     {{o.mainObjective|markdown_to_html}}
  39.                 </div>
  40.                 {% endif %}
  41.                 {% if o.specificsObjectives %}
  42.                 <div class="flex col w100 border-bottom border-solid border-white border-1x vt-20-in">
  43.                     <h4 class="success-alt h5 upper semibold">Objectifs spécifiques :</h4>
  44.                     {{o.specificsObjectives|markdown_to_html}}
  45.                 </div>
  46.                 {% endif %}
  47.                 {% if o.target %}
  48.                 <div class="flex col w100 border-bottom border-solid border-white border-1x vt-20-in">
  49.                     <h4 class="success-alt h5 upper semibold">Public cible :</h4>
  50.                     {{o.target|markdown_to_html}}
  51.                 </div>
  52.                 {% endif %}
  53.                 {% if o.details %}
  54.                 <div class="flex col w100 border-bottom border-solid border-white border-1x vt-20-in">
  55.                     {{o.details|raw}}
  56.                 </div>
  57.                 {% endif %}
  58.                 {% if o.cost or o.duration %}
  59.                 <div class="flex row wrap left">
  60.                     {% if o.cost %}
  61.                     <div class="flex row radius-30 shadow-alt right-20">
  62.                         <span class="radius-30 bg-success-alt hz-15-in vt-10-in"><i class="fa fa-coins"></i></span>
  63.                         <label class="flex row middle hz-15-in vt-7-in">{{o.cost}}</label>
  64.                     </div>
  65.                     {% endif %}
  66.                     {% if o.duration %}
  67.                     <div class="flex row radius-30 shadow-alt">
  68.                         <span class="radius-30 bg-success-alt hz-15-in vt-10-in"><i class="fa fa-clock"></i></span>
  69.                         <label class="flex row middle hz-15-in vt-7-in">{{o.duration}}</label>
  70.                     </div>
  71.                     {% endif %}
  72.                 </div>
  73.                 {% endif %}
  74.             </div>
  75.             {% endif %}
  76.             {% endfor %}
  77.             {% if item.album and item.album.pictures|length %}
  78.             <h2 class='h3 top-40'>{{item.album.title ? item.album.title : "Album photos"}}</h2>
  79.             <figure class="bg-white slide-box mrect slide-container fill nohover relative top-40" tabindex="1">
  80.                 <div class="fill slides radius-10 adapt">
  81.                 {% for o in item.album.pictures %}
  82.                 <div class='relative slide {{loop.index == 1 ? "active"}}'>
  83.                     <img src='{{asset(o)}}' class='contain'/>
  84.                 </div>
  85.                 {% endfor %}
  86.                 </div>
  87.                 <span class="slide-prev radius-50 h100 padding-30 absolute top left pointer" data-target="#article .slide-box">
  88.                     <span class="fill flex col middle"><i class="flex col middle fa fa-chevron-left h1 white shadow-alt"></i></span>
  89.                 </span>
  90.                 <span class="slide-next radius-50 h100 padding-30 absolute top right pointer"  data-target="#article .slide-box">
  91.                     <span class="fill flex col middle"><i class="flex col middle fa fa-chevron-right h1 white shadow-alt"></i></span>
  92.                 </span>
  93.             </figure>
  94.             {% endif %}
  95.         </div>
  96.     </div>
  97. </div>
  98. {% endblock %}