{% set isSearch = isSearch is defined ? isSearch : false %}
<li class="mb-3 js-search-data__show-if-submitted" {{ not noDate ? '' : 'hidden' }}>
<button class="form-box form-box--collapsible collapsed"
type="button"
data-toggle="collapse"
data-target="#filter-overlay-price"
aria-expanded="false"
aria-controls="filter-overlay-price">
<span class="form-box__label js-search-data__show-if-submitted" {{ not noDate ? '' : 'hidden' }}>{{ "demi.filter.price"|trans }}</span>
<span class="form-box__label js-search-data__hide-if-submitted" {{ not noDate ? 'hidden' : '' }}>{{ "demi.filter.price-per-night"|trans }}</span>
<span class="form-box__content text-truncate {{ isSearch ? "js-additional-search-overlay" : "js-filter-form" }}__group-label"
data-filter-name="customPrice, price"
data-default-text="{{ "demi.filter.all-prices"|trans }}">
{{ "demi.filter.all-prices"|trans }}
</span>
<span class="demi-icon demi-icon-chevron-down form-box__icon" aria-label="{{ "demi.filter.open"|trans }}"></span>
</button>
<section id="filter-overlay-price" aria-expanded="false" class="collapse js-collapse-in-viewport">
<div class="form-box__detail p-3">
<script data-cookieconsent="ignore">_config.priceFilterSlider = true;</script>
{% set currency = demi_paymentGetCurrency() %}
<div class="js-price-slider">
<div class="row row--gutter-width-10">
<div class="col">
<label for="filter-price-from" class="sr-only">{{ "demi.filter.price-from"|trans }}</label>
<div class="input-group">
<span class="input-group-addon p-2 text-muted">{{ currency }}</span>
<input type="number" pattern="[0-9]*" id="filter-price-from" name="price-from" placeholder="von" class="form-control text-right pl-0 bg-white js-price-slider__input-min">
</div>
</div>
<div class="col col-auto py-2 ">
-
</div>
<div class="col">
<label for="filter-price-to" class="sr-only">{{ "demi.filter.price-to"|trans }}</label>
<div class="input-group">
<span class="input-group-addon p-2 text-muted">{{ currency }}</span>
<input type="number" pattern="[0-9]*" id="filter-price-to" name="price-to" placeholder="bis" class="form-control text-right pl-0 bg-white js-price-slider__input-max">
</div>
</div>
</div>
<div class="js-price-slider__slider mt-3 mb-2 price-slider-wrapper noUi-extended"></div>
</div>
</div>
</section>
</li>
{% set filterTexte = [] %}
{% set paramName = "price" %}
{% set labelName = 'demi.filter.price' | trans %}
{% set popoverName = 'price' %}
{% set filterTexte = filterTexte + {
'name' : paramName,
'value' : searchParam.getPriceFrom() ~ '-' ~ searchParam.getPriceTo(),
'text' : currency ~ ' ' ~ searchParam.getPriceFrom() ~ ' - ' ~ searchParam.getPriceTo(),
'label': 'demi.filter.price' |trans
} %}
<script type="text/javascript" data-cookieconsent="ignore">
_filterTexte = window['_filterTexte'] || [];
_filterTexte.push.apply(_filterTexte, {{ filterTexte|json_encode|raw }} );
</script>