templates/location/overview.html.twig line 1

Open in your IDE?
  1. {% extends "layout/default.html.twig" %}
  2. {% block content %}
  3.     <main id="main-content" role="main" class="{{ not editmode ? 'main-content' }} content-block js-content-visibility content-visibility--auto">
  4.         {{ include('includes/heros/hero-anchor-nav.html.twig') }}
  5.         {% if editmode or not pimcore_wysiwyg('introLocation').isEmpty() %}
  6.         <section class="wysiwyg-area container-narrow content-block {{ className|default('') }}">
  7.             <div class="wysiwyg-area__intro wysiwyg">
  8.                 {{ pimcore_wysiwyg('introLocation')|raw }}
  9.             </div>
  10.         </section>
  11.         {% endif %}
  12.         <section class="container content-block">
  13.             {{ include('includes/title-blocks/title-block.html.twig', {suffix: 'location', titleStyle: 'h1'}) }}
  14.             <div class="js-ajax-form position-relative mt-md-5 pt-md-3" id="location-overview" data-ajax-form-submit-on-change="true" data-ajax-form-add-url-params="true">
  15.                 <div aria-live="polite">
  16.                     <div class="js-ajax-form-map-google__notifications mb-3" hidden></div>
  17.                     <div class="js-ajax-form-map-google__error-area mb-3" hidden>
  18.                         <button class="js-ajax-form-map-google__retry btn btn-info ml-2">{{ 'global.Retry'|trans }}</button>
  19.                     </div>
  20.                     <form action="" data-action="{{ document.fullpath }}?ajax=1" class="js-ajax-form__form mb-3">
  21.                         <ul class="list-inline d-flex justify-content-center flex-wrap mb-md-5 mb-3 form-tab-radio-list">
  22.                             <li class="list-inline-item">
  23.                                 {{ include('includes/form_elements/radio.html.twig', {
  24.                                     label: "global.resorts.Alle"|trans,
  25.                                     id: "all",
  26.                                     name: "resort",
  27.                                     value: "all",
  28.                                     isTabRadio: true,
  29.                                     inputAttributes: {
  30.                                         checked: true
  31.                                     },
  32.                                 }, with_context = false) }}
  33.                             </li>
  34.                             {% for resortKey in usedResorts %}
  35.                                 {% set inputAttributes = [] %}
  36.                                 {% if (document.property('resort') == resortKey and not app.request.get('resort')) or (app.request.get('resort') == resortKey) %}
  37.                                     {% set inputAttributes = {
  38.                                         checked: true
  39.                                     } %}
  40.                                 {% endif %}
  41.                                 <li class="list-inline-item">
  42.                                     {{ include('includes/form_elements/radio.html.twig', {
  43.                                         label: ('global.resort.' ~ resortKey)|trans,
  44.                                         id: resortKey,
  45.                                         name: "resort",
  46.                                         value: resortKey,
  47.                                         isTabRadio: true,
  48.                                         inputAttributes: inputAttributes
  49.                                     }, with_context = false) }}
  50.                                 </li>
  51.                             {% endfor %}
  52.                         </ul>
  53.                     </form>
  54.                     <div class="js-ajax-form__notifications" hidden></div>
  55.                     {{ include('includes/overlays/loading-overlay.html.twig', {
  56.                         className: 'js-ajax-form__loading',
  57.                         hidden: true
  58.                     }, with_context = false) }}
  59.                     <div class="js-ajax-form__result">
  60.                         {{ include('location/includes/location-content.html.twig') }}
  61.                     </div>
  62.                 </div>
  63.             </div>
  64.         </section>
  65.         {{ include('includes/areablock.html.twig') }}
  66.     </main>
  67. {% endblock %}