templates/vendre.html.twig line 7

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Vendre{% endblock %}
  3. {% block body %}
  4.     {% set headerContent = content('Contact', 'Header') %}
  5.     {% if headerContent.picture is defined and headerContent.picture is not empty %}
  6.         {% set backgroundImage = headerContent.picture[0].path %}
  7.     {% else %}
  8.         {% set backgroundImage = 'empty' %}
  9.     {% endif %}
  10.     <header class="header-habiter col-lg-8 mx-auto" style="background-image: url({{ asset('img/vente.png') }}); height: 480px">
  11.         <div class="container-fluid">
  12.             <div class="col-lg-8 mx-auto div-svg-header">
  13.                 <div class="header-habiter-div">
  14.                 </div>
  15.             </div>
  16.         </div>
  17.     </header>
  18.     <div class="container-fluid" style="margin-top: 60px; margin-bottom: 80px">
  19.         {% set contactContent = content('Contact', 'Section-1') %}
  20.         <div class="col-lg-8 mx-auto div-svg-header pre-section">
  21.             <div class="col-lg-4" style="font-size: 2.3em;display: flex;flex-direction: column;margin-left: 10px;">
  22.                 <svg xmlns="http://www.w3.org/2000/svg" width="9.089" height="14.77" viewBox="0 0 9.089 14.77">
  23.                     <path id="Tracé_76" data-name="Tracé 76" d="M682.759,232.441h-9.089v14.77l9.089-1.931Z" transform="translate(-673.669 -232.441)" fill="#f6a400"/>
  24.                 </svg>
  25.                 <h1 class="project-title contact">VENDEZ AVEC NOUS</h1>
  26.             </div>
  27.             <div class="separator"></div>
  28.             <div class="col-lg-6 pre-section-content">
  29.                 Que vous souhaitiez vendre, acheter ou louer, n’hésitez pas à nous contacter pour toute information.
  30.             </div>
  31.         </div>
  32.         {{ form_start(form) }}
  33.         <div id="div-form-contact" class="form-group col-lg-8 mx-auto" style="display: flex;">
  34.             <div class="col-lg-4" style="display: flex; flex-direction: column; margin-right: 50px">
  35.                 <div class="form-material floating contact">
  36.                     {{ form_widget(form.name, {'attr': { 'class':'form-control', 'placeholder': 'Nom*'}}) }}
  37.                     {{ form_errors(form.name) }}
  38.                 </div>
  39.                 <div class="form-material floating contact">
  40.                     {{ form_widget(form.firstname, {'attr': { 'class':'form-control', 'placeholder': 'Prénom'}}) }}
  41.                     {{ form_errors(form.firstname) }}
  42.                 </div>
  43.                 <div class="form-material floating contact">
  44.                     {{ form_widget(form.mail, {'attr': { 'class':'form-control', 'placeholder': 'Mail*'}}) }}
  45.                     {{ form_errors(form.mail) }}
  46.                 </div>
  47.                 <div class="form-material floating contact">
  48.                     {{ form_widget(form.phone, {'attr': { 'class':'form-control', 'placeholder': 'Téléphone'}}) }}
  49.                     {{ form_errors(form.phone) }}
  50.                 </div>
  51.                 <div class="form-material floating contact position-relative">
  52.                     {{ form_widget(form.file, {'attr': { 'class':'form-control file-select', 'placeholder': 'Joindre un fichier &nbsp (.doc, .pdf, .jpeg / max. 5mo) '}}) }}
  53.                     {{ form_errors(form.file) }}
  54.                     <div style="height:35px;width:35px;background: #707070;right:0;top:0;" class="position-absolute">
  55.                         <svg xmlns="http://www.w3.org/2000/svg" width="35" height="35" viewBox="0 0 35 35">
  56.                             <g id="Groupe_4187" data-name="Groupe 4187" transform="translate(-695 -829)">
  57.                                 <rect id="Rectangle_139" data-name="Rectangle 139" width="35" height="35" transform="translate(695 829)" fill="#5f5f5f"/>
  58.                                 <path id="np_download_4247984_000000" d="M24.127,24.127V17.751H25.4V25.4H5V17.751H6.275v6.376Zm-17.852,0H24.127V17.751H25.4V25.4H5V17.751H6.275Zm9.563-5.162,4.784-5.047.955.888-6.437,6.77L8.826,14.937l.955-.888,4.784,4.916V5h1.275Zm-1.326,2.611.033.035v-.035Z" transform="translate(697.799 831.799)" fill="#fff"/>
  59.                             </g>
  60.                         </svg>
  61.                     </div>
  62.                 </div>
  63.             </div>
  64.             <div class="col-lg-6" style="display: flex; flex-direction: column">
  65.                 <div class="form-material floating contact selectdiv">
  66.                     {{ form_widget(form.object, {'attr': { 'class':'form-control'}}) }}
  67.                     {{ form_errors(form.object) }}
  68.                 </div>
  69.                 <div class="form-material floating contact">
  70.                     {{ form_widget(form.message, {'attr': { 'class':'form-control', 'placeholder': 'Votre message'}}) }}
  71.                     {{ form_errors(form.message) }}
  72.                 </div>
  73.             </div>
  74.             <div class="col-lg-1">
  75.                 <div class="submit-contact-button">
  76.                     <div>
  77.                         <button id="login_user" class="col-lg-12 offset-lg-4btn btn-primary" type="submit" style="background-color: #f6a400; border-color: #f6a400;">
  78.                             <?xml version="1.0" encoding="UTF-8"?>
  79.                             <svg id="SVGDoc" width="19" height="15" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:avocode="https://avocode.com/" viewBox="0 0 19 15"><defs></defs><desc>Generated with Avocode.</desc><g><g transform="rotate(90 9.5 7.5)"><title>np_arrow-up_888648_000000</title><path d="M16.10552,5.28141v0l-6.60555,-6.60459v0l-6.60554,6.60459v0l1.3808,1.3808v0l4.23854,-4.23949v0v13.90055v0h1.97232v0v-13.90055v0l4.23855,4.23949v0z" fill="#ffffff" fill-opacity="1"></path></g></g></svg>
  80.                         </button>
  81.                     </div>
  82.                 </div>
  83.             </div>
  84.             {{ form_end(form) }}
  85.         </div>
  86.     </div>
  87.     <section style="background:#F7F7F7" class="pt-5 pb-5">
  88.         <div class="col-lg-8 mx-auto">
  89.             <div class="col-lg-5 title-vendre-other">
  90.                 <svg xmlns="http://www.w3.org/2000/svg" width="9.089" height="14.77" viewBox="0 0 9.089 14.77">
  91.                     <path id="Tracé_76" data-name="Tracé 76" d="M682.759,232.441h-9.089v14.77l9.089-1.931Z" transform="translate(-673.669 -232.441)" fill="#f6a400"></path>
  92.                 </svg>
  93.                 <h1 class="project-title">
  94.                     NOS biens disponibles<br> À la <span style="color:#F6A400">vente</span>
  95.                 </h1>
  96.             </div>
  97.             <div id="propertiesOther" class="vendre col-lg-12 mt-5" style="display: flex; flex-wrap: wrap; flex-direction: row">
  98.                 {% for property in salesProperties %}
  99.                     <div  class="col-xl-4 col-lg-6 col-md-12 col-sm-12 div-img-hover-2" style="cursor: pointer">
  100.                         {% if property.pictures is not empty %}
  101.                             <div class="position-relative properties-slide slick-slide-single-{{ loop.index }}">
  102.                                 {% for picture in property.pictures|slice(0,3) %}
  103.                                     {#                                    <img class="img-100" src="{{ picture.url }}">#}
  104.                                     <div class="img" style="background-image: url('{{ picture.url }}')"  onclick="location.href='{{ path('property-detail', {'id': property.id}) }}'">
  105.                                     </div>
  106.                                 {% endfor %}
  107.                             </div>
  108.                         {% else %}
  109.                             <div class="img" style="background-image: url('{{ asset('build/Hudson_Ontario2.png') }}')"></div>
  110.                         {% endif %}
  111.                         <div class="row col-md-12 justify-content-between infos-list">
  112.                             <ul class="col-md-4 items">
  113.                                 <li class="item surface">
  114.                                     <img src="{{ asset('img/surface.svg') }}" class="surface-logo"> {{ property.area.value == null ? '' : property.area.value ~ areaConversion(property.area.unit) }}
  115.                                 </li>
  116.                             </ul>
  117.                             <div class="col-md-8 properties-price d-flex justify-content-end">
  118.                                 {{ property.price.value == null ? '<span style="font-size: 14px !important;">sur demande</span>' : property.price.value|number_format(2, ',', ' ') ~  property.price.currency|replace({"EUR": " €"})  }}
  119.                             </div>
  120.                         </div>
  121.                         <p class="city">{{ property.city.name }}</p>
  122.                         <p class="project-name">{{ property.reference }}</p>
  123.                     </div>
  124.                 {% endfor %}
  125.             </div>
  126.             <div id="link-none" class="col-lg-12 mx-auto other-property-link div-svg-header d-flex justify-content-end" style="margin-top:0;">
  127.                 <div>
  128.                     <a id="link-none-a d-flex" class="property-span-arrow" href="{{ path('properties', {'keyword': 'vente'}) }}">Découvrir plus
  129.                         <svg class="svg-inline--fa fa-arrow-right fa-w-14 property-arrow" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="arrow-right" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" data-fa-i2svg=""><path fill="currentColor" d="M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"></path></svg><!-- <i class="fas fa-arrow-right property-arrow"></i> Font Awesome fontawesome.com -->
  130.                     </a>
  131.                 </div>
  132.             </div>
  133.         </div>
  134.     </section>
  135.     <section style="background:#F7F7F7" class="pt-5 pb-5">
  136.         <div class="col-lg-8 mx-auto">
  137.             <div class="col-lg-5 title-vendre-other">
  138.                 <svg xmlns="http://www.w3.org/2000/svg" width="9.089" height="14.77" viewBox="0 0 9.089 14.77">
  139.                     <path id="Tracé_76" data-name="Tracé 76" d="M682.759,232.441h-9.089v14.77l9.089-1.931Z" transform="translate(-673.669 -232.441)" fill="#f6a400"></path>
  140.                 </svg>
  141.                 <h1 class="project-title">
  142.                     NOS biens disponibles<br> À la <span style="color:#F6A400">location</span>
  143.                 </h1>
  144.             </div>
  145.             <div id="propertiesOther" class="col-lg-12 mt-5" style="display: flex; flex-wrap: wrap; flex-direction: row">
  146.                 {% for property in rentsProperties %}
  147.                     <div  class="col-xl-4 col-lg-6 col-md-12 col-sm-12 div-img-hover-2" style="cursor: pointer">
  148.                         {% if property.pictures is not empty %}
  149.                             <div class="position-relative properties-slide slick-slide-rent-{{ loop.index }}">
  150.                                 {% for picture in property.pictures|slice(0,3) %}
  151.                                     {#                                    <img class="img-100" src="{{ picture.url }}">#}
  152.                                     <div class="img" style="background-image: url('{{ picture.url }}')"  onclick="location.href='{{ path('property-detail', {'id': property.id}) }}'">
  153.                                     </div>
  154.                                 {% endfor %}
  155.                             </div>
  156.                         {% else %}
  157.                             <div class="img" style="background-image: url('{{ asset('build/Hudson_Ontario2.png') }}')"></div>
  158.                         {% endif %}
  159.                         <div class="row col-md-12 justify-content-between infos-list">
  160.                             <ul class="col-md-4 items">
  161.                                 <li class="item surface">
  162.                                     <img src="{{ asset('img/surface.svg') }}" class="surface-logo"> {{ property.area.value == null ? '' : property.area.value ~ areaConversion(property.area.unit) }}
  163.                                 </li>
  164.                             </ul>
  165.                             <div class="col-md-8 properties-price d-flex justify-content-end">
  166.                                 {{ property.price.value == null ? '<span style="font-size: 14px !important;">sur demande</span>' : property.price.value|number_format(2, ',', ' ') ~  property.price.currency|replace({"EUR": " €"})  }}
  167.                             </div>
  168.                         </div>
  169.                         <p class="city">{{ property.city.name }}</p>
  170.                         <p class="project-name">{{ property.reference }}</p>
  171.                     </div>
  172.                 {% endfor %}
  173.             </div>
  174.             <div id="link-none" class="col-lg-12 mx-auto other-property-link div-svg-header d-flex justify-content-end" style="margin-top:0;">
  175.                 <div>
  176.                     <a id="link-none-a d-flex" class="property-span-arrow" href="{{ path('properties', {'keyword': 'location'}) }}">Découvrir plus
  177.                         <svg class="svg-inline--fa fa-arrow-right fa-w-14 property-arrow" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="arrow-right" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" data-fa-i2svg=""><path fill="currentColor" d="M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"></path></svg><!-- <i class="fas fa-arrow-right property-arrow"></i> Font Awesome fontawesome.com -->
  178.                     </a>
  179.                 </div>
  180.             </div>
  181.         </div>
  182.     </section>
  183.     <script>
  184.         const arrowPrev = `<svg xmlns="http://www.w3.org/2000/svg" width="7.985" height="13.211" viewBox="0 0 7.985 13.211">
  185.                                 <path id="np_arrow-up_888648_000000" d="M13.211,1.381l-6.606,6.6L0,1.381,1.381,0,6.606,5.022h0L11.83,0Z" transform="translate(7.985) rotate(90)" fill="#fff"/>
  186.                             </svg>`;
  187.         const arrowNext= `<svg xmlns="http://www.w3.org/2000/svg" width="7.985" height="13.211" viewBox="0 0 7.985 13.211">
  188.                             <path id="np_arrow-up_888648_000000" d="M13.211,1.381l-6.606,6.6L0,1.381,1.381,0,6.606,5.022h0L11.83,0Z" transform="translate(7.985) rotate(90)" fill="#fff"/>
  189.                         </svg>`;
  190.         var countProperties = '{{ salesProperties|length }}';
  191.         var loopProp = 1;
  192.         while (loopProp <= countProperties) {
  193.             $('.slick-slide-single-'+loopProp).slick({
  194.                 'slidesToShow': 1,
  195.                 'prevArrow': `<div class="arrow-left square-black d-flex justify-content-center align-items-center position-absolute">${arrowPrev}</div>`,
  196.                 'nextArrow': `<div class="arrow-right square-black d-flex justify-content-center align-items-center position-absolute">${arrowNext}</div>`
  197.             });
  198.             loopProp++;
  199.         }
  200.         var countPropertiesRent = '{{ rentsProperties|length }}';
  201.         var loopPropRent = 1;
  202.         while (loopPropRent <= countPropertiesRent) {
  203.             $('.slick-slide-rent-'+loopPropRent).slick({
  204.                 'slidesToShow': 1,
  205.                 'prevArrow': `<div class="arrow-left square-black d-flex justify-content-center align-items-center position-absolute">${arrowPrev}</div>`,
  206.                 'nextArrow': `<div class="arrow-right square-black d-flex justify-content-center align-items-center position-absolute">${arrowNext}</div>`
  207.             });
  208.             loopPropRent++;
  209.         }
  210.     </script>
  211. {% endblock %}