templates/spectacles/widget-calendrier.html.twig line 1

Open in your IDE?
  1. {% extends minHeader is defined ? 'minimum.html.twig' : 'templates.html.twig' %}
  2. {% block content %}
  3. <style type="text/css">
  4.     body { margin: 0!important; padding: 0!important; background: none!important; }
  5. </style>
  6. <div id="thnet_widget">
  7.     <section class="tc-panel tc-widget tc-tablet-1_2 tc-phone-1_1" style="width:100%;">
  8.         <div class="tc-panel-body" style="margin-top:0">
  9.             {% if date_exists is defined and date_exists %}
  10.                 {% if schedule_detail_futur is defined and schedule_detail_futur %}
  11.                     <div class="tc-block">
  12.                     <div class="tc-border-neutral">
  13.                         <div class="tc-block-header  tc-bg-extralight-gray">
  14.                             <h3 class="tc-textwrap-lieuville-calendar">
  15.                                 <a href="{{ thnet }}/spectacles/{{ url_clean }}">{{ data_object.title }}</a>
  16.                             </h3>
  17.                             <p class="tc-subtitle">Prochaines dates de représentation</p>
  18.                         </div>
  19.                         {% for key,value in schedule_detail_futur %}
  20.                         <div style="border-bottom:1px solid lightgrey">
  21.                             <div class="tc-block-body">
  22.                             {% if value.dateshours.periode is defined and value.dateshours.periode %}
  23.                                 <div style="margin-bottom:0;">
  24.                                     {% for date,dateinfos in value.dateshours %}
  25.                                         {% if dateinfos.datedebut is defined and dateinfos.datedebut %}
  26.                                             <span class="tc-text-label-inline">{% trans %}du{% endtrans %}</span>
  27.                                             <span class="tc-textwrap-date">{{ dateinfos.datedebut }}</span>
  28.                                         {% endif %}
  29.                                         {% if dateinfos.datefin is defined and dateinfos.datefin %}
  30.                                             <span class="tc-text-label-inline">{% trans %}au{% endtrans %}</span>
  31.                                             <span class="tc-textwrap-date">{{ dateinfos.datefin }}</span>
  32.                                         {% endif %}
  33.                                     {% endfor %}
  34.                                     <br>
  35.                                     <p style="display:inline-block;width:100%;">
  36.                                         <span><a href="/contacts/{{ value.url_clean }}/" class="popup tc-textwrap-lieuville" title="Informations sur ce contact (nouvelle fenêtre)">{{ value.organisation }}</a></span>
  37.                                         <span>- {{ value.city }} {% if country is defined and country %}{{ value.country }}{% endif %}</span>
  38.                                     </p>
  39.                                 </div>
  40.                             {% else %}
  41.                                 <div style="margin-bottom:0;">
  42.                                     <span class="tc-text-label-inline">{% trans %}lagarce_scene_le{% endtrans %}</span>
  43.                                     <span class="tc-textwrap-date">{{ value.dateshours.date }}</span>
  44.                                     <p style="display:inline-block;width:100%;">
  45.                                         <span><a href="/contacts/{{ value.url_clean }}/" class="popup tc-textwrap-lieuville" title="Informations sur ce contact (nouvelle fenêtre)">{{ value.organisation }}</a></span>
  46.                                         <span>- {{ value.city }} {% if country is defined and country %}{{ value.country }}{% endif %}</span>
  47.                                     </p>
  48.                                 </div>
  49.                             {% endif %}
  50.                             </div>
  51.                         </div>
  52.                         {% endfor %}
  53.                         <div class="tc-block-footer">
  54.                             <p class="tc-center"><a href="{{ thnet }}/spectacles/{{ url_clean }}/lesdates">Voir le calendrier complet</a> |  <a href="/ajoutdate/dates/idspectacle/{{ data_spectacles.idspectacle }}">Ajouter des dates</a></p>
  55.                             <p class="tc-center">Informations issues de l'<a href="{{ thnet }}/site/opendata">open data</a> de <a href="{{ thnet }}"><span class="tc-icon-pictotc tc-color-red"></span> Théâtre-contemporain.net</a>.</p>
  56.                         </div>
  57.                     </div>
  58.                 </div>
  59.                 {% else %}
  60.                     <div class="tc-block">
  61.                         <div class="tc-border-neutral">
  62.                             <div class="tc-block-header  tc-bg-extralight-gray">
  63.                                 <h3 class="tc-textwrap-lieuville-calendar">
  64.                                     <a href="{{ thnet }}/spectacles/{{ url_clean }}">{{ data_object.title }}</a>
  65.                                 </h3>
  66.                                 <p class="tc-subtitle">Dernières dates de représentation</p>
  67.                             </div>
  68.                             {% for key,value in schedule_detail_old %}
  69.                             <div  style="border-bottom:1px solid lightgrey">
  70.                                 <div class="tc-block-body">
  71.                                 {% if value.dateshours.periode is defined and value.dateshours.periode %}
  72.                                     <div style="margin-bottom:0;">
  73.                                         {% for date,dateinfos in value.dateshours %}
  74.                                             {% if dateinfos.datedebut is defined and dateinfos.datedebut %}
  75.                                                 <span class="tc-text-label-inline">{% trans %}du{% endtrans %}</span>
  76.                                                 <span class="tc-textwrap-date">{{ dateinfos.datedebut }}</span>
  77.                                             {% endif %}
  78.                                             {% if dateinfos.datefin is defined and dateinfos.datefin %}
  79.                                                 <span class="tc-text-label-inline">{% trans %}au{% endtrans %}</span>
  80.                                                 <span class="tc-textwrap-date">{{ dateinfos.datefin }}</span>
  81.                                             {% endif %}
  82.                                         {% endfor %}
  83.                                         <br>
  84.                                         <p style="display:inline-block;width:100%;">
  85.                                             <span><a href="/contacts/{{ value.url_clean }}/" class="popup tc-textwrap-lieuville" title="Informations sur ce contact (nouvelle fenêtre)">{{ value.organisation }}</a></span>
  86.                                             <span>- {{ value.city }} {% if country is defined and country %}{{ value.country }}{% endif %}</span>
  87.                                         </p>
  88.                                     </div>
  89.                                 {% else %}
  90.                                     <div style="margin-bottom:0;">
  91.                                         <span class="tc-text-label-inline">{% trans %}lagarce_scene_le{% endtrans %}</span>
  92.                                         <span class="tc-textwrap-date">{{ value.dateshours.date }}</span>
  93.                                         <p style="display:inline-block;width:100%;">
  94.                                             <span><a href="/contacts/{{ value.url_clean }}/" class="popup tc-textwrap-lieuville" title="Informations sur ce contact (nouvelle fenêtre)">{{ value.organisation }}</a></span>
  95.                                             <span>- {{ value.city }} {% if country is defined and country %}{{ value.country }}{% endif %}</span>
  96.                                         </p>
  97.                                     </div>
  98.                                 {% endif %}
  99.                                 </div>
  100.                             </div>
  101.                             {% endfor %}
  102.                             <div class="tc-block-footer">
  103.                                 <p class="tc-center"><a href="{{ thnet }}/spectacles/{{ url_clean }}/lesdates">Voir le calendrier complet</a> |  <a href="/ajoutdate/dates/idspectacle/{{ data_spectacles.idspectacle }}">Ajouter des dates</a></p>
  104.                                 <p class="tc-center">Informations issues de l'<a href="{{ thnet }}/site/opendata">open data</a> de <a href="{{ thnet }}"><span class="tc-icon-pictotc tc-color-red"></span> Théâtre-contemporain.net</a>.</p>
  105.                             </div>
  106.                         </div>
  107.                     </div>
  108.                 {% endif %}
  109.             {% else %}
  110.             <div class="tc-block tc-tablet-1_2 tc-phone-1_1">
  111.                 <div class=" tc-border-neutral">
  112.                     <div class="tc-block-header  tc-bg-extralight-gray">
  113.                         <h3><span class="tc-pre-mini-logo"></span> Calendrier - Dernières dates</h3>
  114.                     </div>
  115.                     <div class="tc-block-body">
  116.                         <p class="tc-textwrap-lieuville-calendar">
  117.                             <a href="{{ thnet }}/spectacles/{{ url_clean }}">{{ data_object.title }}</a>
  118.                         </p>
  119.                         <p>Il n'y aucune date programmée pour ce spectacle.</p>
  120.                     </div>
  121.                     <div class="tc-block-footer">
  122.                         <p class="tc-left"><a href="{{ thnet }}/spectacles/{{ url_clean }}/lesdates">Voir le calendrier complet</a></p>
  123.                     </div>
  124.                 </div>
  125.             </div>
  126.             {% endif %}
  127.         </div>
  128.     </section>
  129. </div>
  130. {% endblock %}