templates/home/listeannonce.html.twig line 1

Open in your IDE?
  1. {% extends 'basefront.html.twig' %}
  2. {% block stylesheets %}
  3.     <style>
  4.         @media (min-width: 992px) {
  5.             .intro .intro-title {
  6.                 font-size: 3rem !important;
  7.             }
  8.         }
  9.         @media (max-width: 900px) {
  10.             #log {
  11.                 width: 40px !important;
  12.             }
  13.         }
  14.         @media (min-width: 900px) {
  15.             #log {
  16.                 width: 100px !important;
  17.             }
  18.         }
  19.     </style>
  20. {% endblock %}
  21.  {% block body %}
  22.      <nav class="navbar navbar-default navbar-trans navbar-expand-lg fixed-top"
  23.           style="padding-top: 0px !important;padding-bottom: 0px !important;">
  24.          <div class="container">
  25.              <button class="navbar-toggler collapsed" type="button" data-bs-toggle="collapse"
  26.                      data-bs-target="#navbarDefault" aria-controls="navbarDefault" aria-expanded="false"
  27.                      aria-label="Toggle navigation">
  28.                  <span></span>
  29.                  <span></span>
  30.                  <span></span>
  31.              </button>
  32.              <a class="navbar-brand text-brand" href="/"><img id="log" src="{{ asset('image/logoestradori.png') }}"
  33.                                                               alt="Estate Immobilière">
  34.              </a>
  35.              <div class="navbar-collapse collapse justify-content-center" id="navbarDefault">
  36.                  <ul class="navbar-nav" style="font-size: 12px;font-weight: bold;">
  37.                      <li class="nav-item">
  38.                          <a class="nav-link active" href="/" style="font-size: 12px;font-weight: bold;">Accueil</a>
  39.                      </li>
  40.                      <li class="nav-item dropdown">
  41.                          <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
  42.                             style="font-size: 12px;font-weight: bold;"
  43.                             data-bs-toggle="dropdown"
  44.                             aria-haspopup="true" aria-expanded="false">Location</a>
  45.                          <div class="dropdown-menu">
  46.                              {% for type in types %}
  47.                                  <a class="dropdown-item " style="font-size: 12px;font-weight: bold;"
  48.                                     href="{{ path('app_liste_type', {'id': type.id,'categorie':'location'}) }}">{{ type.nom }}</a>
  49.                              {% endfor %}
  50.                          </div>
  51.                      </li>
  52.                      <li class="nav-item dropdown">
  53.                          <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
  54.                             style="font-size: 12px;font-weight: bold;"
  55.                             data-bs-toggle="dropdown"
  56.                             aria-haspopup="true" aria-expanded="false">Vente</a>
  57.                          <div class="dropdown-menu">
  58.                              {% for type in types %}
  59.                                  <a class="dropdown-item " style="font-size: 12px;font-weight: bold;"
  60.                                     href="{{ path('app_liste_type', {'id': type.id,'categorie':'vente'}) }}">{{ type.nom }}</a>
  61.                              {% endfor %}
  62.                          </div>
  63.                      </li>
  64.                      <li class="nav-item">
  65.                          <a class="nav-link " href="#" style="font-size: 12px;font-weight: bold;">Vacances</a>
  66.                      </li>
  67.                      <li class="nav-item">
  68.                          <a class="nav-link " href="/contact" style="font-size: 12px;font-weight: bold;">Contact</a>
  69.                      </li>
  70.                  </ul>
  71.                  <ul id="respMenu2" class="ace-responsive-menu float-right wa" data-menu-style="horizontal"
  72.                      style="font-size: 12px;font-weight: bold;">
  73.                      <li class="list-inline-item list_c"><a href="tel:0021629707148">
  74.                              <span class="bi bi-phone mr7"></span>/ <span class="bi bi-whatsapp mr7">
  75.                             </span> (+216) 29 707 148</a></li>
  76.                      <li class="list-inline-item list_c"><a href="mailto:eha.immobilier@gmail.com">
  77.                              <span class="bi bi-envelope mr7"></span>
  78.                              eha.immobilier@gmail.com</a></li>
  79.                  </ul>
  80.              </div>
  81.          </div>
  82.      </nav>
  83.      <main id="main">
  84.          <section class="intro-single">
  85.              <div class="container">
  86.                  <div class="row">
  87.                      <div class="col-md-12 col-lg-8">
  88.                          <div class="title-single-box">
  89.                              <h1 class="title-single">Liste des annonces</h1>
  90.                          </div>
  91.                      </div>
  92.                      <div class="col-md-12 col-lg-4">
  93.                          <nav aria-label="breadcrumb" class="breadcrumb-box d-flex justify-content-lg-end">
  94.                              <ol class="breadcrumb">
  95.                                  <li class="breadcrumb-item">
  96.                                      <a href="/">Accueil</a>
  97.                                  </li>
  98.                                  <li class="breadcrumb-item active" aria-current="page">
  99.                                      Liste des annonces
  100.                                  </li>
  101.                              </ol>
  102.                          </nav>
  103.                      </div>
  104.                  </div>
  105.              </div>
  106.          </section><!-- End Intro Single-->
  107.          <!-- =======  Blog Grid ======= -->
  108.          <section class="news-grid grid">
  109.              <div class="container">
  110.                  <div class="row">
  111.                      <div class="col-md-12">
  112.                          <div class="jumbotron">
  113.                              <div class="container">
  114.                                  {{ form_start(form) }}
  115.                                  <div class="row">
  116.                                      <div class="col-md-3">
  117.                                          {{ form_row(form.minsurface) }}
  118.                                      </div>
  119.                                      <div class="col-md-3">
  120.                                          {{ form_row(form.maxprice) }}
  121.                                      </div>
  122.                                      <div class="col-md-3">
  123.                                          {{ form_row(form.nbchambre) }}
  124.                                      </div>
  125.                                      <div class="col-md-3">
  126.                                          <button class="btn btn-primary">Rechercher</button>
  127.                                      </div>
  128.                                  </div>
  129.                                  {{ form_end(form) }}
  130.                              </div>
  131.                          </div>
  132.                      </div>
  133.                  </div>
  134.                  <div class="row">
  135.                      <div class="col-md-12">
  136.                          <hr>
  137.                      </div>
  138.                  </div>
  139.                  <div class="row mt-4">
  140.                      {% for annonce in annonces %}
  141.                          <div class="col-md-4">
  142.                              <div class="card-box-b card-shadow news-box">
  143.                                  <div class="img-box-b">
  144.                                      {% set i =0 %}
  145.                                      {% for image in annonce.images %}
  146.                                          {% if(i == annonce.images|length-1) %}
  147.                                              <img src="{{ asset('images/annonces/'~image.name) }}" alt=""
  148.                                                   class="img-a img-fluid">
  149.                                          {% endif %}
  150.                                          {% set i =i+1 %}
  151.                                      {% endfor %}
  152.                                  </div>
  153.                                  <div class="card-overlay">
  154.                                      <div class="card-header-b">
  155.                                          <div class="card-category-b">
  156.                                              <a href="{{ path('details_annonce', {'id': annonce.id}) }}"
  157.                                                 class="category-b"
  158.                                                 style="color: white !important;">{{ annonce.type }}</a>
  159.                                              <a href="{{ path('details_annonce', {'id': annonce.id}) }}"
  160.                                                 class="category-b"
  161.                                                 style="color: white !important;">{{ annonce.prix }} {{ annonce.devise }}</a>
  162.                                          </div>
  163.                                          <div class="card-title-b">
  164.                                              <h2 class="title-2">
  165.                                                  <a href="{{ path('details_annonce', {'id': annonce.id}) }}">{{ annonce.titre }} </a>
  166.                                              </h2>
  167.                                          </div>
  168.                                      </div>
  169.                                  </div>
  170.                              </div>
  171.                          </div>
  172.                      {% else %}
  173.                          <div class="row" style="    margin-left: auto;
  174.     margin-right: auto;">
  175.                              <div id="contenedor_busqueda_fallida" style="padding: 0 12.5px;
  176.     width: 100%;
  177.     margin: 100px auto;
  178.     max-width: 1165px;
  179.     margin: 0 auto;
  180.     position: relative;
  181.     overflow: hidden;
  182.     padding: 0 12.5px;
  183.     position: relative;
  184.     width: 100%;">
  185.                                  <div class="busqueda">
  186.                                      <img style="width: 250px; height: 200px;"
  187.                                           src="{{ asset('image/no_results_found.svg') }}" alt="">
  188.                                      <div class="text_fail_busqueda">
  189.                                          <p class="title">Aucun résultat trouvé</p>
  190.                                      </div>
  191.                                  </div>
  192.                              </div>
  193.                          </div>
  194.                      {% endfor %}
  195.                  </div>
  196.              </div>
  197.          </section>
  198.      </main>
  199.  {% endblock %}