templates/basic/filtro-principal-mobile.html.twig line 1

Open in your IDE?
  1. {% set route_mobile = app.request.attributes.get('_route') %}
  2. {% set params_mobile = app.request.attributes.get('_route_params') %}
  3. {% set preciomax_mobile = app.request.get('preciomax_mobile') %}
  4. {% set preciomin_mobile = app.request.get('preciomin_mobile') %}
  5. <div class="modal fade d-md-none" id="modal-filtro-principal" tabindex="-1" aria-labelledby="modal-filtro-principalLabel" aria-hidden="true">
  6.   <div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
  7.     <div class="modal-content">
  8.       <div class="modal-header">
  9.         <h2 class="modal-title">Filtrar por:</h2>
  10.         <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  11.           <span aria-hidden="true">&times;</span>
  12.         </button>
  13.       </div>
  14.       <div class="modal-body">
  15.         <div class="filtros">
  16.           {% if principal %}
  17.             {# <h3 class="light color-negro pt-5 mb-3">{{principal.nombre}}</h3> #}
  18.             <h3 class="light color-negro mb-3">{{principal.nombre}}<sup class="ml-2">(250)</sup></h3>
  19.           {% endif %}
  20.           {# filtro por firmeza #}
  21.           <ul class="filtro-firmeza mb-4">
  22.             {% for sub in subcategorias %}
  23.               {% set slugcategoria = sub.categoria %}
  24.               <li class="{% if referencia == sub.id %} active {% endif %} p-2"><a href="{{ path('subcategoria_slug', {id_sub: sub.id,subcategoria: sub.slug, categoria_slug: slugcategoria }) }}"><h4 class="subtitulo mb-0">{{ sub.nombre }}</h4></a></li>
  25.             {% endfor %}
  26.           </ul>
  27.           <hr>
  28.           {# filtro por precio #}
  29.           <div class="box-price mb-4">
  30.           <form id="formulariomobile" action="{{ path(route_mobile , params_mobile) }}" method="get" style="width: 100%">
  31.               <h2>Precio</h2>
  32.               <div class="priceSlider">
  33.                 <div class="min-max-range">
  34.                         <input type="hidden" id="range_input_mobile" value="" />
  35.                         <input type="hidden" id="preciomaximo_mobile" value="{{preciomaximo_mobile}}" />
  36.                         <input type="hidden" id="preciominimo_mobile" value="{{preciominimo_mobile}}" />
  37.                         <input type="hidden" name="preciomin_mobile" id="preciomin_mobile" value="{{ preciomin_mobile ? preciomin_mobile : preciominimo_mobile }}">
  38.                         <input type="hidden" name="preciomax_mobile" id="preciomax_mobile" value="{{ preciomax_mobile ? preciomax_mobile : preciomaximo_mobile }}">
  39.                 </div>                     
  40.                 <div style="clear: both;"></div>  
  41.                 
  42.               </div> 
  43.           </form>
  44.             {# <h2 class="color-negro mb-3">Precio</h2>    
  45.             <div class="price-slider">
  46.               <input value="250000" min="0" max="5000000" step="500" type="range"/>
  47.               <input value="500000" min="0" max="5000000" step="500" type="range"/>
  48.               <div class="d-flex justify-content-between align-items-center flex-wrap cajas-filtro-precio">
  49.                 <div class="mb-2 caja-singular">
  50.                   <input class="price rounded d-block w-100" type="number" value="5000" min="0" max="120000"/>
  51.                 </div>
  52.                 <div class="mb-2 caja-singular">
  53.                   <input class="price rounded d-block w-100" type="number" value="50000" min="0" max="120000"/>
  54.                 </div>
  55.                 <div class="mb-2 caja-singular">
  56.                   <button class="btn border-naranja d-block w-100">Filtrar</button>
  57.                 </div>
  58.               </div>
  59.             </div> #}
  60.             <!-- <div class="d-flex align-items-center">
  61.             <input class="price" type="text">
  62.             <input class="price" type="text">
  63.                 <div>
  64.                   
  65.                 </div>
  66.             </div> -->    
  67.           </div>
  68.         </div>
  69.       </div>
  70.     </div>
  71.   </div>
  72. </div>