<div class="list-group">
    <div class="filter-attribute-container filter-attribute-remove-container">
        {% set is_filter = false %}
        {% for filter_group in filter_groups %}
            {% for filter in filter_group.filter %}
                {% if (filter_group.type == "manufacturer" and filter.filter_id in filter_manufacturer) or (filter_group.type == "option" and filter.filter_id in filter_option) %}
                    {% set is_filter = true %}
                    <div class="list-group-item filter-act-name" data-type="{{ filter_group.type }}">
                        <p>{{ filter.name }}</p>
                        <a class="a-filter remove-filter" href="javascript:void(0);" name="{{ filter.filter_id }}"><span>Remove</span></a>
                    </div>
                {% endif %}
            {% endfor %}
        {% endfor %}

        {% if is_filter %}
            <div class="list-group-item filter-clear-all">
                <a class="clear-filter" href="javascript:void(0);" onclick="oclayerednavigationajax.filter('{{ clear_action }}')">Clear all</a>
            </div>
        {% endif %}
    </div>
    <div class="filter-attribute-container filter-prices">
        <label>{{ text_byprice }}</label>
        <div class="list-group-item">
            <div class="filter-price">
                <div id="slider-price"></div>
                <div class="slider-values">
                    <span>{{ currency_symbol_left }}</span>
                    <input id="price-from" disabled="disabled" class="input-price" type="text" value="{{ current_min_price }}" name="price-from"/>
                    <span class="text-left">{{ currency_symbol_right }}</span> -
                    <span>{{ currency_symbol_left }}</span>
                    <input id="price-to" disabled="disabled" class="input-price" type="text" value="{{ current_max_price }}" name="price-to"/>
                    <span class="text-left">{{ currency_symbol_right }}</span>
                </div>
            </div>
        </div>
    </div>
    {% for filter_group in filter_groups %}
        <div class="filter-attribute-container">
            <label data-toggle="collapse" class="collapsed" href="#{{ loop.index }}">
                {{ filter_group.name }}
            </label>
            <div id="{{ loop.index }}" class="panel-collapse collapse" role="tabpanel">
                <div class="list-group-item">
                    <div data-type="{{ filter_group.type }}">
                        {% for filter in filter_group.filter %}
                            {% if (filter_group.type == "manufacturer" and filter.filter_id not in filter_manufacturer) or (filter_group.type == "option" and filter.filter_id not in filter_option) %}
                                <a class="a-filter add-filter" href="javascript:void(0);" name="{{ filter.filter_id }}">{{ filter.name }}</a>
                            {% endif %}
                        {% endfor %}
                    </div>
                </div>
            </div>
        </div>
    {% endfor %}
</div>
