templates/spectacles/spectacle_entete.inc.html.twig line 1

Open in your IDE?
  1. {% include 'montheatre/bookmarking.inc.html.twig' %}
  2. {% if data_spectacles.supprime is defined and data_spectacles.supprime %}
  3.     <section class="tc-panel tc-alert-callout">
  4.         <div class="tc-panel-header">
  5.             <h2>Supprimé</h2>
  6.         </div>
  7.         <div class="tc-panel-body">
  8.             <div class="tc-block-body">
  9.                 <p class="tc-neutral-color">Ce spectacle est en cours de suppression</p>
  10.             </div>
  11.         </div>
  12.     </section>
  13. {% else %}
  14.     {% if data_spectacles.hors_ligne is defined and data_spectacles.hors_ligne %}
  15.         <section class="tc-panel tc-suppr-callout">
  16.             <div class="tc-panel-header">
  17.                 <h2>Désactivé / hors ligne</h2>
  18.             </div>
  19.             <div class="tc-panel-body">
  20.                 <div class="tc-block-body">
  21.                     {% if is_granted('ROLE_ISROOT') == false %}
  22.                     <p>
  23.                         {{ app.user.login }}, ce spectacle est hors ligne : il n'est visible que par vous quand vous êtes connecté à votre compte
  24.                         {% include "montheatre/montheatre_logo_pt.inc.html.twig" %}
  25.                     </p>
  26.                     <p>
  27.                         {% if t_csrf is not defined %}
  28.                             {% set t_csrf = '' %}
  29.                         {% endif %}
  30.                         Souhaitez-vous
  31.                             <a
  32.                                 href="/ajoutspectacle/?do=publish&publish=1&tc={{ t_csrf }}&urifrom=/spectacles/{{ data_spectacles.urlClean }}/"
  33.                                 class="confirm_action"
  34.                                 title="Êtes-vous sur de vouloir changer le status de ce spectacle ?">
  35.                                 mettre ce spectacle en ligne
  36.                             </a> ?
  37.                     </p>
  38.                     {% else %}
  39.                     <p>{{ app.user.login }}, ce spectacle est hors ligne. Vous êtes administrateur, consultez-le et modifiez-le via l'extranet :
  40.                         <a href="{{ backend }}/spectacles/edit/id/{{ data_spectacles.idspectacle }}">spectacle .{{ data_spectacles.idspectacle }}]</a></p>
  41.                     {% endif %}
  42.                 </div>
  43.             </div>
  44.         </section>
  45.     {% endif %}
  46.     {% if data_spectacles.incomplet is defined and data_spectacles.incomplet %}
  47.         <section class="tc-panel tc-suppr-callout">
  48.             <div class="tc-panel-header">
  49.                 <h2>Dossier incomplet</h2>
  50.             </div>
  51.             <div class="tc-panel-body">
  52.                 <div class="tc-block-body">
  53.                     {% if is_granted('ROLE_ISROOT') == false %}
  54.                         <p>{{ login }}, ce spectacle n'est pas complet. Il ne sera pas validé tant que vous n'aurez pas précisé toutes les étapes. Il n'est visible que par vous quand vous êtes connecté à votre compte
  55.                             {% include 'montheatre/montheatre_logo_pt.inc.html.twig' %}
  56.                         </p>
  57.                         <p>Souhaitez-vous <a class="tc-color-link" href="/ajoutspectacle/informations/idspectacle/{{ data_spectacles.idspectacle }}?urifrom=/spectacles/{{ data_spectacles.url_clean }}/">compléter ce spectacle</a> ?</p>
  58.                     {% else %}
  59.                         <p>{{ app.user.login }}, ce spectacle est hors ligne et n'est pas validé parcequ'il est incomplet. Vous êtes administrateur, consultez-le et modifiez-le via l'extranet :
  60.                             <a href="{{ extranet }}/spectacles/edit/id/{{ data_spectacles.idspectacle }}" class="tc-color-link">spectacle .{{ data_spectacles.idspectacle }}]</a>
  61.                         </p>
  62.                     {% endif %}
  63.                 </div>
  64.             </div>
  65.         </section>
  66.     {% endif %}
  67.     {% if data_spectacles.validation_encours is defined and data_spectacles.validation_encours %}
  68.         <section class="tc-panel tc-ajout-callout">
  69.             <div class="tc-panel-header">
  70.                 <h2>En cours de validation</h2>
  71.             </div>
  72.             <div class="tc-panel-body">
  73.                 <div class="tc-block-body">
  74.                     <p>{{ login }}, ce spectacle est en cours de validation. Il n'est visible que par vous quand vous êtes connecté à votre compte {% include 'montheatre/montheatre_logo_pt.inc.html.twig' %}</p>
  75.                     <p>
  76.                         <a href="#" class="more_infos" rel="infosvalidaton">+ d'infos sur les délais de validation</a>
  77.                         <div id="infosvalidaton" class="more_infos_bloc hide">
  78.                             <div class="more_infos_close">
  79.                                 <a href="#" class="tc-right-float">x fermer</a>
  80.                             </div>
  81.                             Les spectacles sont <strong>validés par l'équipe de theatre-contemporain.net</strong>,
  82.                             pendant les <strong>jours ouvrables</strong> (du lundi au vendredi, de 9h30 à 16h30).
  83.                         </div>
  84.                     </p>
  85.                 </div>
  86.             </div>
  87.         </section>
  88.     {% endif %}
  89. {% endif %}
  90. <section class="tc-header tc-logo-rubriques">
  91.     <header class="tc-panel">
  92.         <div class="tc-desktop-1_1 tc-phone-1_1">
  93.             {% if data_spectacles.vignette_object is defined and data_spectacles.vignette_object %}
  94.             <style>
  95.                 .tc-background-blur::before{
  96.                     background-image: url('{{ data_spectacles.vignette_object }}');
  97.                 }
  98.             </style>
  99.             <figure class="tc-phone-1_1 tc-tablet-1_7 tc-background-blur">
  100.                 {% if is_accueil is defined and is_accueil %}
  101.                     <img class="tc-border-neutral" src="{{ data_spectacles.vignette_object }}" alt="Accueil de « {{ data_spectacles.title }} »" />
  102.                 {% else %}
  103.                     <a href="/spectacles/{{ data_spectacles.urlClean }}/" title="Accueil de « {{ data_spectacles.title }} »">
  104.                     <img class="tc-border-neutral"  src="{{ data_spectacles.vignette_object }}" alt="Accueil de « {{ data_spectacles.title }} »" /></a>
  105.                 {% endif %}
  106.             </figure>
  107.             {% endif %}
  108.             <div class="tc-header row tc-phone-1_1 tc-tablet-6_7">
  109.                 <h1>{{ data_spectacles.title }}</h1>
  110.                 {% if country is defined and country %}
  111.                     <p class="tc-subtitle">
  112.                         {{ country }}
  113.                         {% if birth_year %} &ndash;
  114.                             {% if death_year is not defined %}
  115.                                 Né(e) en
  116.                             {% endif %}
  117.                             {{ birth_year }}
  118.                         {% endif %}
  119.                         {% if death_year %}
  120.                             {% if birth_year is not defined %}
  121.                                 &ndash; ?
  122.                             {% endif %}
  123.                             - {{ death_year}}
  124.                         {% endif %}
  125.                     </p>
  126.                 {% endif %}
  127.                 {% if data_person.boss is defined and data_person.boss %}
  128.                 <p class="tc-subtitle">
  129.                     Voir aussi :
  130.                     {% if data_person.boss is defined and data_person.boss %}
  131.                     <span>
  132.                         {% for idcontact,contact in data_person.boss %}
  133.                             <a href="/contacts/{{ contact.url_clean }}/">
  134.                                 {{ contact.organisation }}
  135.                                 {% if contact.nopunct is not defined or (contact.nopunct is defined and not contact.nopunct) %}, {% endif %}
  136.                             </a>
  137.                         {% endfor %}
  138.                     </span>
  139.                     {% endif %}
  140.                 </p>
  141.                 {% endif %}
  142.                 {% if data_spectacles.textfictif is defined and data_spectacles.textfictif %}
  143.                     <p class="tc-subtitle">
  144.                         {% if data_spectacles.alldirectors is defined  and data_spectacles.alldirectors %}
  145.                             {% for iddirector,director in data_spectacles.alldirectors %}
  146.                                 <a href="/biographies/{{ director.url_clean }}/">{{ director.firstname }} {{ director.lastname }}</a>
  147.                                 <span>
  148.                                     ({% for idrole,role in director.roles %}
  149.                                         {{ role }}
  150.                                     {% endfor %})
  151.                                 </span>
  152.                                     {% if director.nopunct is not defined or (director.nopunct is defined and not director.nopunct) %}, {% endif %}
  153.                             {% endfor %}
  154.                         {% endif %}
  155.                     </p>
  156.                 {% else %}
  157.                         {% if data_spectacles.textunique is defined and data_spectacles.textunique %}
  158.                         <div class="tc-subtitle">
  159.                             + d'infos sur
  160.                             <a href="/textes/{{ data_spectacles.url_clean_text }}/"  title="{{ data_spectacles.title }}">
  161.                                 {% if data_spectacles.adaptation is defined and data_spectacles.adaptation %}
  162.                                     l'adaptation
  163.                                 {% else %}
  164.                                     le texte
  165.                                 {% endif %}
  166.                             </a>
  167.                             de
  168.                             {% if data_spectacles.adaptation is defined and data_spectacles.adaptation %}
  169.                                {% for idtext,text in data_spectacles.texts %}
  170.                                     {% for idauthor,author in text.authors %}
  171.                                         <a href="/biographies/{{ author.url_clean }}/">{{ author.firstname }}&nbsp;{{ author.lastname }}</a>
  172.                                         {% if author.nopunct is not defined or (author.nopunct is defined and not author.nopunct) %}, {% endif %}
  173.                                     {% endfor %}
  174.                                 {% endfor %}
  175.                             {% else %}
  176.                                 {% if data_spectacles.texts is defined and data_spectacles.texts%}
  177.                                     {% for idtext,text in data_spectacles.texts %}
  178.                                     <span>
  179.                                         {% if text.allauthors is defined and text.allauthors %}
  180.                                             {% for idall,call in text.allauthors %}
  181.                                                 <a href="/biographies/{{ call.url_clean }}/">{{ call.firstname }}&nbsp;{{ call.lastname }}</a>
  182.                                                 {% if call.nopunct is not defined or (call.nopunct is defined and not call.nopunct) %}, {% endif %}
  183.                                             {% endfor %}
  184.                                         {% elseif text.authors is defined %}
  185.                                             {% for idperson,author in text.authors %}
  186.                                                 <a href="/biographies/{{ author.url_clean }}/">{{ author.firstname }}&nbsp;{{ author.lastname }}</a>
  187.                                             {% endfor %}
  188.                                         {% endif %}
  189.                                         {% if text.alltranslators is defined and text.alltranslators %}
  190.                                             traduit par
  191.                                             {% for idperson,author in text.alltranslators %}
  192.                                                 <a href="/biographies/{{ author.url_clean }}/">{{ author.firstname }}&nbsp;{{ author.lastname }}</a>
  193.                                             {% endfor %}
  194.                                         {% endif %}
  195.                                     </span>
  196.                                     {% endfor %}
  197.                                 {% else %}
  198.                                     {% if data_spectacles.otherauthor is defined and data_spectacles.otherauthor %}
  199.                                         {% for idauthor,author in data_spectacles.otherauthor %}
  200.                                         <a href="/biographies/{{ author.url_clean }}/">
  201.                                             {{ author.firstname }} {{ author.lastname }}
  202.                                             {% if author.nopunct is not defined or (author.nopunct is defined and not author.nopunct) %}, {% endif %}
  203.                                         </a>
  204.                                         {% endfor %}
  205.                                     {% endif %}
  206.                                 {% endif %}
  207.                             {% endif %}
  208.                         </div>
  209.                         {% endif %}
  210.                     {% if data_spectacles.adaptation is defined and data_spectacles.adaptation %}
  211.                     <div class="tc-subtitle"> d'après
  212.                         {% if data_spectacles.texts_adaptation is defined and data_spectacles.texts_adaptation %}
  213.                             {% for idtext,text in data_spectacles.texts_adaptation %}
  214.                                 <span><a href="/textes/{{ text.url_clean }}/"><em>{{ text.title }}</em></a> de
  215.                                 {% for idperson,author in text.allauthors %}
  216.                                     <a href="/biographies/{{ author.url_clean }}/">{{ author.firstname }}&nbsp;{{ author.lastname }}</a>
  217.                                     {% if author.nopunct is not defined or (author.nopunct is defined and not author.nopunct) %}, {% endif %}
  218.                                 {% endfor %}
  219.                                     {% if text.nopunct is not defined or (text.nopunct is defined and not text.nopunct) %}, {% endif %}
  220.                             {% endfor %}
  221.                         {% endif %}
  222.                         </span>
  223.                     </div>
  224.                     {% endif %}
  225.                     <div class="tc-subtitle">
  226.                         {% if data_spectacles.is_lecture is defined and data_spectacles.is_lecture %}
  227.                             lecture dirigée par
  228.                         {% else %}
  229.                             {{ data_spectacles.typespectacle }}
  230.                         {% endif %}
  231.                         {% if data_spectacles.alldirectors is defined and data_spectacles.alldirectors %}
  232.                             {% for iddirector,director in data_spectacles.alldirectors %}
  233.                             <span>
  234.                                 <a href="/biographies/{{ director.url_clean }}/">
  235.                                 {{ director.firstname }} {{ director.lastname }}
  236.                                 {% if director.nopunct is not defined or (director.nopunct is defined and not director.nopunct) %}, {% endif %}
  237.                                 </a>
  238.                             </span>
  239.                             {% endfor %}
  240.                         {% elseif data_spectacles.otherauthor is defined and data_spectacles.otherauthor %}
  241.                             de
  242.                             {% for idauthor,author in data_spectacles.otherauthor %}
  243.                                 <a href="/biographies/{{ author.url_clean }}/">
  244.                                 {{ author.firstname }} {{ author.lastname }}
  245.                                 {% if author.nopunct is not defined or (author.nopunct is defined and not author.nopunct) %}, {% endif %}
  246.                                 </a>
  247.                             {% endfor %}
  248.                         {% endif %}
  249.                     </div>
  250.                     {% if data_spectacles.texts|length > 1 %}
  251.                     <div class="tc-subtitle">
  252.                         Création à partir {% if data_spectacles.texts_multiple is defined and data_spectacles.texts_multiple %}des textes{% else %}du texte{% endif %}
  253.                         {% for idtext,text in data_spectacles.texts %}
  254.                         <span>
  255.                             <a href="/textes/{{ text.url_clean }}/"><em>{{ text.title }}</em></a>
  256.                             de
  257.                             {% for idperson,author in text.authors %}
  258.                                 <a href="/biographies/{{ author.url_clean }}/">{{ author.firstname }}&nbsp;{{ author.lastname }}</a>{% if author.nopunct is not defined or (author.nopunct is defined and not author.nopunct) %}, {% endif %}
  259.                             {% endfor %}
  260.                         </span>
  261.                         {% endfor %}
  262.                     </div>
  263.                     {% endif %}
  264.                 </div>
  265.             {% endif %}
  266.         </div>
  267.     </header>
  268.     <nav class="tc-subnav">
  269.         <ul>
  270.         {% if menu_spectacle is defined and menu_spectacle %}
  271.             {% for k,v in menu_spectacle %}
  272.                 {% if v.submenu is defined and v.submenu %}
  273.                 <li>
  274.                     {% if v.name is defined and v.name %}<a href="">{{ v.name|raw }}</a>
  275.                     <ul>
  276.                         {% for ksub,vsub in v.submenu %}
  277.                             <li><a href="/spectacles/{{ data_spectacles.urlClean }}/{{ vsub.url }}/" >{{ vsub.name }}</a></li>
  278.                         {% endfor %}
  279.                     </ul>
  280.                     {% endif %}
  281.                 </li>
  282.                 {% else %}
  283.                     {% if v.name is defined and v.name %}
  284.                         {% if v.active is not defined or (v.active is defined and not v.active) %}
  285.                         <li>
  286.                             {% if v.url is defined and v.url %}
  287.                             <a href="/spectacles/{{ data_spectacles.urlClean }}/{{ v.url }}/">{{ v.name|raw }}</a>
  288.                             {% else %}
  289.                             <a href="/spectacles/{{ data_spectacles.urlClean }}/">{{ v.name|raw }}</a>
  290.                             {% endif %}
  291.                         </li>
  292.                         {% else %}
  293.                         <li class="tc-item-on">
  294.                             <a href="/spectacles/{{ data_spectacles.urlClean }}/{{ v.url }}">{{ v.name|raw }}</a>
  295.                         </li>
  296.                         {% endif %}
  297.                     {% endif %}
  298.                 {% endif %}
  299.             {% endfor %}
  300.          {% endif %}
  301.         </ul>
  302.     </nav>
  303. </section>
  304. {% include "includes/navigation.inc.html.twig" %}