templates/biographies/presentation.html.twig line 1

Open in your IDE?
  1. {% extends 'biographies/biographie_entete.inc.html.twig' %}
  2. {% block subcontents %}
  3. <main class="tc-desktop-2_3 tc-phone-1_1">
  4.     <section class="tc-panel tc-panel-article">
  5.     {% if biotxt.text is defined and biotxt.text %}
  6.         <div class="tc-panel-header">
  7.             <h2>Présentation</h2>
  8.             {% if biotxt.subtitle is defined and biotxt.subtitle %}
  9.                 <h2>{{ biotxt[subtitle]|raw }}</h2>
  10.             {% endif %}
  11.             {% if biotxt.deck is defined and biotxt.deck %}
  12.             <div class="tc-chapeau">
  13.                 <p>
  14.                     {{ biotxt.deck|raw }}
  15.                 </p>
  16.             </div>
  17.             {% endif %}
  18.         </div>
  19.         <div class="tc-panel-body">
  20.             <div class="tc-block tc-block-article">
  21.                 <div class=" tc-block-content-custom">
  22.                     {% if biotxt.media is defined and biotxt.media %}
  23.                         {% for video in biotxt.media %}
  24.                             {% include 'includes/player.inc.html.twig' %}
  25.                         {% endfor %}
  26.                     {% endif %}
  27.                     <div class="tc-block-header">
  28.                         {% if biotxt.title is defined and biotxt.title %}
  29.                             <h3>{{ biotxt.title|raw }}</h3>
  30.                         {% endif %}
  31.                     </div>
  32.                     <div class="tc-block-body">
  33.                         {% if biotxt.text is defined and biotxt.text %}
  34.                             <p>{{ biotxt.text|raw }}</p>
  35.                         {% endif %}
  36.                         {% if biotxt.link is defined and biotxt.link %}
  37.                         <p class="tc-text-label">
  38.                             <a href="{{ biotxt.link }}" title="{{ biotxt.linktitle }} (Nouvelle fenêtre)" onclick="window.open(this.href); return false;">{{ biotxt.linktitle }}</a>
  39.                         </p>
  40.                         {% endif %}
  41.                         {% if biotxt.writer is defined and biotxt.writer %}
  42.                             <p class="tc-color-red tc-right">{{ biotxt.writer|raw }} </p>
  43.                         {% endif %}
  44.                         {% if biotxt.date is defined and biotxt.date %}
  45.                             <p class="tc-text-label">{{ biotxt.date }} </p>
  46.                         {% endif %}
  47.                     </div>
  48.                     <div class="tc-border-top tc-block-footer">
  49.                         {% if biotxt.dateinsert is defined and biotxt.dateinsert %}
  50.                         <p class="tc-textwrap-lieuville tc-text-label">
  51.                             {% if biotxt.dateupdate is defined and biotxt.dateupdate is not empty %}
  52.                                 Présentation mise à jour le {{ biotxt.dateupdate|date('Y-m-d') }}
  53.                             {% else %}
  54.                                 Présentation modifiée le {{ biotxt.dateinsert_lng }}
  55.                             {% endif %}
  56.                         </p>
  57.                         {% endif %}
  58.                     </div>
  59.                 </div>
  60.             </div>
  61.             {% include 'includes/pdfs.inc.html.twig' with {'detailarticle': biotxt} %}
  62.         </div>
  63.     {% endif %}
  64.         <div class="tc-panel-body">
  65.         {% if object_rights.update is defined and object_rights.update %}
  66.         <div class="tc-block">
  67.             <div class="tc-block-header">
  68.                 <h3>{{ app.user.login }}, vous avez la possibilité de modifier la présentation.</h3>
  69.             </div>
  70.         </div>
  71.         {% endif %}
  72.         {% if object_rights.wait is defined and object_rights.wait %}
  73.             <div class="tc-block-body">
  74.                 {{ app.user.login }}, votre demande d'autorisation pour modifier cette fiche est en cours de validation.
  75.                 <a href="#" class="more_infos" rel="bloc1">plus d'infos</a>
  76.                 <div class="more_infos_bloc hide" id="bloc1">
  77.                     L'accès aux fiches est validé par l'équipe de theatre-contemporain.net,
  78.                     pendant les jours ouvrables (du lundi au vendredi, de 9h30 à 16h30).
  79.                     Vous serez alerté(e) par courriel dès validation.
  80.                     <p>Vous serez autorisé(e) à modifier cette fiche si vous êtes {{ data_person.firstname }} {{ data_person.lastname }} ou une personne qui a son accord.</p>
  81.                 </div>
  82.             </div>
  83.         {% endif %}
  84.         </div>
  85.     </section>
  86. </main>
  87. {% endblock %}