{% sw_extends '@Storefront/storefront/component/buy-widget/configurator.html.twig' %}
{% block buy_widget_configurator_option_radio_label %}
<label class="product-detail-configurator-option-label{% if isCombinableCls %} {{ isCombinableCls }}{% endif %}{% if option.groupId == '47bfa4e365554d539e34fca7c0439a93' %} automatisierung {% endif %} is-display-{{ displayType }}"
{% if displayType == 'color' and option.colorHexCode %}
style="background-color: {{ option.colorHexCode }}"
{% endif %}
title="{{ option.translated.name }}"
for="{{ optionIdentifier }}">
{% if displayType == 'media' and media %}
{{ block ('buy_widget_configurator_option_radio_label_media') }}
{% elseif displayType == 'text' or
(displayType == 'media' and not media) or
(displayType == 'color' and not option.colorHexCode) %}
{{ block ('buy_widget_configurator_option_radio_label_text') }}
{% endif %}
</label>
{% endblock %}
{% block buy_widget_configurator_option_radio_label_media %}
<span>{{ option.name }}</span>
{% if media.fileExtension == "svg" %}
{% sw_thumbnails 'configurator-option-img-thumbnails' with {
media: media,
sizes: {
'default': '52px'
},
attributes: {
'class': 'product-detail-configurator-option-image svg-image-wbn',
'alt': option.translated.name,
'title': option.translated.name,
'data-wbn-svg-inject' : 'true'
}
} %}
{% else %}
{% sw_thumbnails 'configurator-option-img-thumbnails' with {
media: media,
sizes: {
'default': '52px'
},
attributes: {
'class': 'product-detail-configurator-option-image',
'alt': option.translated.name,
'title': option.translated.name
}
} %}
{% endif %}
{% endblock %}
{% block buy_widget_configurator_group_title %}
<div class="product-detail-configurator-group-title">
{{ block('buy_widget_configurator_group_title_text') }}
</div>
{% if product.customFields['custom_is_gluesystem'] == "true" %}
<div class="product-detail-configurator-group-description">
{{ block('buy_widget_configurator_group_description_text') }}
</div>
{% endif %}
{% endblock %}
{% block buy_widget_configurator_group_description_text %}
{{ group.customFields.custom_variants_description|raw }}
{% endblock %}
{% block buy_widget_configurator_group_title_text %}
{% if group.translated.customFields.wbn_attributes_tooltip %}
<abbr data-toggle="tooltip" data-placement="top"
title="{{ group.translated.customFields.wbn_attributes_tooltip | sw_sanitize }}">{{ parent() }}</abbr>
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}