src/Elements/Bundle/DemiFrontendBundle/Resources/views/Snippet/filterSidebar/price.mobile.html.twig line 1

Open in your IDE?
  1. {% set isSearch = isSearch is defined ? isSearch : false %}
  2. <li class="mb-3 js-search-data__show-if-submitted" {{ not noDate ? '' : 'hidden' }}>
  3.     <button class="form-box form-box--collapsible collapsed"
  4.             type="button"
  5.             data-toggle="collapse"
  6.             data-target="#filter-overlay-price"
  7.             aria-expanded="false"
  8.             aria-controls="filter-overlay-price">
  9.         <span class="form-box__label js-search-data__show-if-submitted" {{ not noDate ? '' : 'hidden' }}>{{ "demi.filter.price"|trans }}</span>
  10.         <span class="form-box__label js-search-data__hide-if-submitted" {{ not noDate ? 'hidden' : '' }}>{{ "demi.filter.price-per-night"|trans }}</span>
  11.         <span class="form-box__content text-truncate {{ isSearch ? "js-additional-search-overlay" : "js-filter-form" }}__group-label"
  12.               data-filter-name="customPrice, price"
  13.               data-default-text="{{ "demi.filter.all-prices"|trans }}">
  14.             {{ "demi.filter.all-prices"|trans }}
  15.         </span>
  16.         <span class="demi-icon demi-icon-chevron-down form-box__icon" aria-label="{{ "demi.filter.open"|trans }}"></span>
  17.     </button>
  18.     <section id="filter-overlay-price" aria-expanded="false" class="collapse js-collapse-in-viewport">
  19.         <div class="form-box__detail p-3">
  20.             <script data-cookieconsent="ignore">_config.priceFilterSlider = true;</script>
  21.             {%  set currency = demi_paymentGetCurrency() %}
  22.             <div class="js-price-slider">
  23.                 <div class="row row--gutter-width-10">
  24.                     <div class="col">
  25.                         <label for="filter-price-from" class="sr-only">{{ "demi.filter.price-from"|trans }}</label>
  26.                         <div class="input-group">
  27.                             <span class="input-group-addon p-2 text-muted">{{ currency }}</span>
  28.                             <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">
  29.                         </div>
  30.                     </div>
  31.                     <div class="col col-auto py-2 ">
  32.                         -
  33.                     </div>
  34.                     <div class="col">
  35.                         <label for="filter-price-to" class="sr-only">{{ "demi.filter.price-to"|trans }}</label>
  36.                         <div class="input-group">
  37.                             <span class="input-group-addon p-2 text-muted">{{ currency }}</span>
  38.                             <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">
  39.                         </div>
  40.                     </div>
  41.                 </div>
  42.                 <div class="js-price-slider__slider mt-3 mb-2 price-slider-wrapper noUi-extended"></div>
  43.             </div>
  44.         </div>
  45.     </section>
  46. </li>
  47. {% set filterTexte = [] %}
  48. {% set paramName = "price" %}
  49. {% set labelName = 'demi.filter.price' | trans %}
  50. {% set popoverName = 'price' %}
  51. {% set filterTexte = filterTexte + {
  52.         'name' : paramName,
  53.         'value' : searchParam.getPriceFrom() ~ '-' ~ searchParam.getPriceTo(),
  54.         'text' : currency ~ ' ' ~ searchParam.getPriceFrom() ~ ' - ' ~ searchParam.getPriceTo(),
  55.         'label': 'demi.filter.price' |trans
  56. } %}
  57. <script type="text/javascript" data-cookieconsent="ignore">
  58.     _filterTexte = window['_filterTexte'] || [];
  59.     _filterTexte.push.apply(_filterTexte, {{ filterTexte|json_encode|raw }} );
  60. </script>