templates/pages/formation.html.twig line 1

Open in your IDE?
  1. {% extends "basefront.html.twig" %}
  2. {% block body %}
  3.     <div class="row mt-3">
  4.         <div class="col">
  5.             <!-- emplacement de la vidéo -->
  6.             {% if formation.videoid %}
  7.                 <div style="width: 560px; height: 315px; float: none; clear: both; margin: 2px auto;">
  8.                   <embed
  9.                     src="https://www.youtube.com/embed/{{ formation.videoid }}" 
  10.                     wmode="transparent"
  11.                     type="video/mp4"
  12.                     width="100%" height="100%"
  13.                     allow="autoplay; clipboard-write; encrypted-media; picture-in-picture"
  14.                     allowfullscreen
  15.                     title="YouTube video player"
  16.                   >
  17.                 </div>                                             
  18.             {% endif %}
  19.         </div>
  20.         <div class="col">
  21.             {{ formation.publishedatstring }}
  22.             <h4 class="text-info mt-5">{{ formation.title }}</h4>
  23.             <strong>playlist : </strong>{{ formation.playlist.name }}<br />
  24.             <strong>catégories : </strong>
  25.                 {% for categorie in formation.categories %}
  26.                     {{ categorie.name }}&nbsp;
  27.                 {% endfor %}
  28.             <br /><br />
  29.             <strong>description :</strong><br />
  30.                 {{ formation.description|nl2br }}
  31.         </div>
  32.     </div>
  33. {% endblock %}