{#{% if lieu | lieuLibelle == 'DEFAULT' %} {% set openOption = '' %} {% set openShow = '' %} {% else %} {% set openOption = 'collapsed' %} {% set openShow = 'show' %}{% endif %}#}<div class="d-flex flex-wrap mt-3 mb-3 p-3 geoloc"> <div class="col-12 col-md-4 pb-2 pb-md-0 pe-md-2"> <select class="form-select" id="searchSelectRegion" onchange="location = this.value;"> <option value=""> {% if lieu | lieuLibelle == 'DEFAULT' %} Régions {% else %} {{ lieu | lieuRegion | lieuLibelle | default('Régions') }} {% endif %} </option> {% for region in regions %} {% if region | lieuLibelle != 'DEFAULT' and region.regionAdm is not null %} {% if currentRoute == 'annuaire_liste_par_onglet_sup_localisation' %} <option value="{{ path( 'annuaire_liste_par_onglet_sup_localisation', {'niveauOnglet': niveauOnglet, 'sousTypeOnglet': sousTypeOnglet, 'localisation': region.slug} ) }}"> {% else %} <option value="{{ currentURL }}/{{ region.slug }}{{ getQueryStringSafe }}"> {% endif %} {{ region | lieuLibelle }} </option> {% endif %} {% endfor %} </select> </div> <div class="col-12 col-md-4 pb-2 pb-md-0 pe-md-2 ps-md-2"> {% if departements %} <select class="form-select" id="searchSelectDepartement" onchange="location = this.value;"> <option value=""> {% if lieu.slug == "enseignement-francais" or lieu.slug == "enseignement-a-letranger" %} Pays {% else %} {{ lieu | lieuDepartement | lieuLibelle | default('Départements') }} {% endif %} </option> {% for departement in departements %} <option value="{{ currentURL }}/{{ departement.slug }}{{ getQueryStringSafe }}"> {{ departement | lieuLibelle }} </option> {% endfor %} </select> {% else %} <select class="form-select d-none d-md-block" id="searchSelectDepartement" disabled> <option value=""> Départements </option> </select> {% endif %} </div> <div class="col-12 col-md-4 ps-md-2"> {% if villes %} <select class="form-select" id="searchSelectVille" onchange="location = this.value;"> <option value="">{{ lieu | lieuVille | lieuLibelle | default('Villes') }} ({{villes | length}})</option> {% for ville in villes %} <option value="{{ currentURL }}/{{ ville.slug }}{{ getQueryStringSafe }}" {% if loop.index > 80 %}rel="nofollow"{% endif %}> {{ ville | lieuLibelle }} </option> {% endfor %} </select> {% else %} <select class="form-select d-none d-md-block" id="searchSelectVille" disabled> <option value="">Villes</option> </select> {% endif %} </div></div>{#<div class="search-mobile {{ openOption }}" data-bs-toggle="collapse" data-bs-target="#searchOptions"><p>Filtres</p></div><div class="search-options collapse {{ openShow }}" id="searchOptions">{% if app.request.attributes.get('_route') == "annuaire_liste" or app.request.attributes.get('_route') == "annuaire_quoi" %} <div class="localisation"> <h2>Localisations</h2> <ul class="navbar region"> <li class="dropdown"> <a id="searchDropdownRegion" class="title" href="javascript:void(0)" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> {% if lieu | lieuLibelle == 'DEFAULT' %} Régions {% else %} {{ lieu | lieuRegion | lieuLibelle | default('Régions') }} {% endif %} </a> <ul class="dropdown-menu show" aria-labelledby="searchDropdownRegion" #}{#data-simplebar="init"#}{#> {% for region in regions %} {% if region | lieuLibelle != 'DEFAULT' and region.regionAdm is not null %} <li> <a href="{{ pathBuilder.buildAnnuaire(quoi, region) }}">{{ region | lieuLibelle }}</a> </li> {% endif %} {% endfor %} </ul> </li> </ul> <ul class="navbar"> <li class="dropdown"> <a id="searchDropdownDepartement" class="title" href="javascript:void(0)" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> {{ lieu | lieuDepartement | lieuLibelle | default('Départements') }} </a> <ul class="dropdown-menu show" aria-labelledby="searchDropdownDepartement"> {% for departement in departements %} <li> <a href="{{ pathBuilder.buildAnnuaire(quoi, departement) }}">{{ departement | lieuLibelle }}</a> </li> {% endfor %} </ul> </li> </ul> <ul class="navbar ville"> <li class="dropdown"> <a id="searchDropdownVille" class="title" href="javascript:void(0)" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> {{ lieu | lieuVille | lieuLibelle | default('Villes') }} </a> <ul class="dropdown-menu show" id="dropdown-menu-villes" aria-labelledby="searchDropdownVille"> <li class="search-in-list"><input id="villeListInput" type="text" placeholder="Rechercher une ville ..." autofocus="autofocus"></li> {% for ville in villes %} <li><a href="{{ pathBuilder.buildAnnuaire(quoi, ville) }}">{{ ville | lieuLibelle }}</a></li> {% endfor %} </ul> </li> </ul> </div>{% else %}{% endif %}</div>#}{# <div class="search-mobile search-mobile-bg-{{quoi.slug}}"><p>Filtres</p></div> #}