<div class="product-search">
    <form method="get" action="{{ path('sylius_shop_product_index', {'slug': app.request.attributes.get('slug')}) }}">
        <div class="form-group">
            <div class="input-group">
                {% for filter in products.definition.enabledFilters %}
                    {{ sylius_grid_render_filter(products, filter) }}
                {% endfor %}

                <div class="input-group-append">
                    <button type="submit" class="btn btn-primary" {{ sylius_test_html_attribute('search') }}>
                        <i class="fas fa-search"></i>&nbsp;{{ 'sylius.ui.search'|trans }}
                    </button>

                    <a href="{{ path('sylius_shop_product_index', {'slug': app.request.attributes.get('slug')}) }}" class="btn btn-danger" {{ sylius_test_html_attribute('clear') }}>
                        <i class="fas fa-times"></i>&nbsp;{{ 'sylius.ui.clear'|trans }}
                    </a>
                </div>
            </div>
        </div>
    </form>
</div>
