templates/Frontend/Render/Block/_block_formation.html.twig line 1

Open in your IDE?
  1. <div class="formation">
  2.     <div class="container">
  3.         <ul class="nav nav-tabs" id="myTab" role="tablist">
  4.             {% for formation in formations %}
  5.                 <li class="nav-item" role="presentation">
  6.                     <button class="nav-link {% if formation == formations|first %}active{% endif %}" id="tab-{{formation.id}}" data-bs-toggle="tab" data-bs-target="#formation-{{formation.id}}" type="button" role="tab" aria-controls="formation-{{formation.id}}" aria-selected="true">
  7.                         {{formation}}
  8.                         <span>{{formation.duree}}</span>
  9.                     </button>
  10.                 </li>
  11.             {% endfor %}
  12.             
  13.         </ul>
  14.         <div class="tab-content" id="myTabContent">
  15.             {% for tabformation in formations %}
  16.                 <div class="tab-pane fade {% if tabformation == formations|first %}show active{% endif %}" id="formation-{{tabformation.id}}" role="tabpanel" aria-labelledby="tab-{{tabformation.id}}">
  17.                     {% for module in tabformation.modules %}
  18.                         {% if module.publier == 1 %}
  19.                             <div class="row mb-5">
  20.                                 <div class="col-lg-7">
  21.                                     <div class="titre_module">
  22.                                         <h3><span>{{module.position}}</span>{{module}}</h3>
  23.                                     </div>
  24.                                 </div>
  25.                                 <div class="col-lg-5">
  26.                                     <div class="profs_module">
  27.                                         <h4>{{'PROFESSOR(s)'|trans}}</h4>
  28.                                         <div class="row">
  29.                                             {% for prof in module.profs %}
  30.                                                 <div class="col-sm-6">
  31.                                                     <div class="prof">
  32.                                                         <div class="img_prof">
  33.                                                             {% if prof.image is not empty %}
  34.                                                                 <img class="img-fluid" src="{{ asset (vich_uploader_asset(prof,'imageFile')) }}" alt="{{prof.nom}}">
  35.                                                             {% else %}
  36.                                                                 <img class="img-fluid" src="/assets/img/no_image.png" alt="{{prof.nom}}">
  37.                                                             {% endif %}
  38.                                                         </div>
  39.                                                         <a {% if prof.link is not empty %}href="{{prof.link}}"{% elseif prof.linkedin is not empty %}href="{{prof.linkedin}}"{% endif %} target="blank">
  40.                                                             <strong>{{prof}}</strong>
  41.                                                             <span>{{prof.mission}}</span>
  42.                                                         </a>
  43.                                                     </div>
  44.                                                 </div>
  45.                                             {% endfor %}
  46.                                         </div>
  47.                                     </div>
  48.                                 </div>
  49.                             </div>
  50.                         {% endif %}
  51.                     {% endfor %}
  52.                 </div>
  53.             {% endfor %}
  54.         </div>
  55.         <div class="link_teachers">
  56.             <a href="{{ path('page_single',{'catslug':'people', 'slug':'predoctoral-program-teachers'}) }}">
  57.                 {{'Teachers of the PhD Program'|trans}}<img class="img-fluid" src="/assets/img/right_arrow_02.png" alt="arrow">
  58.             </a>
  59.         </div>
  60.     </div>
  61. </div>