templates/Event/Partials/View/summary.html.twig line 1

Open in your IDE?
  1. {% if event.characteristic %}
  2.     <div class="view-info">
  3.         <h3>{{ 'app.planning.view.type' | trans }}
  4.             :</h3>
  5.         {% if
  6.             event.characteristic is not null and (
  7.                     (event.characteristic.cmsDescription is not null and event.characteristic.cmsDescription.content is not null) or
  8.                     (event.characteristic.cmsOrganisation is not null and event.characteristic.cmsOrganisation.content is not null)
  9.             )
  10.         %}
  11.             <a href="{{ path(type ~ '_characteristic_view', {'slug' : event.characteristic.baseInformation.slug, 'id' : event.characteristic.id }) }}">
  12.             {% endif %}
  13.             {{ event.characteristic.baseInformation.name }}
  14.             {% if
  15.                 event.characteristic is not null and (
  16.                     (event.characteristic.cmsDescription is not null and event.characteristic.cmsDescription.content is not null) or
  17.                     (event.characteristic.cmsOrganisation is not null and event.characteristic.cmsOrganisation.content is not null)
  18.                 )
  19.             %}
  20.             </a>
  21.         {% endif %}
  22.     </div>
  23. {% endif %}
  24. {% if event.eventDate or event.eventEndDate %}
  25.     <div class="view-info">
  26.         <div class="grid-x align-middle">
  27.             <div class="cell smedium-auto">
  28.                 <h3>{{ 'app.planning.view.date' | trans }}
  29.                     :</h3>
  30.                 {% if event.eventDate %}
  31.                     {{ event.eventDate | format_datetime(pattern='EEEE d/M/Y HH:mm', locale=app.request.locale) |capitalize }}
  32.                 {% endif %}
  33.                 {% if event.eventEndDate %}
  34.                     -
  35.                     {{ 'app.planning.view.end' | trans }}
  36.                     :
  37.                     {{ event.eventEndDate | format_datetime(pattern='EEEE d/M/Y HH:mm', locale=app.request.locale) |capitalize }}
  38.                 {% endif %}
  39.             </div>
  40.             <div class="cell smedium-shrink">
  41.                 <div class="button-dropdown">
  42.                     <button class="button" type="button" data-toggle="calendar-dropdown-{{event.eventDate | date('Ymd')}}">
  43.                         Ajouter au calendrier
  44.                         <i class="icon icon-calendar"></i>
  45.                     </button>
  46.                     <div class="dropdown-pane" id="calendar-dropdown-{{event.eventDate | date('Ymd')}}" data-dropdown data-close-on-click="true">
  47.                         <ul>
  48.                             <li><a target="_blank" href="https://www.google.com/calendar/render?action=TEMPLATE&text={{ calendar.title | url_encode }}&dates={{ calendar.start }}/{{ calendar.end }}&details={{ calendar.html | url_encode }}&location={{ calendar.location | url_encode }}">Google Calendar</a></li>
  49.                             <li><a target="_blank" href="https://calendar.yahoo.com/?v=60&title={{ calendar.title | url_encode }}&st={{ calendar.start }}&et={{ calendar.end }}&desc={{ calendar.html | url_encode }}&in_loc={{ calendar.location |url_encode }}">Yahoo Calendar</a></li>
  50.                             <li><a target="_blank" href="https://bay02.calendar.live.com/calendar/calendar.aspx?rru=addevent&allday=false&uid=&dtstart={{ calendar.start }}&dtend={{ calendar.end }}&summary={{ calendar.title | url_encode }}&description={{ calendar.html | url_encode }}&location={{ calendar.location |url_encode }}">Outlook calendar</a></li>
  51.                             <li><a target="_blank" rel="nofollow"href="{{ path('calendar_export', {'fileName': event.baseInformation.slug, 'calendar' : calendar}) }}">Autres</a></li>
  52.                         </ul>
  53.                     </div>
  54.                 </div>
  55.             </div>
  56.         </div>
  57.     </div>
  58. {% endif %}
  59. {% if event.brandGuests is defined and event.brandGuests | length %}
  60.     <div class="view-info">
  61.         <h3>{{ 'app.planning.view.guest' | trans }}
  62.             :</h3>
  63.         {% for brandGuest in event.brandGuests %}
  64.             {{ brandGuest.baseInformation.name }}
  65.             {% if not loop.last %},
  66.             {% endif %}
  67.         {% endfor %}
  68.     </div>
  69. {% endif %}
  70. {% if event.auditorium is defined and event.auditorium %}
  71.     <div class="view-info">
  72.         <div class="grid-x align-middle">
  73.             <div class="cell smedium-auto">
  74.                 <h3>{{ 'app.planning.view.location' | trans }}
  75.                     :</h3>
  76.                 {% if
  77.                         event.characteristic is not null and (
  78.                             (event.characteristic.cmsDescription is not null and event.characteristic.cmsDescription.content is not null) or
  79.                             (event.characteristic.cmsOrganisation is not null and event.characteristic.cmsOrganisation.content is not null)
  80.                         )
  81.                 %}
  82.                     <a href="{{ path('auditorium_characteristic_view', {'slug' : event.auditorium.baseInformation.slug, 'id' : event.auditorium.id }) }}">
  83.                     {% endif %}
  84.                     {{ event.auditorium.baseInformation.name }}
  85.                     {% if
  86.                         event.characteristic is not null and (
  87.                             (event.characteristic.cmsDescription is not null and event.characteristic.cmsDescription.content is not null) or
  88.                             (event.characteristic.cmsOrganisation is not null and event.characteristic.cmsOrganisation.content is not null)
  89.                         )
  90.                     %}
  91.                     </a>
  92.                 {% endif %}
  93.                 :
  94.                 {{ event.auditorium.address }}
  95.                 {% if event.auditorium.gauge %}
  96.                     -
  97.                     {{ 'app.planning.view.gauge' | trans }}
  98.                     :
  99.                     {{ event.auditorium.gauge }}
  100.                 {% endif %}
  101.             </div>
  102.             <div class="cell smedium-shrink">
  103.                 <div class="button-dropdown">
  104.                     <button class="button" type="button" data-toggle="map-dropdown">
  105.                         Consulter l'itinĂ©raire
  106.                         <i class="icon icon-map"></i>
  107.                     </button>
  108.                     <div class="dropdown-pane" id="map-dropdown" data-dropdown data-close-on-click="true">
  109.                         <ul>
  110.                             <li>
  111.                                 <a target="_blank" href="https://www.google.com/maps/search/?api=1&query={{ event.auditorium.address|url_encode }}">
  112.                                     Google Maps
  113.                                 </a>
  114.                             </li>
  115.                             <li>
  116.                                 <a target="_blank" href="https://duckduckgo.com/?t=hy&va=g&ia=web&iaxm=maps&q={{ event.auditorium.address|url_encode }}">
  117.                                     DuckDuckGo Maps
  118.                                 </a>
  119.                             </li>
  120.                             {% if event.auditorium.address.latitude and event.auditorium.address.longitude %}
  121.                                 {% set coordonate = event.auditorium.address.latitude ~ ';' ~ event.auditorium.address.longitude %}
  122.                                 {% if event.auditorium.address.streetNumber %}
  123.                                     {% set coordonate = coordonate ~ ':' ~ event.auditorium.address.streetNumber %}
  124.                                 {% endif %}
  125.                                 <li>
  126.                                     <a target="_blank" href="https://www.qwant.com/maps/place/addr:{{ coordonate }}@{{ event.auditorium.address|url_encode }}">
  127.                                         Qwant Maps
  128.                                     </a>
  129.                                 </li>
  130.                             {% endif %}
  131.                         </ul>
  132.                     </div>
  133.                 </div>
  134.             </div>
  135.         </div>
  136.     </div>
  137. {% elseif event.brandGuests is defined and event.brandGuests | length %}
  138.     {% set brandGuest = event.brandGuests.first %}
  139.     {% if brandGuest.address is defined and brandGuest.address %}
  140.         <div class="view-info">
  141.             <h3>{{ 'app.planning.view.location' | trans }}</h3>
  142.             :
  143.             {{ brandGuest.address }}
  144.         </div>
  145.     {% endif %}
  146. {% endif %}