{% set route_mobile = app.request.attributes.get('_route') %}
{% set params_mobile = app.request.attributes.get('_route_params') %}
{% set preciomax_mobile = app.request.get('preciomax_mobile') %}
{% set preciomin_mobile = app.request.get('preciomin_mobile') %}
<div class="modal fade d-md-none" id="modal-filtro-principal" tabindex="-1" aria-labelledby="modal-filtro-principalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title">Filtrar por:</h2>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="filtros">
{% if principal %}
{# <h3 class="light color-negro pt-5 mb-3">{{principal.nombre}}</h3> #}
<h3 class="light color-negro mb-3">{{principal.nombre}}<sup class="ml-2">(250)</sup></h3>
{% endif %}
{# filtro por firmeza #}
<ul class="filtro-firmeza mb-4">
{% for sub in subcategorias %}
{% set slugcategoria = sub.categoria %}
<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>
{% endfor %}
</ul>
<hr>
{# filtro por precio #}
<div class="box-price mb-4">
<form id="formulariomobile" action="{{ path(route_mobile , params_mobile) }}" method="get" style="width: 100%">
<h2>Precio</h2>
<div class="priceSlider">
<div class="min-max-range">
<input type="hidden" id="range_input_mobile" value="" />
<input type="hidden" id="preciomaximo_mobile" value="{{preciomaximo_mobile}}" />
<input type="hidden" id="preciominimo_mobile" value="{{preciominimo_mobile}}" />
<input type="hidden" name="preciomin_mobile" id="preciomin_mobile" value="{{ preciomin_mobile ? preciomin_mobile : preciominimo_mobile }}">
<input type="hidden" name="preciomax_mobile" id="preciomax_mobile" value="{{ preciomax_mobile ? preciomax_mobile : preciomaximo_mobile }}">
</div>
<div style="clear: both;"></div>
</div>
</form>
{# <h2 class="color-negro mb-3">Precio</h2>
<div class="price-slider">
<input value="250000" min="0" max="5000000" step="500" type="range"/>
<input value="500000" min="0" max="5000000" step="500" type="range"/>
<div class="d-flex justify-content-between align-items-center flex-wrap cajas-filtro-precio">
<div class="mb-2 caja-singular">
<input class="price rounded d-block w-100" type="number" value="5000" min="0" max="120000"/>
</div>
<div class="mb-2 caja-singular">
<input class="price rounded d-block w-100" type="number" value="50000" min="0" max="120000"/>
</div>
<div class="mb-2 caja-singular">
<button class="btn border-naranja d-block w-100">Filtrar</button>
</div>
</div>
</div> #}
<!-- <div class="d-flex align-items-center">
<input class="price" type="text">
<input class="price" type="text">
<div>
</div>
</div> -->
</div>
</div>
</div>
</div>
</div>
</div>