{% extends 'contacts/contact_entete.inc.html.twig' %}
{% block content %}
<main class="tc-desktop-2_3 tc-phone-1_1">
<section class="tc-panel">
<div class="tc-panel-header">
<h2 class="tc-color-educ">Les spectacles liés à {{ data_object.fullname }} et disposant d'un dossier pédagogique </h2>
{% if search_author is defined and search_author %}
<h3 class="tc-title-medium tc-color-educ">Mises en scènes des textes de
<a href="/biographies/{{ search_author.url_clean }}/">{{ search_author.firstname }} {{ search_author.lastname }}</a>
<span class="types">[et associées à {{ data_object.organisation }}]</span></h3>
{% endif %}
{% if search_director is defined and search_director %}
<h3 class="tc-title-medium tc-color-educ">Mises en scènes de
<a href="/biographies/{{ search_director.url_clean }}/">{{ search_director.firstname }} {{ search_director.lastname }}</a>
<span class="types">[et associées à {{ data_object.organisation }}]</span></h3>
{% endif %}
{% if current_year is defined and current_year %}<h3 class="tc-color-educ"><strong>Année {{ current_year }}</strong></h3>{% endif %}
{% if saison is defined and saison %}<h3 class="tc-color-educ">Saison {{ saison }}</h3>{% endif %}
</div>
</section>
{% if spectacles_in_or_soutien is defined and spectacles_in_or_soutien %}
{% if spectacles_in is defined and spectacles_in %}
<sectioncontenu-pedagogique class="tc-panel tc-spectacles-tpl-b">
<div class="tc-panel-header">
<h3 class="tc-title-medium tc-color-educ">{{ nb_spectacles_in_saison }} spectacles dans ce lieu</h3>
</div>
<div class="tc-panel-body tc-masonry-container" >
{% for idspectacle,spectacle in spectacles_in %}
<div class="tc-block tc-tablet-1_2">
{% include 'spectacles/spectacle_titre.inc.html.twig' %}
</div>
{% endfor %}
</div>
</sectioncontenu-pedagogique>
{% endif %}
{% if spectacles_soutien is defined and spectacles_soutien %}
<section class="tc-panel">
<div class="tc-panel-header">
<h2 class="tc-color-educ">{{ nb_spectacles_soutien_saison }} spectacles réalisés avec le soutien de {{ data_object.fullname }}</h2>
</div>
<div class="tc-panel-body tc-masonry-container">
{% for idspectacle,spectacle in spectacles_soutien %}
<div class="tc-tablet-1_2 tc-block">
{% include 'spectacles/spectacle_titre.inc.html.twig' %}
</div>
{% endfor %}
</div>
<div class="tc-panel-footer">
<div class="tc-pagination">
<p>{{ nb_spectacles_soutien }} spectacles au total réalisés avec le soutien de {{ data_object.fullname }}</p>
</div>
</div>
</section>
{% endif %}
{% endif %}
{# {% if spectacles_prod %}#}
{# {% if spectacles_prod %}#}
{# <section class="tc-panel tc-spectacles-tpl-b">#}
{# <div class="tc-panel-header">#}
{# <h2 class="tc-color-educ">#}
{# {% if all_prod %}#}
{# <strong>Tous</strong> les spectacles coproduits#}
{# {else:}#}
{# En tournée <br /><h3 class="tc-title-medium tc-color-educ">produits (ou coproduits) par {{ data_object.organisation }} ({{nb_spectacles_prod_saison }} spectacles)</h3>#}
{# {% endif %}#}
{# </div>#}
{# <div class="tc-panel-body tc-masonry-container">#}
{# <div class="tc-tablet-1_2 tc-block" flexy:foreach="spectacles_prod,idspectacle,spectacle">#}
{# <flexy:include src="spectacles/spectacle_titre.inc.html" />#}
{# </div>#}
{# </div>#}
{# <div class="tc-panel-footer">#}
{# <div class="tc-pagination">#}
{# <p>{{ nb_spectacles_prod }} spectacles au total coproduits par {{ data_object.organisation }}</p>#}
{# </div>#}
{# </div>#}
{# </section>#}
{# {% endif %}#}
{# {% endif %} #}
</main>
{% endblock %}