{% sw_extends '@Storefront/storefront/page/product-detail/configurator/select.html.twig' %}
{% block page_product_detail_configurator_group_select %}
{% block page_product_detail_configurator_group_select_title %}
{% block page_product_detail_configurator_select %}
{% if loop.first %}
<label class="product-detail-configurator-group-title" for="{{ group.id }}">
{% block page_product_detail_configurator_group_title_text %}
{{ "detail.variantTextConfigurator"|trans|sw_sanitize }}
{% endblock %}
</label>
{% endif %}
<select name="{{ group.id }}" id="{{ group.id }}" class="custom-select product-detail-configurator-select-input product-detail-configurator-option-input">
{% for option in group.options %}
{% set selected = false %}
{% if option.id in page.product.optionIds %}
{% set selected = true %}
{% endif %}
{% block page_product_detail_configurator_select_option %}
<option value="{{ option.id }}"{% if selected %} selected="selected"{% endif %}>
{{ option.translated.name }}
</option>
{% endblock %}
{% endfor %}
</select>
{% endblock %}
{% endblock %}
{% endblock %}