<div id="formResearchNav" class="d-flex justify-content-center">
<form action="{{ path('results') }}" class="col-lg-8 form-search-filter" style="display: flex; align-items: center;">
<div class="container-form-search" style="display: flex;flex-direction: column;justify-content: center; width: 71.666vw;position:relative">
<div class="selectors" style="display: flex; align-items: center; width: auto;justify-content: space-between;z-index:9;">
<div id="transaction-drop" class="dropdown">
<div class="undroped">
<p class="undroped-header">Type de transaction</p>
<p name="transaction-type" class="undroped-subheader {% if app.session.get('filter')['transaction-type'] is defined %}selected{% endif %}">
{% if app.session.get('filter') and app.session.get('filter')['transaction-type'] == 'Vente' or (app.request.attributes.get('_route_params')['keyword'] is defined and app.request.attributes.get('_route_params')['keyword'] == 'vente') %}
Achat
{% elseif app.session.get('filter') and app.session.get('filter')['transaction-type'] == 'Location' or (app.request.attributes.get('_route_params')['keyword'] is defined and app.request.attributes.get('_route_params')['keyword'] == 'location') %}
Location
{% else %}
Tous
{% endif %}
</p>
<input type="hidden"
{% if app.session.get('filter') and app.session.get('filter')['transaction-type'] == 'Vente' or (app.request.attributes.get('_route_params')['keyword'] is defined and app.request.attributes.get('_route_params')['keyword'] == 'vente') %}
value="Vente"
{% elseif app.session.get('filter') and app.session.get('filter')['transaction-type'] == 'Location' or (app.request.attributes.get('_route_params')['keyword'] is defined and app.request.attributes.get('_route_params')['keyword'] == 'location') %}
value="Location"
{% endif %}
value=""
class="input-subheader" name="transaction-type">
</div>
<div class="droped">
<div class="dropdown-header">Type de transaction</div>
<ul id="transaction-li" class="items">
<li class="item" data-value="">Tous</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['transaction-type'] == 'Vente' or (app.request.attributes.get('_route_params')['keyword'] is defined and app.request.attributes.get('_route_params')['keyword'] == 'vente') %}selected{% endif %}" data-value ="Vente">Achat</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['transaction-type'] == 'Location' or (app.request.attributes.get('_route_params')['keyword'] is defined and app.request.attributes.get('_route_params')['keyword'] == 'location') %}selected{% endif %}" data-value ="Location">Location</li>
{#
<li class="item" data-value ="Location saisonnière">Location saisonniere</li>
<li class="item" data-value ="Programme">Programme</li>
#}
{# <li class="item" data-value ="Viager">Viager</li>#}
{# <li class="item" data-value ="Enchere">Enchère</li>#}
</ul>
</div>
</div>
<div id="property-drop" class="dropdown">
<div class="undroped">
<p class="undroped-header">Type de biens</p>
<p name="property-type" class="undroped-subheader {% if app.session.get('filter')['property-type'] is defined %}selected{% endif %}">
{% if app.session.get('filter') is defined and app.session.get('filter')['property-type'] is defined and app.session.get('filter')['property-type'] != '' %}
{{ app.session.get('filter')['property-type'] }}
{% else %}
Tous
{% endif %}
</p>
<input type="hidden" value="{% if app.session.get('filter')['property-type'] is defined and app.session.get('filter')['property-type'] %}{{ app.session.get('filter')['property-type'] }}{% endif %}" class="input-subheader" name="property-type">
</div>
<div class="droped">
<div class="dropdown-header">Type de biens</div>
<ul id="property-li" class="items">
<li class="item" data-value="">Tous</li>
{% if propertiesApi is defined %}
{% for type in propertiesApi.getTypesProperties() %}
<li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == type %}selected{% endif %}" data-value="{{ type }}">{{ type }}</li>
{% endfor %}
{% endif %}
{#
<li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Appartement' %}selected{% endif %}" data-value="Appartement">Appartement</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Duplex' %}selected{% endif %}" data-value="Duplex">Duplex</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Maison' %}selected{% endif %}" data-value="Maison">Maison</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Bureaux' %}selected{% endif %}" data-value="Bureaux">Bureau</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Commerce' %}selected{% endif %}" data-value="Commerce">Commerce</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Immeuble' %}selected{% endif %}" data-value="Immeuble">Immeuble</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Garage / Parking' %}selected{% endif %}" data-value="Garage / Parking">Garage / Parking</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Cave / Box' %}selected{% endif %}" data-value="Cave / Box">Cave / Box</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Terrain' %}selected{% endif %}" data-value="Terrain">Terrain</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Penthouse' %}selected{% endif %}" data-value="Penthouse">Penthouse</li>
#}
</ul>
</div>
</div>
<div id="location-drop" class="dropdown">
<div class="undroped">
<p class="undroped-header">Localisation</p>
<p class="undroped-subheader {% if app.session.get('filter')['location'] is defined %}selected{% endif %}">
{% if app.session.get('filter') and app.session.get('filter')['location'] %}
{{ app.session.get('filter')['location'] }}
{% else %}
Choisissez une commune
{% endif %}
</p>
<input type="hidden" value="{% if app.session.get('filter')['location'] is defined and app.session.get('filter')['location'] %}{{ app.session.get('filter')['location'] }}{% endif %}" class="input-subheader" name="location">
</div>
<div class="droped">
<div class="dropdown-header">Localisation</div>
<ul id="location-li" class="items">
<li class="item" data-value ="">Tous</li>
{# <li class="item" data-value ="Appartement">Luxembourg-Ville</li>#}
{# <li class="item" data-value ="Bureaux">Leudelange</li>#}
{# <li class="item" data-value ="Maison">Esch-Sur-Alzette</li>#}
</ul>
</div>
</div>
<div class="div-form">
<button style="background-color: transparent;border-color: transparent;" id="submit-search" type="submit">
<svg class="search-button" xmlns="http://www.w3.org/2000/svg" width="55.982" height="90.97" viewBox="0 0 55.982 90.97">
<g id="Groupe_3817" data-name="Groupe 3817" transform="translate(-1528.861 -105)">
<path id="Tracé_95" data-name="Tracé 95" d="M729.651,232.441H673.669v90.97l55.982-11.894Z" transform="translate(855.192 -127.441)" fill="#f6a400"/>
<g id="Groupe_3794" data-name="Groupe 3794" transform="translate(1545.335 126.696)">
<g id="np_search_1868241_000000">
<path id="Tracé_92" data-name="Tracé 92" d="M8.287,17.368A8.662,8.662,0,1,1,14.4,14.813a8.679,8.679,0,0,1-6.109,2.555Zm0-15.055a6.36,6.36,0,1,0,4.477,1.881A6.377,6.377,0,0,0,8.287,2.313Z" transform="translate(0.441 -0.012)" fill="#fff"/>
<path id="Tracé_93" data-name="Tracé 93" d="M57.82,59.567l1.626-1.633L67.4,65.852l-1.626,1.633Z" transform="translate(-44.591 -44.782)" fill="#fff"/>
</g>
</g>
</g>
</svg>
</button>
</div>
<div>
<button id="search-detail" class="btn btn-primary child search">RECHERCHE AVANCÉE</button>
<button class="btn btn-primary" id="send" type="submit" style="display: none">Envoyer</button>
</div>
</div>
<div id="sub-search-div" class="sub-search-div" style="display: none">
<div class="col-lg-3 div-form">
<input class="sub-search-input" name="budget" value="{% if app.session.get('filter') %}{{ app.session.get('filter')['budget'] }}{% endif %}" id="budget" type="text" placeholder="Budget max.">
</div>
<div id="rooms-drop" class="dropdown">
<div class="undroped">
<p class="undroped-header transparent-font">{% if app.session.get('filter') and app.session.get('filter')['rooms'] %}{{ app.session.get('filter')['rooms'] }}{% else %}Nombre de chambres{% endif %}</p>
<p class="undroped-subheader good-place"></p>
<input type="hidden" class="input-subheader" name="rooms">
</div>
<div class="droped">
<div class="dropdown-header">Nombre de chambres</div>
<ul id="rooms-li" class="items">
<li class="item" data-value="">Indifférent</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['rooms'] == 1 %}selected{% endif %}" data-value ="1">1</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['rooms'] == 2 %}selected{% endif %}" data-value ="2">2</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['rooms'] == 3 %}selected{% endif %}" data-value ="3">3</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['rooms'] == 4 %}selected{% endif %}" data-value ="4">4</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['rooms'] == 5 %}selected{% endif %}" data-value ="5">5</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['rooms'] == 6 %}selected{% endif %}" data-value ="6">6</li>
</ul>
</div>
</div>
<div id="area-drop" class="dropdown">
<div class="undroped">
<p class="undroped-header transparent-font">
{% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined %}
{% if app.session.get('filter')['area-minimum'] == '' %}
Indifférent
{% else %}
{{ app.session.get('filter')['area-minimum'] }}
{% endif %}
{% else %}
Surface minimum
{% endif %}
</p>
<p class="undroped-subheader good-place"></p>
<input type="hidden" class="input-subheader" name="area-minimum">
</div>
<div class="droped">
<div class="dropdown-header">Surface minimum</div>
<ul id="area-li" class="items">
<li class="item {% if app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == '' %}selected{% endif %}" data-value="">Indifférent</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 20 %}selected{% endif %}" data-value ="20">20 m²</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 30 %}selected{% endif %}" data-value ="30">30 m²</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 40 %}selected{% endif %}" data-value ="40">40 m²</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 50 %}selected{% endif %}" data-value ="50">50 m²</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 60 %}selected{% endif %}" data-value ="60">60 m²</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 70 %}selected{% endif %}" data-value ="70">70 m²</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 80 %}selected{% endif %}" data-value ="80">80 m²</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 90 %}selected{% endif %}" data-value ="90">90 m²</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 100 %}selected{% endif %}" data-value ="100">100 m²</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 110 %}selected{% endif %}" data-value ="110">110 m²</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 120 %}selected{% endif %}" data-value ="120">120 m²</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 130 %}selected{% endif %}" data-value ="130">130 m²</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 140 %}selected{% endif %}" data-value ="140">140 m²</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 150 %}selected{% endif %}" data-value ="150">150 m²</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 160 %}selected{% endif %}" data-value ="160">160 m²</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 170 %}selected{% endif %}" data-value ="170">170 m²</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 180 %}selected{% endif %}" data-value ="180">180 m²</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 190 %}selected{% endif %}" data-value ="190">190 m²</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 200 %}selected{% endif %}" data-value ="200">200 m²</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 250 %}selected{% endif %}" data-value ="250">250 m²</li>
<li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 300 %}selected{% endif %}" data-value ="300">300 m²</li>
</ul>
</div>
</div>
{#
<div class="col-lg-3 div-form">
<input class="sub-search-input" id="area-minimum" value="{% if app.session.get('filter') %}{{ app.session.get('filter')['area-minimum'] }}{% endif %}" name="area-minimum" type="text" placeholder="Surface minimum.">
</div>
#}
</div>
</div>
</form>
</div>