{% trans_default_domain 'store' %}
<!-- START OF SIDEBAR MENU: FILTERS LIST ON DESKTOP -->
<div class="column is-one-quarter is-hidden-touch">
<div class="columns">
<div class="column" v-cloak>
<div style="display: none">
{{ form_row(form.query) }}
</div>
{% set isFilters = 1 %}
{% if disabledFilters is defined and disabledFilters == 1 %}
{% set isFilters = 0 %}
{% endif %}
<!-- START OF ACCORDION -->
<sb-accordion inline-template v-cloak active="1">
<section class="sidebar-accordion" style="margin-top:12px;">
{% if isFilters %}
<!-- START OF ACCORDION -->
<sb-accordion inline-template v-cloak active="1">
<section class="sidebar-accordion">
<!-- START OF ACCORDION TITLE -->
<div class="level" @click="toggleAccordion">
<div class="level-left">
<div class="level-item">
<span class="has-text-weight-bold is-16px">
{{ 'sendTime'|trans }}
</span>
</div>
</div>
<div class="level-right">
</div>
</div>
<!-- END OF ACCORDION TITLE -->
</section>
</sb-accordion>
<!-- END OF ACCORDION -->
<!-- START OF ACCORDION CONTENT -->
<nav v-if="unfold">
<div class="divider"></div>
<div>
{{ form_widget(form.availability) }}
</div>
<div style="clear: both"></div>
</nav>
<!-- END OF ACCORDION CONTENT -->
{% endif %}
<hr class="hr">
<!-- START OF ACCORDION TITLE -->
<div class="level" @click="toggleAccordion" style="margin-top:20px;">
<div class="level-left">
<div class="level-item">
<span class="has-text-weight-bold is-16px">
{{ 'rooms'|trans }}
</span>
</div>
</div>
<div class="level-right">
<span class="icon">
<i :class="[ 'fas', unfold ? 'fa-caret-up' : 'fa-caret-down' ]"></i>
</span>
</div>
</div>
<nav v-if="unfold">
{% set catCounter = 0 %}
{% for category in categories %}
{% set catCounter = catCounter + 1 %}
<sb-accordion-group {% if category.id == app.request.attributes.get('id') or (app.request.attributes.get('id') in category.getChildrenIds) %}activesub="1" {% else %}activesub="0"{% endif %} catid="{{ category.id }}" {% if catCounter > 3 %}v-if="showMore"{% endif %} inline-template v-cloak>
<div>
<div class="level" @click="toggleSubcategories">
<div class="level-left">
<div class="level-item">
<span class="has-text-weight-semibold make-it-block" style="font-size:0.9rem;">
<a {% if category.id == app.request.attributes.get('id') %}class="active" {% endif %} href="{{ path('category', {'id':category.id, 'slug':category.slug, 'av24h':app.request.attributes.get('av24h')}) }}">
{{ category.name }}
</a>
</span>
</div>
</div>
<div class="level-right">
<span class="icon">
<i :class="[ 'fas', showSubcategories ? 'fa-caret-up' : 'fa-caret-down' ]"></i>
</span>
</div>
</div>
<ul v-if="showSubcategories">
{% for child in category.childrens %}
{% set visibleCat = 1 %}
{% set nbProd = child.langParams[0].nbProducts %}
{% for langParam in child.langParams %}
{% if langParam.language.getLocaleShort == app.request.locale %}
{% set visibleCat = langParam.visible %}
{% if langParam.nbProducts and langParam.nbProducts is not null %}
{% set nbProd = langParam.nbProducts %}
{% endif %}
{% endif %}
{% endfor %}
{% if visibleCat %}
<li><a {% if child.id == app.request.attributes.get('id') %}class="active" active="1" {% else %}active="0"{% endif %}href="{{ path('category', {'id':child.id, 'slug':child.slug, 'av24h':app.request.attributes.get('av24h')}) }}">{{ child.name }}</a>
<span class="has-text-grey-light">({{ nbProd }})</span>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</sb-accordion-group>
{% endfor %}
<span class="wiecej-pomieszczen has-text-weight-semibold"
@click="toggleMore"
v-if="showMore == false">
{{ 'moreRooms'|trans }}...
</span>
<span class="wiecej-pomieszczen has-text-weight-semibold"
@click="toggleMore"
v-else>
{{ 'lessRooms'|trans }}...
</span>
</nav>
<!-- END OF ACCORDION CONTENT -->
</section>
</sb-accordion>
<!-- END OF ACCORDION -->
<hr class="hr">
<!-- START OF ACCORDION -->
<sb-accordion inline-template v-cloak active="1">
<section class="sidebar-accordion">
<!-- START OF ACCORDION TITLE -->
<div class="level" @click="toggleAccordion">
<div class="level-left">
<div class="level-item">
<span class="has-text-weight-bold is-16px">
{{ 'furnituteTypes'|trans }}
</span>
</div>
</div>
<div class="level-right">
<span class="icon">
<i :class="[ 'fas', unfold ? 'fa-caret-up' : 'fa-caret-down' ]"></i>
</span>
</div>
</div>
<!-- END OF ACCORDION TITLE -->
<!-- START OF ACCORDION CONTENT -->
<nav v-if="unfold">
<ul>
{% for furnitureType in furnitureTypes|slice(0,5) %}
<li>
<a {% if app.request.attributes.get('furnitureTypeId') == furnitureType.id %} class="active" {% endif %} href="{{ path('furnitureType', {'furnitureTypeId':furnitureType.id, 'customFilter':app.request.attributes.get('customFilter'), 'slug':furnitureType.slug}) }}">
{{ furnitureType.name }}
</a>
<span class="has-text-grey-light">({{ furnitureType.langParams[0].nbProducts }})</span>
</li>
{% endfor %}
<div v-if="showMore">
{% for furnitureType in furnitureTypes|slice(5,100) %}
<li>
<a {% if app.request.attributes.get('furnitureTypeId') == furnitureType.id %} class="active" {% endif %} href="{{ path('furnitureType', {'furnitureTypeId':furnitureType.id, 'customFilter':app.request.attributes.get('customFilter'), 'slug':furnitureType.slug}) }}">
{{ furnitureType.name }}
</a>
<span class="has-text-grey-light">({{ furnitureType.langParams[0].nbProducts }})</span>
</li>
{% endfor %}
</div>
</ul>
<span class="has-text-weight-semibold more-furniture-types"
@click="toggleMore"
v-if="showMore == false">
{{ 'moreFurnitureTypes'|trans }}...
</span>
<span class="has-text-weight-semibold"
@click="toggleMore"
v-else>
{{ 'lessFurnitureTypes'|trans }}...
</span>
</nav>
<!-- END OF ACCORDION CONTENT -->
</section>
</sb-accordion>
<!-- END OF ACCORDION -->
{% if isFilters %}
<hr class="hr">
<!-- START OF ACCORDION -->
<sb-accordion inline-template v-cloak active="1">
<section class="sidebar-accordion">
<!-- START OF ACCORDION TITLE -->
<div class="level" @click="toggleAccordion">
<div class="level-left">
<div class="level-item">
<span class="has-text-weight-bold is-16px">
{{ 'priceFilter'|trans }}
</span>
</div>
</div>
<div class="level-right">
<span class="icon">
<i :class="[ 'fas', unfold ? 'fa-caret-up' : 'fa-caret-down' ]"></i>
</span>
</div>
</div>
<!-- END OF ACCORDION TITLE -->
<!-- START OF ACCORDION CONTENT -->
<nav v-if="unfold">
<div class="field is-horizontal zakres-cen">
<div class="field-body price-left">
{{ form_widget(form.priceFrom) }}
</div>
<div class="kreska">—</div>
<div class="field-body price-right">
{{ form_widget(form.priceTo) }}
</div>
</div>
</nav>
<!-- END OF ACCORDION CONTENT -->
</section>
</sb-accordion>
<!-- END OF ACCORDION -->
<hr class="hr">
<!-- START OF ACCORDION -->
<sb-accordion inline-template v-cloak active="1">
<section class="sidebar-accordion">
<!-- START OF ACCORDION TITLE -->
<div class="level" @click="toggleAccordion">
<div class="level-left">
<div class="level-item">
<span class="has-text-weight-bold is-16px">
{{ 'producer'|trans }}
</span>
</div>
</div>
<div class="level-right">
<span class="icon">
<i :class="[ 'fas', unfold ? 'fa-caret-up' : 'fa-caret-down' ]"></i>
</span>
</div>
</div>
<!-- END OF ACCORDION TITLE -->
<!-- START OF ACCORDION CONTENT -->
<nav v-if="unfold">
<div class="field is-horizontal producer-select" style="margin-top:20px;">
{{ form_widget(form.productProducer) }}
</div>
</nav>
<!-- END OF ACCORDION CONTENT -->
</section>
</sb-accordion>
<!-- END OF ACCORDION -->
<hr class="hr">
<!-- START OF ACCORDION -->
<sb-accordion inline-template v-cloak active="1">
<section class="sidebar-accordion">
<!-- START OF ACCORDION TITLE -->
<div class="level" @click="toggleAccordion">
<div class="level-left">
<div class="level-item">
<span class="has-text-weight-bold is-16px">
{{ 'colors_available'|trans }}
</span>
</div>
</div>
<div class="level-right">
<span class="icon">
<i :class="[ 'fas', unfold ? 'fa-caret-up' : 'fa-caret-down' ]"></i>
</span>
</div>
</div>
<!-- END OF ACCORDION TITLE -->
<!-- START OF ACCORDION CONTENT -->
<nav v-if="unfold">
<div class="field is-horizontal color-select" style="margin-top:20px;">
{{ form_widget(form.color) }}
</div>
</nav>
<!-- END OF ACCORDION CONTENT -->
</section>
</sb-accordion>
<!-- END OF ACCORDION -->
<hr class="hr">
<!-- START OF ACCORDION -->
<sb-accordion class="ergonomyElement" inline-template v-cloak {% if searchData.ergonomy is defined and searchData.ergonomy|length %}active="1"{% endif %}>
<section class="sidebar-accordion">
<!-- START OF ACCORDION TITLE -->
<div class="level" @click="toggleAccordion">
<div class="level-left">
<div class="level-item">
<span class="has-text-weight-bold is-16px ergonomy-title-label">
{{ 'ergonomy'|trans }}
</span>
</div>
</div>
<div class="level-right">
<span class="icon">
<i :class="[ 'fas', unfold ? 'fa-caret-up' : 'fa-caret-down' ]"></i>
</span>
</div>
</div>
<!-- END OF ACCORDION TITLE -->
<!-- START OF ACCORDION CONTENT -->
<nav v-if="unfold">
<div class="divider"></div>
{{ form_widget(form.ergonomy) }}
</nav>
<!-- END OF ACCORDION CONTENT -->
</section>
</sb-accordion>
<!-- END OF ACCORDION -->
<hr class="hr ergonomyElement">
<!-- START OF ACCORDION -->
<sb-accordion class="functionsElement" inline-template v-cloak {% if searchData.functions is defined and searchData.functions|length %}active="1"{% endif %}>
<section class="sidebar-accordion">
<!-- START OF ACCORDION TITLE -->
<div class="level" @click="toggleAccordion">
<div class="level-left">
<div class="level-item">
<span class="has-text-weight-bold is-16px">
{{ 'functions'|trans }}
</span>
</div>
</div>
<div class="level-right">
<span class="icon">
<i :class="[ 'fas', unfold ? 'fa-caret-up' : 'fa-caret-down' ]"></i>
</span>
</div>
</div>
<!-- END OF ACCORDION TITLE -->
<!-- START OF ACCORDION CONTENT -->
<nav v-if="unfold">
<div class="divider"></div>
{{ form_widget(form.functions) }}
</nav>
<!-- END OF ACCORDION CONTENT -->
</section>
</sb-accordion>
<!-- END OF ACCORDION -->
<hr class="hr functionsElement">
<!-- START OF ACCORDION -->
<sb-accordion class="executionElement" inline-template v-cloak {% if searchData.execution is defined and searchData.execution|length %}active="1"{% endif %}>
<section class="sidebar-accordion">
<!-- START OF ACCORDION TITLE -->
<div class="level" @click="toggleAccordion">
<div class="level-left">
<div class="level-item">
<span class="has-text-weight-bold is-16px">
{{ 'execution'|trans }}
</span>
</div>
</div>
<div class="level-right">
<span class="icon">
<i :class="[ 'fas', unfold ? 'fa-caret-up' : 'fa-caret-down' ]"></i>
</span>
</div>
</div>
<!-- END OF ACCORDION TITLE -->
<!-- START OF ACCORDION CONTENT -->
<nav v-if="unfold">
<div class="divider"></div>
{{ form_widget(form.execution) }}
</nav>
<!-- END OF ACCORDION CONTENT -->
</section>
</sb-accordion>
<!-- END OF ACCORDION -->
<hr class="hr executionElement">
<!-- START OF ACCORDION -->
<sb-accordion inline-template v-cloak active="1">
<section class="sidebar-accordion">
<nav>
<div class="divider"></div>
<div class="field is-horizontal">
<button id="submitButton" type="submit" style="background:#ef1b2b" class="button is-link is-large is-fullwidth">{{ 'search'|trans }}</button>
</div>
</nav>
</section>
</sb-accordion>
<!-- END OF ACCORDION -->
{% endif %}
</div>
</div>
</div>
<!-- END OF SIDEBAR MENU: FILTERS LIST ON DESKTOP -->
<!-- START OF PRODUCT LIST -->
<div class="column is-three-quarters-desktop is-full-tablet has-side-padding">
<!-- START OF PRODUCT LIST CONTROLS -->
<nav class="level is-mobile add-bottom">
<!-- START OF LEFT SIDE OF CONTROLS -->
<div class="level-left">
<!-- FEATURE not for now -->
<!-- <span class="icon">
<i class="fas fa-bars"></i>
</span> -->
<div class="level-item">
<div class="field is-horizontal">
<div class="field-label has-text-weight-bold is-16px">
<label for="sort" class="label sortujj">{{ 'sorting'|trans }}</label>
</div>
<div class="field-body">
<div class="field">
<span class="select">
{{ form_widget(form.sorting, {'attr':{'id':'sort'}}) }}
</span>
</div>
</div>
<div class="field-label has-text-weight-bold is-16px">
</div>
<div class="field-body">
<div class="field">
<span class="select">
<select class="productsPerPage">
<option value="15" {% if productsPerPage is defined and productsPerPage == 15 %} selected="selected" {% endif %}>15 {{ 'products_on_page'|trans }}</option>
<option value="30" {% if productsPerPage is defined and productsPerPage == 30 %} selected="selected" {% endif %}>30 {{ 'products_on_page'|trans }}</option>
<option value="45" {% if productsPerPage is defined and productsPerPage == 45 %} selected="selected" {% endif %}>45 {{ 'products_on_page'|trans }}</option>
</select>
</span>
</div>
</div>
</div>
</div>
</div>
<!-- END OF LEFT SIDE OF CONTROLS -->
<!-- START OF CENTER OF CONTROLS -->
<!-- END OF CENTER OF CONTROLS -->
<!-- START OF RIGHT SIDE OF CONTROLS -->
<div class="level-right">
<div class="level-item">
{{ knp_pagination_render(products) }}
</div>
</div>
<!-- END OF RIGHT SIDE OF CONTROLS -->
</nav>
<!-- END OF PRODUCT LIST CONTROLS -->
{% if isFilters %}
<!-- START OF FILTERS LIST ON MOBILE DEVICES -->
<filters-list inline-template v-cloak>
<div class="is-hidden-desktop">
<nav class="level is-mobile" @click="toggleFiltersList" style="margin-bottom: 20px;">
<div class="level-item" style="padding:15px; border: 1px solid #d4d8e1; font-weight: 600;">
{{ 'filterResults'|trans }}
<span class="icon">
<i :class="[ 'fas', unfold ? 'fa-caret-up' : 'fa-caret-down' ]"></i>
</span>
</div>
</nav>
<div class="columns" v-if="unfold">
<ul class="column is-one-third-tablet">
<span class="has-text-weight-bold is-16px">
{{ 'rooms'|trans }}
</span>
<div style="margin-left:22px; margin-top:5px;">
{% set catCounter = 0 %}
{% for category in categories %}
{% set catCounter = catCounter + 1 %}
<div class="has-text-weight-semibold">
<a {% if category.id == app.request.attributes.get('id') %}class="active" {% endif %} href="{{ path('category', {'av24h':app.request.attributes.get('av24h'), 'id':category.id, 'slug':category.slug}) }}">
{{ category.name }}
</a>
</div>
{% if category.id == app.request.attributes.get('id') %}
<ul style="margin-left:20px;">
{% for child in category.childrens %}
<li><a {% if child.id == app.request.attributes.get('id') %}class="active" active="1" {% else %}active="0"{% endif %}href="{{ path('category', {'av24h':app.request.attributes.get('av24h'), 'id':child.id, 'slug':child.slug}) }}">{{ child.name }}</a>
<span class="has-text-grey-light">({{ child.langParams[0].nbProducts }})</span>
</li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
</div>
<div class="divider"></div>
<span class="has-text-weight-bold is-16px">
{{ 'furnituteTypes'|trans }}
</span>
<div style="margin-left:22px; margin-top:5px;">
{% for furnitureType in furnitureTypes %}
<div class="has-text-weight-semibold">
<a {% if app.request.attributes.get('furnitureTypeId') == furnitureType.id %} class="active" {% endif %} href="{{ path('furnitureType', {'customFilter':app.request.attributes.get('customFilter'), 'furnitureTypeId':furnitureType.id, 'slug':furnitureType.slug}) }}">
{{ furnitureType.name }}
</a>
</div>
{% endfor %}
</div>
{#
<div class="column is-one-third-tablet">
<span class="has-text-weight-bold is-16px">
Kolory obszycia
</span>
<label class="checkbox">
<input type="checkbox">
Czerwony<span class="has-text-grey-light">(20)</span>
</label>
<label class="checkbox">
<input type="checkbox">
Pomarańczowy<span class="has-text-grey-light">(20)</span>
</label>
<label class="checkbox">
<input type="checkbox">
Żółty / Złoty<span class="has-text-grey-light">(20)</span>
</label>
<label class="checkbox">
<input type="checkbox">
Zielony<span class="has-text-grey-light">(20)</span>
</label>
<label class="checkbox">
<input type="checkbox">
Turkusowy<span class="has-text-grey-light">(20)</span>
</label>
<label class="checkbox">
<input type="checkbox">
Niebieski<span class="has-text-grey-light">(20)</span>
</label>
<label class="checkbox">
<input type="checkbox">
Fioletowy<span class="has-text-grey-light">(20)</span>
</label>
<label class="checkbox">
<input type="checkbox">
Różowy<span class="has-text-grey-light">(20)</span>
</label>
<label class="checkbox">
<input type="checkbox">
Biały<span class="has-text-grey-light">(20)</span>
</label>
<label class="checkbox">
<input type="checkbox">
Szary<span class="has-text-grey-light">(20)</span>
</label>
<label class="checkbox">
<input type="checkbox">
Brązowy<span class="has-text-grey-light">(20)</span>
</label>
<label class="checkbox">
<input type="checkbox">
Czarny<span class="has-text-grey-light">(20)</span>
</label>
</div>
#}
<div class="divider2"></div>
<div class="column">
<span class="has-text-weight-bold is-16px">
{{ 'sendTime'|trans }}
</span>
<div class="field is-horizontal">
<div class="field-body price-left" style="margin-left:15px;">
{{ form_widget(form.availabilityMobile) }}
</div>
</div>
<div class="divider"></div>
<span class="has-text-weight-bold is-16px">
{{ 'priceFilter'|trans }}
</span>
<div class="divider"></div>
<div class="field is-horizontal" style="margin-left:15px;">
<div class="field-body price-left">
{{ form_widget(form.priceFromMobile) }}
</div>
<div style="text-align: center">
—
</div>
<div class="field-body price-left">
{{ form_widget(form.priceToMobile) }}
</div>
</div>
<div class="divider"></div>
<span class="has-text-weight-bold is-16px">
{{ 'producer'|trans }}
</span>
<div class="divider"></div>
<div class="field is-horizontal" style="margin-left:15px;">
<div class="field-body price-left">
{{ form_widget(form.productProducerMobile) }}
</div>
</div>
<div class="divider"></div>
<span class="has-text-weight-bold is-16px">
{{ 'colors_available'|trans }}
</span>
<div class="divider"></div>
<div class="field is-horizontal" style="margin-left:15px;">
<div class="field-body price-left">
{{ form_widget(form.colorMobile) }}
</div>
</div>
</div>
<div class="column is-one-third-tablet">
<span class="has-text-weight-bold is-16px">
{{ 'ergonomy'|trans }}
</span>
<div style="margin-left:15px; margin-top:5px;">
{{ form_widget(form.ergonomyMobile) }}
</div>
</div>
<div class="column is-one-third-tablet">
<span class="has-text-weight-bold is-16px">
{{ 'functions'|trans }}
</span>
<div style="margin-left:15px; margin-top:5px;">
{{ form_widget(form.functionsMobile) }}
</div>
</div>
<div class="column is-one-third-tablet">
<span class="has-text-weight-bold is-16px">
{{ 'execution'|trans }}
</span>
<div style="margin-left:15px; margin-top:5px;">
{{ form_widget(form.executionMobile) }}
</div>
</div>
<button id="submitButtonMobile" style="background:#ef1b2b" type="submit" class="button is-link is-large is-fullwidth">{{ 'search'|trans }}</button>
</div>
</div>
</filters-list>
<!-- END OF FILTERS LIST ON MOBILE DEVICES -->
{% else %}
{% do form.availability.setRendered %}
{% do form.availabilityMobile.setRendered %}
{% do form.functions.setRendered %}
{% do form.functionsMobile.setRendered %}
{% do form.ergonomy.setRendered %}
{% do form.ergonomyMobile.setRendered %}
{% do form.execution.setRendered %}
{% do form.executionMobile.setRendered %}
{% do form.priceToMobile.setRendered %}
{% do form.priceTo.setRendered %}
{% do form.priceFromMobile.setRendered %}
{% do form.priceFrom.setRendered %}
{% do form.productProducer.setRendered %}
{% do form.productProducerMobile.setRendered %}
{% do form.color.setRendered %}
{% do form.colorMobile.setRendered %}
{% endif %}