{% if event.characteristic %} <div class="view-info"> <h3>{{ 'app.planning.view.type' | trans }} :</h3> {% if event.characteristic is not null and ( (event.characteristic.cmsDescription is not null and event.characteristic.cmsDescription.content is not null) or (event.characteristic.cmsOrganisation is not null and event.characteristic.cmsOrganisation.content is not null) ) %} <a href="{{ path(type ~ '_characteristic_view', {'slug' : event.characteristic.baseInformation.slug, 'id' : event.characteristic.id }) }}"> {% endif %} {{ event.characteristic.baseInformation.name }} {% if event.characteristic is not null and ( (event.characteristic.cmsDescription is not null and event.characteristic.cmsDescription.content is not null) or (event.characteristic.cmsOrganisation is not null and event.characteristic.cmsOrganisation.content is not null) ) %} </a> {% endif %} </div>{% endif %}{% if event.eventDate or event.eventEndDate %} <div class="view-info"> <div class="grid-x align-middle"> <div class="cell smedium-auto"> <h3>{{ 'app.planning.view.date' | trans }} :</h3> {% if event.eventDate %} {{ event.eventDate | format_datetime(pattern='EEEE d/M/Y HH:mm', locale=app.request.locale) |capitalize }} {% endif %} {% if event.eventEndDate %} - {{ 'app.planning.view.end' | trans }} : {{ event.eventEndDate | format_datetime(pattern='EEEE d/M/Y HH:mm', locale=app.request.locale) |capitalize }} {% endif %} </div> <div class="cell smedium-shrink"> <div class="button-dropdown"> <button class="button" type="button" data-toggle="calendar-dropdown-{{event.eventDate | date('Ymd')}}"> Ajouter au calendrier <i class="icon icon-calendar"></i> </button> <div class="dropdown-pane" id="calendar-dropdown-{{event.eventDate | date('Ymd')}}" data-dropdown data-close-on-click="true"> <ul> <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> <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> <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> <li><a target="_blank" rel="nofollow"href="{{ path('calendar_export', {'fileName': event.baseInformation.slug, 'calendar' : calendar}) }}">Autres</a></li> </ul> </div> </div> </div> </div> </div>{% endif %}{% if event.brandGuests is defined and event.brandGuests | length %} <div class="view-info"> <h3>{{ 'app.planning.view.guest' | trans }} :</h3> {% for brandGuest in event.brandGuests %} {{ brandGuest.baseInformation.name }} {% if not loop.last %}, {% endif %} {% endfor %} </div>{% endif %}{% if event.auditorium is defined and event.auditorium %} <div class="view-info"> <div class="grid-x align-middle"> <div class="cell smedium-auto"> <h3>{{ 'app.planning.view.location' | trans }} :</h3> {% if event.characteristic is not null and ( (event.characteristic.cmsDescription is not null and event.characteristic.cmsDescription.content is not null) or (event.characteristic.cmsOrganisation is not null and event.characteristic.cmsOrganisation.content is not null) ) %} <a href="{{ path('auditorium_characteristic_view', {'slug' : event.auditorium.baseInformation.slug, 'id' : event.auditorium.id }) }}"> {% endif %} {{ event.auditorium.baseInformation.name }} {% if event.characteristic is not null and ( (event.characteristic.cmsDescription is not null and event.characteristic.cmsDescription.content is not null) or (event.characteristic.cmsOrganisation is not null and event.characteristic.cmsOrganisation.content is not null) ) %} </a> {% endif %} : {{ event.auditorium.address }} {% if event.auditorium.gauge %} - {{ 'app.planning.view.gauge' | trans }} : {{ event.auditorium.gauge }} {% endif %} </div> <div class="cell smedium-shrink"> <div class="button-dropdown"> <button class="button" type="button" data-toggle="map-dropdown"> Consulter l'itinéraire <i class="icon icon-map"></i> </button> <div class="dropdown-pane" id="map-dropdown" data-dropdown data-close-on-click="true"> <ul> <li> <a target="_blank" href="https://www.google.com/maps/search/?api=1&query={{ event.auditorium.address|url_encode }}"> Google Maps </a> </li> <li> <a target="_blank" href="https://duckduckgo.com/?t=hy&va=g&ia=web&iaxm=maps&q={{ event.auditorium.address|url_encode }}"> DuckDuckGo Maps </a> </li> {% if event.auditorium.address.latitude and event.auditorium.address.longitude %} {% set coordonate = event.auditorium.address.latitude ~ ';' ~ event.auditorium.address.longitude %} {% if event.auditorium.address.streetNumber %} {% set coordonate = coordonate ~ ':' ~ event.auditorium.address.streetNumber %} {% endif %} <li> <a target="_blank" href="https://www.qwant.com/maps/place/addr:{{ coordonate }}@{{ event.auditorium.address|url_encode }}"> Qwant Maps </a> </li> {% endif %} </ul> </div> </div> </div> </div> </div>{% elseif event.brandGuests is defined and event.brandGuests | length %} {% set brandGuest = event.brandGuests.first %} {% if brandGuest.address is defined and brandGuest.address %} <div class="view-info"> <h3>{{ 'app.planning.view.location' | trans }}</h3> : {{ brandGuest.address }} </div> {% endif %}{% endif %}