templates/site/includes/carousel.html.twig line 1

Open in your IDE?
  1. <header>
  2.     <div class="carousel-inner" role="listbox">
  3.         <div class="container-fluid" style="padding-top: 80px; z-index: 1;position: absolute;">
  4.             {% if app.user is null %}
  5.                 <div class="row">
  6.                     <div class="col-4 text-center"></div>
  7.                     <div class="col-4 text-center">
  8.                         <form id="alertForm" action="" class="p-2" method="post" style=" background-color: white; opacity: 0.9; border-radius: 5px;">
  9.                             <label for="email">Recibe las últimas publicaciones</label>
  10.                             <div class="input-group mb-3">
  11.                                 <input id="email" placeholder="Registra tu correo" name="email" type="email" class="form-control form-control-lg" aria-label="Recipient's username" aria-describedby="basic-addon2">
  12.                                 <div class="input-group-append">
  13.                                     <button id="createAlert" class="btn btn-outline-secondary" type="submit">Notificar</button>
  14.                                 </div>
  15.                             </div>
  16.                             <span id="response" class=""></span>
  17.                         </form>
  18.                     </div>
  19.                     <div class="col-4 text-center"></div>
  20.                 </div>
  21.             {% endif %}
  22.         </div>
  23.         <div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
  24.             {% for slide in slides %}
  25.                 <div class="carousel-item {{ loop.index == 1 ? 'active' : '' }}" style="background-image: url('{{
  26.                                                                                                                                                                               vich_uploader_asset(slide, 'imageFile')
  27.                                                                                                                                                                             }}'); height: 88vh!important;"></div>
  28.             {% endfor %}
  29.         </div>
  30.         <form action="{{ path('search') }}" class="form-inline search-form custom-search-form" role="form" method="post">
  31.             <div class="input-group text-center">
  32.                 <div class="form-group">
  33.                     <input name="keywords" class="form-control" type="search" placeholder="Ingresar palabras clave"/>
  34.                 </div>
  35.                 <div class="form-group">
  36.                     <select class="form-control" name="location" id="selectpicker search-location">
  37.                         <option value="" selected>Ubicación</option>
  38.                         {% for l in locations %}
  39.                             <option value="{{ l.name }}">
  40.                                 {{ l.name }}
  41.                             </option>
  42.                         {% endfor %}
  43.                     </select>
  44.                 </div>
  45.                 <div class="form-group">
  46.                     <button id="search-btn" class="button primary-bg">
  47.                         <i class="fas fa-search"></i>
  48.                         Buscar
  49.                     </button>
  50.                 </div>
  51.             </div>
  52.         </form>
  53.     </div>
  54. </header>