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

Open in your IDE?
  1. {% if schedule_detail is defined and schedule_detail %}
  2. <table summary="calendrier des représentations de {{ data_spectacles.title }}" id="table_calendrier">
  3.     <thead>
  4.         <tr>
  5.             <th>Période</th>
  6.             <th>Lieu</th>
  7.             <th>Réservation</th>
  8.         </tr>
  9.     </thead>
  10.     <tbody>
  11.     {% for key,value in schedule_detail %}
  12.     <tr>
  13.         {% if value.dateshours.periode is defined%}
  14.         <td class="dates">
  15.             <div class="ville tc-textwrap-lieuville-calendar" >
  16.                 {% if value.city is defined and value.city %}
  17.                     {{ value.city }}
  18.                 {% endif %}
  19.                 {% if value.country is defined and value.country %}
  20.                     {{ value.country }}
  21.                 {% endif %}
  22.             </div>
  23.             <div class="ldates">
  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.                         <br/>
  33.                         {% if dateinfos.is_cancelled is defined and dateinfos.is_cancelled %}
  34.                             <span class="tc-icon-warning tc-text-label-inline tc-color-spectacles"> représentation(s) annulée(s)</span><br/>
  35.                         {% endif %}
  36.                         <div class="details_action"><a href="javascript:;" id="detailaction_{{ key }}" title="Cliquez pour voir le détail des dates">
  37.                             <span class="tc-icon-plus"></span>{% trans %}detail_dates{% endtrans %}</a>
  38.                         </div>
  39.                     {% endif %}
  40.                 {% endfor %}
  41.             </div>
  42.         </td>
  43.         {% else %}
  44.         <td class="dates">
  45.             <div class="ville tc-textwrap-lieuville-calendar" >
  46.                 {% if value.city is defined and value.city is not empty %}
  47.                     {{ value.city }}
  48.                 {% endif %}
  49.                 {% if country is defined and country %}
  50.                     {{ value.country }}
  51.                 {% endif %}
  52.             </div>
  53.             <div class="ldates tc-textwrap-date">
  54.                 {% trans %}lagarce_scene_le{% endtrans %} {{ value.dateshours.date }}<br>
  55.                 {% if value.dateshours.is_cancelled is defined and value.dateshours.is_cancelled %}
  56.                     <span class="tc-icon-warning tc-text-label-inline tc-color-spectacles">représentation(s) annulée(s)</span>
  57.                 {% else %}
  58.                     {% for key,hour in value.dateshours.hours %}
  59.                         {% if hour.hour is defined and hour.hour %}
  60.                             {{ hour.hour }}
  61.                         {% endif %}
  62.                         {% if hour.note is defined and hour.note %}
  63.                             {{ hour.note }}
  64.                         {% endif %}
  65.                     {% endfor %}
  66.                     <br>
  67.                 {% endif %}
  68. {#                {% for key,hour in value.dateshours.hours %}{{ hour.hour }} {{ hour.note }}{% endfor %}<br>#}
  69.             </div>
  70.         </td>
  71.         {% endif %}
  72.         <td class="lieu">
  73.             {% if value.profilepicture is defined and value.profilepicture %}
  74.             <div class="profilepicture">
  75.                 <a href="/contacts/{{ value.url_clean }}/" class="popup">
  76.                     <img src="{{ value.profilepicture }}" alt="{{ value.organisation }}"/>
  77.                 </a>
  78.             </div>
  79.             {% endif %}
  80.                 <a href="/contacts/{{ value.url_clean }}/" class="popup tc-textwrap-lieuville" title="Informations sur ce contact (nouvelle fenêtre)">{{ value.organisation }}</a><br />
  81.             {% if value.festival is defined and value.festival %}
  82.                 <br /><small>En partenariat avec</small> <a class="popup tc-textwrap-lieuville" href="/contacts/{{ value.festival.url_clean }}/">{{ value.festival.organisation }}</a>
  83.             {% endif %}
  84.         </td>
  85.         <td class="resa">
  86.             {% if value.url_booking is defined and value.url_booking %}
  87.                 <a href="{{ value.url_booking }}" class="tc-btn-simple infos_lieu popup">Réservation en ligne</a><br>            
  88.             {% endif %}
  89.             {% if value.phone2 is defined and value.phone2 %}
  90.                 Tel. {{ value.phone2 }}
  91.             {% elseif value.phone1 is defined and value.phone1 %}
  92.                 <br>Tel. {{ value.phone1 }}
  93.             {% endif %}
  94.         </td>
  95.         <td class="details_action_mobile">
  96.         <div class="details_action"><a href="javascript:;" id="detailaction_{{ key }}" title="Cliquez pour voir le détail des dates">
  97.             <span class="tc-icon-plus"></span>{% trans %}detail_dates{% endtrans %}</a>
  98.         </div>
  99.         </td>
  100.     </tr>
  101.         {% if value.dateshours.periode is defined and value.dateshours.periode %}
  102.         <tr class="detailsdate_hidden datesd" id="detailsdate{{ key }}">
  103.             <td colspan="4">
  104.             {% if viewlist is defined and viewlist %}
  105.                 <ul>
  106.                 {% for date,dateinfos in value.dateshours %}
  107.                     {% if dateinfos.hours is defined and dateinfos.hours %}
  108.                         <li>
  109.                             {% trans %}lagarce_scene_le{% endtrans %} {{ date }}
  110.                             {% if value.dateshours.is_cancelled is defined and value.dateshours.is_cancelled %}
  111.                                 <span class="tc-color-spectacles">représentation(s) annulée(s)</span>
  112.                             {% else %}
  113.                                 {% for key,hour in dateinfos.hours %}
  114.                                     {% if hour.hour is defined and hour.hour %}
  115.                                         {{ hour.hour }}&nbsp;
  116.                                     {% endif %}
  117.                                     {% if hour.note is defined and hour.note %}
  118.                                         {{ hour.note }}
  119.                                     {% endif %}
  120.                                 {% endfor %}
  121.                             {% endif %}
  122.                         </li>
  123.                     {% endif %}
  124.                 {% endfor %}
  125.                 </ul>
  126.             {% elseif value.calendar is defined and value.calendar %}
  127.                 {% for calendar in value.calendar %}
  128.                     {{ calendar|raw }}
  129.                 {% endfor %}
  130.             {% endif %}
  131.             </td>
  132.         </tr>
  133.         {% endif %}
  134.     {% endfor %}
  135.     </tbody>
  136. </table>
  137. {% else %}
  138.     <p><strong>{% trans %}no_date_spectacle{% endtrans %}.</strong>
  139.     {% if ancien is defined and ancien %}<br />
  140.         {% trans %}calendrier_representation_1{% endtrans %} <a href="{{ ancien }}">{% trans %}calendrier_representation_2{% endtrans %}</a>.
  141.     {% endif %}
  142.     </p>
  143. {% endif %}
  144. <script type="text/javascript">
  145.     $(document).ready(function() {         
  146.         $('#table_calendrier .calendar .highlighted, #table_calendrier .calendar .highlighted_passed').qtip({ 
  147.             style: {  name: 'dark'  },
  148.             position: {  corner: {  target: 'topRight', tooltip: 'bottomLeft'  }  }
  149.          });
  150.      });
  151. </script>