{% if currencies|length > 1 %}
    <div class="dropdown" id="sylius-currency-selector" {{ sylius_test_html_attribute('currency-selector') }}>
        <span class="btn btn-outline-secondary dropdown-toggle sylius-active-currency" data-toggle="dropdown" aria-haspopup="true" {{ sylius_test_html_attribute('active-currency') }}>{{ active }}</span>

        <div class="dropdown-menu">
            {% for code in currencies %}
                {% if code is not same as(active) %}
                <a href="{{ path('sylius_shop_switch_currency', {'code': code}) }}" class="dropdown-item sylius-available-currency" {{ sylius_test_html_attribute('available-currency') }}>
                    {{ code }}
                </a>
                {% endif %}
            {% endfor %}
        </div>
    </div>
{% endif %}
