{% extends "layout/default.html.twig" %}
{% block content %}
<main id="main-content" role="main" class="{{ not editmode ? 'main-content' }} content-block js-content-visibility content-visibility--auto">
{{ include('includes/heros/hero-anchor-nav.html.twig') }}
{% if editmode or not pimcore_wysiwyg('introLocation').isEmpty() %}
<section class="wysiwyg-area container-narrow content-block {{ className|default('') }}">
<div class="wysiwyg-area__intro wysiwyg">
{{ pimcore_wysiwyg('introLocation')|raw }}
</div>
</section>
{% endif %}
<section class="container content-block">
{{ include('includes/title-blocks/title-block.html.twig', {suffix: 'location', titleStyle: 'h1'}) }}
<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">
<div aria-live="polite">
<div class="js-ajax-form-map-google__notifications mb-3" hidden></div>
<div class="js-ajax-form-map-google__error-area mb-3" hidden>
<button class="js-ajax-form-map-google__retry btn btn-info ml-2">{{ 'global.Retry'|trans }}</button>
</div>
<form action="" data-action="{{ document.fullpath }}?ajax=1" class="js-ajax-form__form mb-3">
<ul class="list-inline d-flex justify-content-center flex-wrap mb-md-5 mb-3 form-tab-radio-list">
<li class="list-inline-item">
{{ include('includes/form_elements/radio.html.twig', {
label: "global.resorts.Alle"|trans,
id: "all",
name: "resort",
value: "all",
isTabRadio: true,
inputAttributes: {
checked: true
},
}, with_context = false) }}
</li>
{% for resortKey in usedResorts %}
{% set inputAttributes = [] %}
{% if (document.property('resort') == resortKey and not app.request.get('resort')) or (app.request.get('resort') == resortKey) %}
{% set inputAttributes = {
checked: true
} %}
{% endif %}
<li class="list-inline-item">
{{ include('includes/form_elements/radio.html.twig', {
label: ('global.resort.' ~ resortKey)|trans,
id: resortKey,
name: "resort",
value: resortKey,
isTabRadio: true,
inputAttributes: inputAttributes
}, with_context = false) }}
</li>
{% endfor %}
</ul>
</form>
<div class="js-ajax-form__notifications" hidden></div>
{{ include('includes/overlays/loading-overlay.html.twig', {
className: 'js-ajax-form__loading',
hidden: true
}, with_context = false) }}
<div class="js-ajax-form__result">
{{ include('location/includes/location-content.html.twig') }}
</div>
</div>
</div>
</section>
{{ include('includes/areablock.html.twig') }}
</main>
{% endblock %}