<div class="search-options w-100">
<div class="search-mobile" data-bs-toggle="collapse" data-bs-target="#dropdownFilters"><p>Affiner ma recherche</p></div>
<div id="dropdownFilters" class="collapse {% if type is defined and type == 'aside' %}show {% endif %}">
{% if
app.request.attributes.get('_route') != "video-liste" and
app.request.attributes.get('_route') != "diaporama-liste" and
app.request.attributes.get('_route') != "offre-emploi-root"
%}
<div class="localisation">
<div class="h2-like">Localisation</div>
<ul class="navbar region">
<li class="dropdown">
<a id="searchDropdownRegion" class="title" href="javascript:void(0)" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{% if lieu | lieuLibelle == 'DEFAULT' %}
Régions
{% else %}
{{ lieu | lieuRegion | lieuLibelle | default('Régions') }}
{% endif %}
</a>
<ul class="dropdown-menu" aria-labelledby="searchDropdownRegion">
{% for region in regions %}
{% if region | lieuLibelle != 'DEFAULT' and region.regionAdm is not null and region.slug not in tools.regionsExclues() %}
<li>
<a href="{{ path(app.request.get('_route'), {'lieu': region.slug}) }}">{{ region | lieuLibelle }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
</li>
</ul>
<ul class="navbar {{ departements ? '' : 'empty'}}">
{% if departements %}
<li class="dropdown">
<a id="searchDropdownDepartement" class="title" href="javascript:void(0)" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ lieu | lieuDepartement | lieuLibelle | default('Départements') }}
</a>
<ul class="dropdown-menu" aria-labelledby="searchDropdownDepartement">
{% for departement in departements %}
<li>
<a href="{{ path(app.request.get('_route'), {'lieu': departement.slug}) }}">{{ departement | lieuLibelle }}</a>
</li>
{% endfor %}
</ul>
</li>
{% else %}
{#<li><p class="title">Choisir région</p></li>#}
{% endif %}
</ul>
<ul class="navbar ville {{ villes ? '' : 'empty'}}">
{% if villes %}
<li class="dropdown">
<a id="searchDropdownVille" class="title" href="javascript:void(0)" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ lieu | lieuVille | lieuLibelle | default('Villes') }}
</a>
<ul class="dropdown-menu" id="dropdown-menu-villes" aria-labelledby="searchDropdownVille" data-simplebar="init">
<li class="search-in-list"><input id="villeListInput" type="text" placeholder="Rechercher une ville ..." autofocus="autofocus"></li>
{% for ville in villes %}
<li><a href="{{ path(app.request.get('_route'), {'lieu': ville.slug}) }}" {% if loop.index>80 %}rel=”nofollow”{% endif %} >{{ ville | lieuLibelle }}</a></li>
{% endfor %}
</ul>
</li>
{% else %}
{#<li><p class="title">Choisir département</p></li>#}
{% endif %}
</ul>
</div>
{% endif %}
<form method="GET" id="form-filtre">
<div class="search-categories">
<div class="h2-like">Affiner ma recherche</div>
{#<div class="search-mobile"><p>Affiner ma recherche</p></div>#}
<p class="choice-title opened" data-bs-toggle="collapse" data-bs-target="#dropdownNiveau">Niveau</p>
<ul id="dropdownNiveau" class="collapse show">
<li><input type="checkbox" name="niveau[]" value="ecole" id="ecole" {{'ecole' in niveaux ? 'checked' : ''}}><label for="ecole">Ecole</label></li>
<li><input type="checkbox" name="niveau[]" value="college" id="college" {{'college' in niveaux ? 'checked' : ''}}><label for="college">Collège</label></li>
<li><input type="checkbox" name="niveau[]" value="lycee" id="lycee" {{'lycee' in niveaux ? 'checked' : ''}}><label for="lycee">Lycée</label></li>
<li><input type="checkbox" name="niveau[]" value="professionnel" id="professionnel" {{'professionnel' in niveaux ? 'checked' : ''}}><label for="professionnel">Professionnel</label></li>
<li><input type="checkbox" name="niveau[]" value="superieur" id="superieur" {{'superieur' in niveaux ? 'checked' : ''}}><label for="superieur">Supérieur</label></li>
</ul>
{% if app.request.attributes.get('_route') == "offre-emploi-root" %}
<p class="choice-title opened" data-bs-toggle="collapse" data-bs-target="#dropdownProfil">Poste</p>
<ul class="list collapse show" data-simplebar="init" id="dropdownProfil">
{% for profil in profils_list %}
{% if profil.libelle != "N/A" %}
<li ><input type="checkbox" value="{{profil.id}}" name="profil[]" id="{{profil.id}}"{{ profil.id in profils ? 'checked' : ''}}><label for="{{profil.id}}">{{profil.libelle}}</label></li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</div>
<p id="search"><button type="submit">Appliquer</button></p>
</form>
</div>
</div>
{#<div class="search-mobile"><p>Affiner ma recherche</p></div>#}