{# product_detail|printr #}
{% set defaultSelected = (product_detail.images[0].actual_color_id is defined) ? product_detail.images[0].actual_color_id : null %}
{% set colorSection = 1 %}
{% for index,color in attr.values %}
{% set checked = '' %}
{% if request_quote_session.color is defined %}
{% for key,color_detail in request_quote_session.color %}
{% if(key[3:] == index ) %}
{% set checked = 'checked=checked' %}
{% endif %}
{% endfor %}
{% endif %}
{% if checked=='checked=checked' %}
{{ section_counter }}. Select Color ({{ color }})
{% endif %}
{% endfor %}
{% for index,color in attr.values %}
{% set checked = '' %}
{% if request_quote_session.color is defined %}
{% for key,color_detail in request_quote_session.color %}
{% if(key[3:] == index ) %}
{% set checked = 'checked=checked' %}
{% set color_selected = 1 %}
{% endif %}
{% endfor %}
{% endif %}
{# for ETS supplier flow #}
{% if product_detail.supplier.supplier_id==457 %}
{% set slugurl = null %}
{% if product_detail.mapped_color_products[index] is defined and checked=='' %}
{% set slugurl = path('officebrain_product_bundle_product_detail',{'productSlug':product_detail.mapped_color_products[index]})%}
{% else %}
{% endif %}
{% else %}
{% endif %}
{# {% if checked=='checked=checked' %}
{{ color }}
{% else %}
{{ color }}
{% endif %} #}