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

Open in your IDE?
  1. {% if pimcore_checkbox("showBookOnly").isChecked() %}
  2.     {% set filterTexte = [] %}
  3.     <li class="mb-3">
  4.         <button class="form-box form-box--collapsible collapsed"
  5.                 type="button"
  6.                 data-toggle="collapse"
  7.                 data-target="#{{ isSearch ? "additional-search" : "filter" }}-overlay-bookonly"
  8.                 aria-expanded="false"
  9.                 aria-controls="{{ isSearch ? "additional-search" : "filter" }}-overlay-bookonly">
  10.             <span class="form-box__label">{{ "demi.filter.bookonly"|trans }}</span>
  11.             <span class="form-box__content text-truncate {{ isSearch ? "js-additional-search-overlay" : "js-filter-form" }}__group-label"
  12.                   data-filter-name="bookonly"
  13.                   data-default-text="{{ "demi.filter.all"|trans }}">
  14.                             {{ "demi.filter.all"|trans }}
  15.             </span>
  16.             <span class="demi-icon demi-icon-chevron-down form-box__icon"
  17.                   aria-label="{{ "demi.filter.open"|trans }}"></span>
  18.         </button>
  19.         <section id="{{ isSearch ? "additional-search" : "filter" }}-overlay-bookonly"
  20.                  aria-expanded="false"
  21.                  class="collapse js-collapse-in-viewport">
  22.             <div class="form-box__detail p-3">
  23.                 <ul class="list-inline list-inline--gutter-6">
  24.                     {% set val = "on" %}
  25.                     {% set paramName = 'bookonly' %}
  26.                     {% set paramNameToUse = paramName %}
  27.                     {% set filterTexte = filterTexte + {
  28.                         'name' : paramNameToUse ,
  29.                         'value' : val,
  30.                         'text' : "demi.filter.only-bookable"|trans,
  31.                         'label': "demi.filter.bookonly" |trans
  32.                     } %}
  33.                     <li class="list-inline-item">
  34.                         {{ include('@ElementsDemiFrontend/Includes/elements/buttons/toggle-button.html.twig', {
  35.                             'type' : 'checkbox',
  36.                             'text' : "demi.filter.only-bookable"|trans,
  37.                             'styleModifier' : 'js-additional-search-overlay__default-input js-filter-form__default-input ',
  38.                             'name' :  paramName,
  39.                             'value' : val,
  40.                             'hasIcon' : true,
  41.                             'bubbles' : true,
  42.                             'bubblesId' : paramName
  43.                         }) }}
  44.                     </li>
  45.                     <script type="text/javascript" data-cookieconsent="ignore">
  46.                         _filterTexte = window['_filterTexte'] || [];
  47.                         _filterTexte.push.apply(_filterTexte, {{ filterTexte|json_encode|raw }} );
  48.                     </script>
  49.                 </ul>
  50.             </div>
  51.         </section>
  52.     </li>
  53. {% endif %}