templates/front/appointment/garages.html.twig line 1

Open in your IDE?
  1. {% include 'olivier/elements/timeline.html.twig' %}
  2. <section class="container form location timeline">
  3.     <h3 class="category">{{ 'login.title.take_appointement'|trans }}</h3>
  4.     <h1 class="title"> {{ 'appointment.location.title'|trans }}</h1>
  5.     <div class="accordion-block location input_group">
  6.         <ul class="accordion-list">
  7.             {% for key, garage in garages %}
  8.                 {% set selected = '' %}
  9.                 {% if current|default and current.id == garage.id %}
  10.                     {% set selected = 'selected' %}
  11.                 {% endif %}
  12.                 <li class="accordion-item modify-block" data-id="{{ garage.id }}">
  13.                     <div class="item-header {{ selected }}"
  14.                          data-id="{{ garage.id }}">
  15.                         <span class="name">{{ garage.name }}</span>
  16.                     </div>
  17.                     <div class="accordion-answer" style="display: none;">
  18.                         <div class="cell">
  19.                             <span class="label">{{ garage.address.door }} {{ garage.address.street }}</span>
  20.                             <span class="label">{{ garage.address.postalCode ~ ' ' ~ garage.address.city }}</span>
  21.                             <span class="label">{{ garage.address.country }}</span>
  22.                         </div>
  23.                         {#                        <div class="cell"> #}
  24.                         {#                            <span class="label">098 76 54 32</span> #}
  25.                         {#                            <span class="label">leudelange@carfit.lu</span> #}
  26.                         {#                            <span class="label">Du lundi au samedi de 7h à 18h</span> #}
  27.                         {#                        </div> #}
  28.                     </div>
  29.                 </li>
  30.             {% endfor %}
  31.         </ul>
  32.     </div>
  33.     <div class="row">
  34.         {% set btndisabled = 'disabled' %}
  35.         {% if current|default %}
  36.             {% set btndisabled = '' %}
  37.         {% endif %}
  38.         {% include 'olivier/elements/form_button.html.twig' with {label: 'form.continue'|trans, class: 'btn-modify ' ~ btndisabled, id: 'location-save'} %}
  39.     </div>
  40. </section>
  41. <section class="container sider form location">
  42.     <div id="map" data-content="{{ garages|json_encode() }}"></div>
  43.     <script async src="https://maps.googleapis.com/maps/api/js?key={{ map_key }}&callback=initMap"></script>
  44. </section>