templates/_navSubSearch.html.twig line 1

Open in your IDE?
  1. <div class="modal fade bd-example-modal-lg" id="exampleModal1" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
  2.     <div class="modal-dialog modal-lg">
  3.         <div class="modal-content">
  4.             <div class="col-lg-12">
  5.                 <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" style="font-size:2em;position: absolute;right: 15px;"></button>
  6.                 <div name="form-search-normal-mobile" id="form-search-normal-mobile" class="div-svg-header">
  7.                     <form action="{{ path('results') }}"  style="display: flex; align-items: center; width: 100%">
  8.                         <div class="container-form-mobile" style="display: flex;flex-direction: column;justify-content: center; ">
  9.                             <div class="selectors mobile" style="display: flex; align-items: center; width: auto;">
  10.                                 <div id="transaction-drop" class="dropdown">
  11.                                     <div class="undroped">
  12.                                         <p class="undroped-header">Type de transaction</p>
  13.                                         <p name="transaction-type" class="undroped-subheader">Tous</p>
  14.                                         <input type="hidden" value="" class="input-subheader" name="transaction-type">
  15.                                     </div>
  16.                                     <div class="droped">
  17.                                         <div class="dropdown-header">Type de transaction</div>
  18.                                         <ul id="transaction-li" class="items">
  19.                                             <li class="item {% if app.session.get('filter') and not app.session.get('filter')['transaction-type'] %}selected{% endif %}" data-value="">Tous</li>
  20.                                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['transaction-type'] == 'Vente' %}selected{% endif %}" data-value ="Vente">Achat</li>
  21.                                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['transaction-type'] == 'Location' %}selected{% endif %}" data-value ="Location">Location</li>
  22.                                             {#
  23.                                             <li class="item" data-value ="Viager">Viager</li>
  24.                                             <li class="item" data-value ="Enchere">Enchère</li>
  25.                                             #}
  26.                                         </ul>
  27.                                     </div>
  28.                                 </div>
  29.                                 <div id="property-drop" class="dropdown">
  30.                                     <div class="undroped">
  31.                                         <p class="undroped-header">Type de biens</p>
  32.                                         <p name="property-type" class="undroped-subheader">Appartement, Bureau, ...</p>
  33.                                         <input type="hidden" value="" class="input-subheader" name="property-type">
  34.                                     </div>
  35.                                     {% set propertyTypeSelected = false %}
  36.                                     {% if propertiesApi is defined %}
  37.                                     {% for type in propertiesApi.getTypesProperties() %}
  38.                                         {% if app.session.get('filter') and app.session.get('filter')['property-type'] == type %}
  39.                                             {% set propertyTypeSelected = type %}
  40.                                         {% endif %}
  41.                                     {% endfor %}
  42.                                     {% endif %}
  43.                                     <div class="droped">
  44.                                         <div class="dropdown-header">Type de biens</div>
  45.                                         <ul id="property-li" class="items">
  46.                                             <li class="item {% if not propertyTypeSelected %}selected{% endif %}" data-value="all">Tous</li>
  47.                                             {% if propertiesApi is defined %}
  48.                                                 {% for type in propertiesApi.getTypesProperties() %}
  49.                                                     <li class="item {% if propertyTypeSelected == type %}selected{% endif %}" data-value="{{ type }}">{{ type }}</li>
  50.                                                 {% endfor %}
  51.                                             {% endif %}
  52.                                             {#
  53.                                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Studio' %}selected{% endif %}" data-value="Studio">Studio</li>
  54.                                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Appartement' %}selected{% endif %}" data-value="Appartement">Appartement</li>
  55.                                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Maison' %}selected{% endif %}" data-value="Maison">Maison</li>
  56.                                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Bureaux' %}selected{% endif %}" data-value="Bureaux">Bureau</li>
  57.                                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Commerce' %}selected{% endif %}" data-value="Commerce">Commerce</li>
  58.                                             <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>
  59.                                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Immeuble' %}selected{% endif %}" data-value="Immeuble">Immeuble</li>
  60.                                             <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>
  61.                                             #}
  62.                                         </ul>
  63.                                     </div>
  64.                                 </div>
  65.                                 <div id="location-drop-mobile" class="dropdown">
  66.                                     <div class="undroped">
  67.                                         <p class="undroped-header">Localisation</p>
  68.                                         <p class="undroped-subheader">Choisissez une commune</p>
  69.                                         <input type="hidden" value="" class="input-subheader" name="location">
  70.                                     </div>
  71.                                     <div class="droped">
  72.                                         <div  class="dropdown-header">Localisation</div>
  73.                                         <ul id="location-li-mobile" class="items">
  74.                                             {#
  75.                                             <li class="item" data-value ="Appartement">Luxembourg-Ville</li>
  76.                                             <li class="item" data-value ="Bureaux">Leudelange</li>
  77.                                             <li class="item" data-value ="Maison">Esch-Sur-Alzette</li>
  78.                                             #}
  79.                                         </ul>
  80.                                     </div>
  81.                                 </div>
  82.                             </div>
  83.                             <div id="sub-search-div-mobile" class="sub-search-div-mobile">
  84.                                 <div class="col-lg-3 div-form">
  85.                                     <input class="sub-search-input" name="budget"  id="budget" type="text" placeholder="Budget max." value="{% if app.session.get('filter') and app.session.get('filter')['budget'] is defined and app.session.get('filter')['budget'] != '' %}{{ app.session.get('filter')['budget'] }}{% endif %}">
  86.                                 </div>
  87.                                 <div id="rooms-drop" class="dropdown">
  88.                                     <div class="undroped">
  89.                                         <p class="undroped-header transparent-font">
  90.                                         {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['rooms'] != '' %}
  91.                                             {{ app.session.get('filter')['rooms'] }} chambre(s)
  92.                                         {% else %}
  93.                                             Nombre de chambres
  94.                                         {% endif %}
  95.                                         </p>
  96.                                         <p class="undroped-subheader good-place"></p>
  97.                                         <input type="hidden" class="input-subheader" name="rooms">
  98.                                     </div>
  99.                                     <div class="droped">
  100.                                         <div class="dropdown-header">Nombre de chambres</div>
  101.                                         <ul id="rooms-li" class="items">
  102.                                             <li class="item" data-value ="">Indifférent</li>
  103.                                             {% for i in 0..6 %}
  104.                                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['rooms'] is defined and app.session.get('filter')['rooms'] == i %}selected{% endif %}" data-value ="{{ i }}">{{ i }} chambre(s)</li>
  105.                                             {% endfor %}
  106.                                         </ul>
  107.                                     </div>
  108.                                 </div>
  109.                                     <!--<input class="sub-search-input" id="area-minimum" name="area-minimum" type="text" placeholder="Surface min.">-->
  110.                                     <div id="area-drop" class="dropdown" style="border: 1px solid black;">
  111.                                         <div class="undroped">
  112.                                             <p class="undroped-header transparent-font">
  113.                                             {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] != '' %}
  114.                                                 {{ app.session.get('filter')['area-minimum'] }} m²
  115.                                             {% else %}
  116.                                                 Surface minimum
  117.                                             {% endif %}
  118.                                             </p>
  119.                                             <p class="undroped-subheader good-place"></p>
  120.                                             <input type="hidden" class="input-subheader" name="area-minimum">
  121.                                         </div>
  122.                                         <div class="droped">
  123.                                             <div class="dropdown-header">Surface minimum</div>
  124.                                             <ul id="area-li" class="items">
  125.                                                 <li class="item" data-value="">Indifférent</li>
  126.                                                 <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>
  127.                                                 <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>
  128.                                                 <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>
  129.                                                 <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>
  130.                                                 <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>
  131.                                                 <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>
  132.                                                 <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>
  133.                                                 <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>
  134.                                                 <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>
  135.                                                 <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>
  136.                                                 <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>
  137.                                                 <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>
  138.                                                 <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>
  139.                                                 <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>
  140.                                                 <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>
  141.                                                 <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>
  142.                                                 <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>
  143.                                                 <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>
  144.                                                 <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>
  145.                                                 <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>
  146.                                                 <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>
  147.                                             </ul>
  148.                                         </div>
  149.                                 </div>
  150.                             </div>
  151.                             <div>
  152.                                 <button style="background-color: transparent;border-color: transparent;" id="submit-search" type="submit">
  153.                                     <svg class="search-button" xmlns="http://www.w3.org/2000/svg" width="55.982" height="90.97" viewBox="0 0 55.982 90.97">
  154.                                         <g id="Groupe_3817" data-name="Groupe 3817" transform="translate(-1528.861 -105)">
  155.                                             <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"/>
  156.                                             <g id="Groupe_3794" data-name="Groupe 3794" transform="translate(1545.335 126.696)">
  157.                                                 <g id="np_search_1868241_000000">
  158.                                                     <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"/>
  159.                                                     <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"/>
  160.                                                 </g>
  161.                                             </g>
  162.                                         </g>
  163.                                     </svg></button>
  164.                                 <button class="btn btn-primary" id="send" type="submit" style="display: none">Envoyer</button>
  165.                             </div>
  166.                         </div>
  167.                     </form>
  168.                 </div>
  169.             </div>
  170.         </div>
  171.     </div>
  172. </div>