{{ sylius_template_event('sylius.shop.product.index.before_vertical_menu', {'taxon': taxon}) }}

<div class="taxon-filter-container">
    <div class="list-group" role="list">
        <p class="list-group-item active" role="listitem">{{ taxon.name }}</p>

        {% for child in taxon.children %}
            <a href="{{ path('sylius_shop_product_index', {'slug': child.slug, '_locale': child.translation.locale}) }}" class="list-group-item list-group-item-action" role="listitem">{{ child.name }}</a>
        {% endfor %}

        {% if taxon.parent is not empty and not taxon.parent.isRoot() %}
            <a href="{{ path('sylius_shop_product_index', {'slug': taxon.parent.slug, '_locale': taxon.parent.translation.locale}) }}" class="list-group-item list-group-item-action" role="listitem">
                {{ 'sylius.ui.go_level_up'|trans }}
            </a>
        {% endif %}
    </div>
</div>

{{ sylius_template_event('sylius.shop.product.index.after_vertical_menu', {'taxon': taxon}) }}
