templates/_navSearch.html.twig line 1

Open in your IDE?
  1. <div id="formResearchNav" class="d-flex justify-content-center">
  2.     <form action="{{ path('results') }}" class="col-lg-8 form-search-filter" style="display: flex; align-items: center;">
  3.         <div class="container-form-search" style="display: flex;flex-direction: column;justify-content: center; width: 71.666vw;position:relative">
  4.             <div class="selectors" style="display: flex; align-items: center; width: auto;justify-content: space-between;z-index:9;">
  5.                 <div id="transaction-drop" class="dropdown">
  6.                     <div class="undroped">
  7.                         <p class="undroped-header">Type de transaction</p>
  8.                         <p name="transaction-type" class="undroped-subheader {% if app.session.get('filter')['transaction-type'] is defined %}selected{% endif %}">
  9.                             {% 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') %}
  10.                                 Achat
  11.                             {% 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') %}
  12.                                 Location
  13.                             {% else %}
  14.                                 Tous
  15.                             {% endif %}
  16.                         </p>
  17.                         <input type="hidden"
  18.                                {% 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') %}
  19.                                    value="Vente"
  20.                                 {% 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') %}
  21.                                     value="Location"
  22.                                {% endif %}
  23.                                value=""
  24.                                class="input-subheader" name="transaction-type">
  25.                     </div>
  26.                     <div class="droped">
  27.                         <div class="dropdown-header">Type de transaction</div>
  28.                         <ul id="transaction-li" class="items">
  29.                             <li class="item" data-value="">Tous</li>
  30.                             <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>
  31.                             <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>
  32.                             {#
  33.                             <li class="item" data-value ="Location saisonnière">Location saisonniere</li>
  34.                             <li class="item" data-value ="Programme">Programme</li>
  35.                             #}
  36.                             {#                                                <li class="item" data-value ="Viager">Viager</li>#}
  37.                             {#                                                <li class="item" data-value ="Enchere">Enchère</li>#}
  38.                         </ul>
  39.                     </div>
  40.                 </div>
  41.                 
  42.                 <div id="property-drop" class="dropdown">
  43.                     <div class="undroped">
  44.                         <p class="undroped-header">Type de biens</p>
  45.                             <p name="property-type" class="undroped-subheader {% if app.session.get('filter')['property-type'] is defined %}selected{% endif %}">
  46.                                 {% if app.session.get('filter') is defined and app.session.get('filter')['property-type'] is defined and app.session.get('filter')['property-type'] != '' %}
  47.                                     {{ app.session.get('filter')['property-type'] }}
  48.                                 {% else %}
  49.                                     Tous
  50.                                 {% endif %}
  51.                             </p>
  52.                         <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">
  53.                     </div>
  54.                     <div class="droped">
  55.                         <div class="dropdown-header">Type de biens</div>
  56.                         <ul id="property-li" class="items">
  57.                             <li class="item" data-value="">Tous</li>
  58.                             {% if propertiesApi is defined %}
  59.                                 {% for type in propertiesApi.getTypesProperties() %}
  60.                                     <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == type %}selected{% endif %}" data-value="{{ type }}">{{ type }}</li>
  61.                                 {% endfor %}
  62.                             {% endif %}
  63.                             {#
  64.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Appartement' %}selected{% endif %}" data-value="Appartement">Appartement</li>
  65.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Duplex' %}selected{% endif %}" data-value="Duplex">Duplex</li>
  66.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Maison' %}selected{% endif %}" data-value="Maison">Maison</li>
  67.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Bureaux' %}selected{% endif %}" data-value="Bureaux">Bureau</li>
  68.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Commerce' %}selected{% endif %}" data-value="Commerce">Commerce</li>
  69.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Immeuble' %}selected{% endif %}" data-value="Immeuble">Immeuble</li>
  70.                             <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>
  71.                             <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>
  72.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Terrain' %}selected{% endif %}" data-value="Terrain">Terrain</li>
  73.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Penthouse' %}selected{% endif %}" data-value="Penthouse">Penthouse</li>
  74.                             #}
  75.                         </ul>
  76.                     </div>
  77.                 </div>
  78.                 <div id="location-drop" class="dropdown">
  79.                     <div class="undroped">
  80.                         <p class="undroped-header">Localisation</p>
  81.                         <p class="undroped-subheader {% if app.session.get('filter')['location'] is defined %}selected{% endif %}">
  82.                             {% if app.session.get('filter') and app.session.get('filter')['location'] %}
  83.                                 {{ app.session.get('filter')['location'] }}
  84.                             {% else %}
  85.                                 Choisissez une commune
  86.                             {% endif %}
  87.                         </p>
  88.                         <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">
  89.                     </div>
  90.                     <div class="droped">
  91.                         <div  class="dropdown-header">Localisation</div>
  92.                         <ul id="location-li" class="items">
  93.                             <li class="item" data-value ="">Tous</li>
  94.                             {#                                                <li class="item" data-value ="Appartement">Luxembourg-Ville</li>#}
  95.                             {#                                                <li class="item" data-value ="Bureaux">Leudelange</li>#}
  96.                             {#                                                <li class="item" data-value ="Maison">Esch-Sur-Alzette</li>#}
  97.                         </ul>
  98.                     </div>
  99.                 </div>
  100.                 <div class="div-form">
  101.                     <button style="background-color: transparent;border-color: transparent;" id="submit-search" type="submit">
  102.                         <svg class="search-button" xmlns="http://www.w3.org/2000/svg" width="55.982" height="90.97" viewBox="0 0 55.982 90.97">
  103.                             <g id="Groupe_3817" data-name="Groupe 3817" transform="translate(-1528.861 -105)">
  104.                                 <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"/>
  105.                                 <g id="Groupe_3794" data-name="Groupe 3794" transform="translate(1545.335 126.696)">
  106.                                     <g id="np_search_1868241_000000">
  107.                                         <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"/>
  108.                                         <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"/>
  109.                                     </g>
  110.                                 </g>
  111.                             </g>
  112.                         </svg>
  113.                     </button>
  114.                 </div>
  115.                 
  116.                 <div>
  117.                     <button  id="search-detail" class="btn btn-primary child search">RECHERCHE AVANCÉE</button>
  118.                     <button class="btn btn-primary" id="send" type="submit" style="display: none">Envoyer</button>
  119.                 </div>
  120.             </div>
  121.             <div id="sub-search-div" class="sub-search-div" style="display: none">
  122.                 <div class="col-lg-3 div-form">
  123.                     <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.">
  124.                 </div>
  125.                 <div id="rooms-drop" class="dropdown">
  126.                     <div class="undroped">
  127.                         <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>
  128.                         <p class="undroped-subheader good-place"></p>
  129.                         <input type="hidden" class="input-subheader" name="rooms">
  130.                     </div>
  131.                     <div class="droped">
  132.                         <div class="dropdown-header">Nombre de chambres</div>
  133.                         <ul id="rooms-li" class="items">
  134.                             <li class="item" data-value="">Indifférent</li>
  135.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['rooms'] == 1 %}selected{% endif %}" data-value ="1">1</li>
  136.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['rooms'] == 2 %}selected{% endif %}" data-value ="2">2</li>
  137.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['rooms'] == 3 %}selected{% endif %}" data-value ="3">3</li>
  138.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['rooms'] == 4 %}selected{% endif %}" data-value ="4">4</li>
  139.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['rooms'] == 5 %}selected{% endif %}" data-value ="5">5</li>
  140.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['rooms'] == 6 %}selected{% endif %}" data-value ="6">6</li>
  141.                         </ul>
  142.                     </div>
  143.                 </div>
  144.                 <div id="area-drop" class="dropdown">
  145.                     <div class="undroped">
  146.                         <p class="undroped-header transparent-font">
  147.                             {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined %}
  148.                                 {% if app.session.get('filter')['area-minimum'] == '' %}
  149.                                     Indifférent
  150.                                 {% else %}
  151.                                     {{ app.session.get('filter')['area-minimum'] }}
  152.                                 {% endif %}
  153.                             {% else %}
  154.                                 Surface minimum
  155.                             {% endif %}
  156.                         </p>
  157.                         <p class="undroped-subheader good-place"></p>
  158.                         <input type="hidden" class="input-subheader" name="area-minimum">
  159.                     </div>
  160.                     <div class="droped">
  161.                         <div class="dropdown-header">Surface minimum</div>
  162.                         <ul id="area-li" class="items">
  163.                             <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>
  164.                             <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>
  165.                             <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>
  166.                             <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>
  167.                             <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>
  168.                             <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>
  169.                             <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>
  170.                             <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>
  171.                             <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>
  172.                             <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>
  173.                             <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>
  174.                             <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>
  175.                             <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>
  176.                             <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>
  177.                             <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>
  178.                             <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>
  179.                             <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>
  180.                             <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>
  181.                             <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>
  182.                             <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>
  183.                             <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>
  184.                             <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>
  185.                         </ul>
  186.                     </div>
  187.                 </div>
  188.                 {#
  189.                 <div class="col-lg-3 div-form">
  190.                     <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.">
  191.                 </div>
  192.                 #}
  193.             </div>
  194.         </div>
  195.     </form>
  196. </div>