src/Elements/Bundle/DemiFrontendBundle/Resources/views/Events/filter/filters.html.twig line 1

Open in your IDE?
  1. <div class="demi-event__filterbox">
  2.     <div class="row">
  3.         <div class="col-md-6 col js-datepicker-range">
  4.             {% if not pimcore_checkbox('hide-datepicker-filter').isChecked() and not archive %}
  5.                 {% do jsConfig().add('datepickerRange', true) %}
  6.                 {{ include("@ElementsDemiFrontend/Events/filter/filter-parts/datepicker.html.twig", {
  7.                     "dateString" : dateBegin,
  8.                     "datepickerLabel" : "start",
  9.                     "inputname" : "from",
  10.                     "inputlabel" : 'demi.events.filter.label.from' | trans,
  11.                     "styleModifier":"js-datepicker-range__from"
  12.                 }) }}
  13.                 {{ include("@ElementsDemiFrontend/Events/filter/filter-parts/datepicker.html.twig", {
  14.                     "dateString" : dateEnd,
  15.                     "datepickerLabel" : "end",
  16.                     "inputname" : "to",
  17.                     "inputlabel" : 'demi.events.filter.label.to' | trans,
  18.                     "styleModifier":"js-datepicker-range__to"
  19.                 }) }}
  20.             {% endif %}
  21.             {% if pimcore_checkbox('show-keyword-filter').isChecked() %}
  22.                 {{ include("@ElementsDemiFrontend/Events/filter/filter-parts/keyword.html.twig", {
  23.                     "labelText" : 'demi.events.filter.label.keyword' | trans,
  24.                     "placeholder" : 'demi.events.filter.search-placeholder' | trans,
  25.                     "styleModifier" : ""
  26.                 }) }}
  27.             {% endif %}
  28.         </div>
  29.         <div class="col-md-6">
  30.             {% if pimcore_checkbox('show-category-filter').isChecked() %}
  31.                 {{ include("@ElementsDemiFrontend/Events/filter/filter-parts/category-select.html.twig", {
  32.                     "labelText" : 'demi.events.filter.label.category' | trans,
  33.                     "placeholder" : 'demi.events.filter.placeholder.category'| trans,
  34.                     "styleModifier" : ""
  35.                 }) }}
  36.             {% endif %}
  37.             {% if false and pimcore_checkbox('show-category-filter').isChecked() %}
  38.                 {{ include("@ElementsDemiFrontend/Events/filter/filter-parts/category-checkbox.html.twig", {
  39.                     "labelText" : 'demi.events.filter.label.category' | trans,
  40.                     "placeholder" : 'demi.events.filter.placeholder.category'| trans,
  41.                     "styleModifier" : ""
  42.                 }) }}
  43.             {% endif %}
  44.             {% if pimcore_checkbox('show-region-filter').isChecked() %}
  45.                 {{ include("@ElementsDemiFrontend/Events/filter/filter-parts/region-select.html.twig", {
  46.                     "labelText" : 'demi.events.filter.placeholder.regions' | trans,
  47.                     "placeholder" : 'demi.events.filter.placeholder.region'| trans,
  48.                     "styleModifier" : ""
  49.                 }) }}
  50.             {% endif %}
  51.             {% if false and pimcore_checkbox('show-region-filter').isChecked() %}
  52.                 {{ include("@ElementsDemiFrontend/Events/filter/filter-parts/region-checkbox.html.twig", {
  53.                     "labelText" : 'demi.events.filter.placeholder.regions' | trans,
  54.                     "placeholder" : 'demi.events.filter.placeholder.category'| trans,
  55.                     "styleModifier" : ""
  56.                 }) }}
  57.             {% endif %}
  58.             {% if pimcore_checkbox('show-holidaytheme-filter').isChecked() %}
  59.                 {{ include("@ElementsDemiFrontend/Events/filter/filter-parts/holidaytheme-select.html.twig", {
  60.                     "labelText" : 'demi.events.filter.placeholder.holidaythemes'| trans,
  61.                     "placeholder" : 'demi.events.filter.placeholder.holidaytheme'| trans,
  62.                     "styleModifier" : ""
  63.                 }) }}
  64.             {% endif %}
  65.             {% if false and pimcore_checkbox('show-holidaytheme-filter').isChecked() %}
  66.                 {{ include("@ElementsDemiFrontend/Events/filter/filter-parts/holidaytheme-checkbox.html.twig", {
  67.                     "labelText" : 'demi.events.filter.placeholder.holidaythemes' | trans,
  68.                     "placeholder" : 'demi.events.filter.placeholder.holidaytheme'| trans,
  69.                     "styleModifier" : ""
  70.                 }) }}
  71.             {% endif %}
  72.             {% if not pimcore_checkbox('hide-topevent-filter').isChecked() %}
  73.                 {{ include("@ElementsDemiFrontend/Events/filter/filter-parts/topevents.html.twig", {
  74.                     "checkboxText" : 'demi.events.filter.only-topevents' | trans,
  75.                     "styleModifier" : ""
  76.                 }) }}
  77.             {% endif %}
  78.         </div>
  79.     </div>
  80.     <div class="text-center">
  81.         {{ include("@ElementsDemiFrontend/Events/filter/filter-parts/filterbutton.html.twig", {
  82.             "buttonText" : 'demi.events.filter.button.show-result' | trans,
  83.             "styleModifier" : ""
  84.         }) }}
  85.         {{ include("@ElementsDemiFrontend/Events/filter/filter-parts/reset-filters.html.twig", {
  86.             "buttonText" : 'demi.events.filter.button.reset-filters' | trans,
  87.             "styleModifier" : ""
  88.         }) }}
  89.     </div>
  90. </div>