{% extends 'biographies/biographie_entete.inc.html.twig' %}
{% block subcontents %}
<main class="tc-desktop-2_3 tc-phone-1_1">
<section class="tc-panel tc-panel-article">
{% if biotxt.text is defined and biotxt.text %}
<div class="tc-panel-header">
<h2>Présentation</h2>
{% if biotxt.subtitle is defined and biotxt.subtitle %}
<h2>{{ biotxt[subtitle]|raw }}</h2>
{% endif %}
{% if biotxt.deck is defined and biotxt.deck %}
<div class="tc-chapeau">
<p>
{{ biotxt.deck|raw }}
</p>
</div>
{% endif %}
</div>
<div class="tc-panel-body">
<div class="tc-block tc-block-article">
<div class=" tc-block-content-custom">
{% if biotxt.media is defined and biotxt.media %}
{% for video in biotxt.media %}
{% include 'includes/player.inc.html.twig' %}
{% endfor %}
{% endif %}
<div class="tc-block-header">
{% if biotxt.title is defined and biotxt.title %}
<h3>{{ biotxt.title|raw }}</h3>
{% endif %}
</div>
<div class="tc-block-body">
{% if biotxt.text is defined and biotxt.text %}
<p>{{ biotxt.text|raw }}</p>
{% endif %}
{% if biotxt.link is defined and biotxt.link %}
<p class="tc-text-label">
<a href="{{ biotxt.link }}" title="{{ biotxt.linktitle }} (Nouvelle fenêtre)" onclick="window.open(this.href); return false;">{{ biotxt.linktitle }}</a>
</p>
{% endif %}
{% if biotxt.writer is defined and biotxt.writer %}
<p class="tc-color-red tc-right">{{ biotxt.writer|raw }} </p>
{% endif %}
{% if biotxt.date is defined and biotxt.date %}
<p class="tc-text-label">{{ biotxt.date }} </p>
{% endif %}
</div>
<div class="tc-border-top tc-block-footer">
{% if biotxt.dateinsert is defined and biotxt.dateinsert %}
<p class="tc-textwrap-lieuville tc-text-label">
{% if biotxt.dateupdate is defined and biotxt.dateupdate is not empty %}
Présentation mise à jour le {{ biotxt.dateupdate|date('Y-m-d') }}
{% else %}
Présentation modifiée le {{ biotxt.dateinsert_lng }}
{% endif %}
</p>
{% endif %}
</div>
</div>
</div>
{% include 'includes/pdfs.inc.html.twig' with {'detailarticle': biotxt} %}
</div>
{% endif %}
<div class="tc-panel-body">
{% if object_rights.update is defined and object_rights.update %}
<div class="tc-block">
<div class="tc-block-header">
<h3>{{ app.user.login }}, vous avez la possibilité de modifier la présentation.</h3>
</div>
</div>
{% endif %}
{% if object_rights.wait is defined and object_rights.wait %}
<div class="tc-block-body">
{{ app.user.login }}, votre demande d'autorisation pour modifier cette fiche est en cours de validation.
<a href="#" class="more_infos" rel="bloc1">plus d'infos</a>
<div class="more_infos_bloc hide" id="bloc1">
L'accès aux fiches est validé par l'équipe de theatre-contemporain.net,
pendant les jours ouvrables (du lundi au vendredi, de 9h30 à 16h30).
Vous serez alerté(e) par courriel dès validation.
<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>
</div>
</div>
{% endif %}
</div>
</section>
</main>
{% endblock %}