{% extends '@SyliusShop/layout.html.twig' %}
{% set emptyGif = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==' %}
{% block content %}
<div class="configurateur-page" data-url="{{ path('app_configurateur_ajax_refresh') }}">
{% if is_mobile() %}
<span class="accordeon volet1 active" data-volet="1">1 - {{ 'app.front.configurateur.part1'|trans }} <i class="chevron down icon"></i></span>
{% endif %}
<div class="left {% if is_mobile() %} active{% endif %} ">
<a href="#" class="config-back">{{ 'app.front.configurateur.back'|trans }}</a>
<h1 class="header">{{ 'app.front.configurateur.part2'|trans }} <strong>{{ 'app.front.configurateur.part3'|trans }}</strong> {{ 'app.front.configurateur.part32'|trans }}</h1>
<ul id="progressbar">
<li class="active">{{ 'app.front.configurateur.part4'|trans }}</li>
<li>{{ 'app.front.configurateur.part5'|trans }}</li>
<li>{{ 'app.front.configurateur.part6'|trans }}</li>
<li>{{ 'app.front.configurateur.part7'|trans }}</li>
</ul>
<div class="block images forme">
<h2 class="title">{{ 'app.front.configurateur.part8'|trans }}</h2>
<div class="content">
<ul>
<li class="active" data-forme="1">
<img src="{{ grandeBesaces[0].product.imagesByType('image_product_icon').first.path|imagine_filter('sylius_shop_product_original') }}" class="ui image" />
<span>{{ grandeBesaces[0].product.name }}</span>
</li>
<li data-forme="2">
<img src="{{ petiteBesaces[0].product.imagesByType('image_product_icon').first.path|imagine_filter('sylius_shop_product_original') }}" class="ui image" />
<span>{{ petiteBesaces[0].product.name }}</span>
</li>
<li data-forme="3">
<img src="{{ sacCompagnons[0].product.imagesByType('image_product_icon').first.path|imagine_filter('sylius_shop_product_original') }}" class="ui image" />
<span>{{ sacCompagnons[0].product.name }}</span>
</li>
</ul>
</div>
</div>
{# Grande besace #}
<div class="block icones colori-base1 imagehover" data-zindex="1">
<h2 class="title">{{ 'app.front.configurateur.part9'|trans }}</h2>
<div class="content">
<ul>
{% for grandeBesace in grandeBesaces %}
<li data-collection="{{ grandeBesace.collection }}" data-fullimage="{{ grandeBesace.imagesByType('image_product_saczip')|length > 0 ? grandeBesace.imagesByType('image_product_saczip').first.path|imagine_filter('sylius_shop_product_original') : emptyGif }}" data-idvariant="{{ grandeBesace.id }}">
{% if grandeBesace.imagesByType('image_product_main')|length > 0 %}
{% set source_path = grandeBesace.imagesByType('image_product_main').first.path %}
{% set path = source_path|imagine_filter('app_taxon_image_ctas') %}
<img src="{{ path }}" />
{% else %}
<img src="{{ emptyGif }}" />
{% endif %}
{% if grandeBesace.imagesByType('image_product_secondary')|length > 0 %}
{% set source_path = grandeBesace.imagesByType('image_product_secondary').first.path %}
{% set path = source_path|imagine_filter('app_taxon_image_ctas') %}
<img class="hover" src="{{ path }}" />
{% endif %}
<div class="flag">
{% include 'partials/block-callout.html.twig' with {'callout': grandeBesace.badge} only %}
</div>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="block icones colori-base2 imagehover" data-zindex="1">
<h2 class="title">{{ 'app.front.configurateur.part10'|trans }}</h2>
<div class="content">
<ul>
{% for petiteBesace in petiteBesaces %}
<li data-collection="{{ petiteBesace.collection }}" data-fullimage="{{ petiteBesace.imagesByType('image_product_saczip')|length > 0 ? petiteBesace.imagesByType('image_product_saczip').first.path|imagine_filter('sylius_shop_product_original') : emptyGif }}" data-idvariant="{{ petiteBesace.id }}">
{% if petiteBesace.imagesByType('image_product_main')|length > 0 %}
{% set source_path = petiteBesace.imagesByType('image_product_main').first.path %}
{% set path = source_path|imagine_filter('app_product_small_thumbnail_listing') %}
<img src="{{ path }}" />
{# <img src="{{ petiteBesace.imagesByType('image_product_main').first.path|imagine_filter('sylius_shop_product_original') }}" /> #}
{% else %}
<img src="{{ emptyGif }}" />
{% endif %}
{% if petiteBesace.imagesByType('image_product_secondary')|length > 0 %}
{% set source_path = petiteBesace.imagesByType('image_product_secondary').first.path %}
{% set path = source_path|imagine_filter('app_product_small_thumbnail_listing') %}
<img class="hover" src="{{ path }}" />
{% endif %}
<div class="flag">
{% include 'partials/block-callout.html.twig' with {'callout': petiteBesace.badge} only %}
</div>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="block icones colori-base3 imagehover" data-zindex="1">
<h2 class="title">{{ 'app.front.configurateur.part11'|trans }}</h2>
<div class="content">
<ul>
{% for sacCompagnon in sacCompagnons %}
<li data-collection="{{ sacCompagnon.collection }}" data-fullimage="{{ sacCompagnon.imagesByType('image_product_saczip')|length > 0 ? sacCompagnon.imagesByType('image_product_saczip').first.path|imagine_filter('sylius_shop_product_original') : emptyGif }}" data-idvariant="{{ sacCompagnon.id }}">
{% if sacCompagnon.imagesByType('image_product_main')|length > 0 %}
{% set source_path = sacCompagnon.imagesByType('image_product_main').first.path %}
{% set path = source_path|imagine_filter('app_product_small_thumbnail_listing') %}
<img src="{{ path }}" />
{# <img src="{{ sacCompagnon.imagesByType('image_product_main').first.path|imagine_filter('sylius_shop_product_original') }}" /> #}
{% else %}
<img src="{{ emptyGif }}" />
{% endif %}
{% if sacCompagnon.imagesByType('image_product_secondary')|length > 0 %}
{% set source_path = sacCompagnon.imagesByType('image_product_secondary').first.path %}
{% set path = source_path|imagine_filter('app_product_small_thumbnail_listing') %}
<img class="hover" src="{{ path }}" />
{% endif %}
<div class="flag">
{% include 'partials/block-callout.html.twig' with {'callout': sacCompagnon.badge} only %}
</div>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="block icones rabat1" data-zindex="2">
<h2 class="title">{{ 'app.front.configurateur.part12'|trans }}</h2>
<div class="content">
<ul>
{% for rabatGrandeBesace in rabatGrandeBesaces %}
<li data-collection="{{ rabatGrandeBesace.collection }}" data-fullimage="{{ rabatGrandeBesace.imagesByType('image_product_saczip')|length > 0 ? rabatGrandeBesace.imagesByType('image_product_saczip').first.path|imagine_filter('sylius_shop_product_original') : emptyGif }}" data-idvariant="{{ rabatGrandeBesace.id }}">
{% if rabatGrandeBesace.imagesByType('image_product_main')|length > 0 %}
{% set source_path = rabatGrandeBesace.imagesByType('image_product_main').first.path %}
{% set path = source_path|imagine_filter('app_product_small_thumbnail_listing') %}
<img src="{{ path }}" class="zoom" />
{# <img src="{{ rabatGrandeBesace.imagesByType('image_product_main').first.path|imagine_filter('sylius_shop_product_original') }}" /> #}
{% else %}
<img src="{{ emptyGif }}" />
{% endif %}
<div class="flag">
{% include 'partials/block-callout.html.twig' with {'callout': rabatGrandeBesace.badge} only %}
</div>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="block images rabat2 condition" data-zindex="2">
<h2 class="title">{{ 'app.front.configurateur.part13'|trans }}</h2>
<div class="content">
<ul>
<li class="active" data-rabat="1">
<img src="{{ rabatPetiteBesaces[0].product.imagesByType('image_product_icon').first.path|imagine_filter('sylius_shop_product_original') }}" class="ui image" />
<span>{{ 'app.front.configurateur.part14'|trans }}</span>
</li>
<li data-rabat="2">
<img src="{{ rabatBesacePetitNuages[0].product.imagesByType('image_product_icon').first.path|imagine_filter('sylius_shop_product_original') }}" class="ui image" />
<span>{{ 'app.front.configurateur.part15'|trans }}</span>
</li>
</ul>
</div>
</div>
<div class="block icones rabat21" data-zindex="2">
<h2 class="title">{{ 'app.front.configurateur.part16'|trans }}</h2>
<div class="content">
<ul>
{% for rabatPetiteBesace in rabatPetiteBesaces %}
<li data-collection="{{ rabatPetiteBesace.collection }}" data-fullimage="{{ rabatPetiteBesace.imagesByType('image_product_saczip')|length > 0 ? rabatPetiteBesace.imagesByType('image_product_saczip').first.path|imagine_filter('sylius_shop_product_original') : emptyGif }}"
data-idvariant="{{ rabatPetiteBesace.id }}"
data-rabat="1"
>
{% if rabatPetiteBesace.imagesByType('image_product_main')|length > 0 %}
{% set source_path = rabatPetiteBesace.imagesByType('image_product_main').first.path %}
{% set path = source_path|imagine_filter('app_product_small_thumbnail_listing') %}
<img src="{{ path }}" class="zoom" />
{# <img src="{{ rabatPetiteBesace.imagesByType('image_product_main').first.path|imagine_filter('sylius_shop_product_original') }}" /> #}
{% else %}
<img src="{{ emptyGif }}" />
{% endif %}
<div class="flag">
{% include 'partials/block-callout.html.twig' with {'callout': rabatPetiteBesace.badge} only %}
</div>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="block icones rabat22" data-zindex="2">
{# <span class="ou">Ou</span> #}
<h2 class="title">{{ 'app.front.configurateur.part17'|trans }}</h2>
<div class="content">
<ul>
{% for rabatBesacePetitNuage in rabatBesacePetitNuages %}
<li data-collection="{{ rabatBesacePetitNuage.collection }}" data-fullimage="{{ rabatBesacePetitNuage.imagesByType('image_product_saczip')|length > 0 ? rabatBesacePetitNuage.imagesByType('image_product_saczip').first.path|imagine_filter('sylius_shop_product_original') : emptyGif }}"
data-idvariant="{{ rabatBesacePetitNuage.id }}"
data-rabat="2"
>
{% if rabatBesacePetitNuage.imagesByType('image_product_main')|length > 0 %}
{% set source_path = rabatBesacePetitNuage.imagesByType('image_product_main').first.path %}
{% set path = source_path|imagine_filter('app_product_small_thumbnail_listing') %}
<img src="{{ path }}" class="zoom" />
{# <img src="{{ rabatBesacePetitNuage.imagesByType('image_product_main').first.path|imagine_filter('sylius_shop_product_original') }}" /> #}
{% else %}
<img src="{{ emptyGif }}" />
{% endif %}
<div class="flag">
{% include 'partials/block-callout.html.twig' with {'callout': rabatBesacePetitNuage.badge} only %}
</div>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="block icones rabat3" data-zindex="2">
<h2 class="title">{{ 'app.front.configurateur.part18'|trans }}</h2>
<div class="content">
<ul>
{% for rabatSacCompagnon in rabatSacCompagnons %}
<li data-collection="{{ rabatSacCompagnon.collection }}" data-fullimage="{{ rabatSacCompagnon.imagesByType('image_product_saczip')|length > 0 ? rabatSacCompagnon.imagesByType('image_product_saczip').first.path|imagine_filter('sylius_shop_product_original') : emptyGif }}" data-idvariant="{{ rabatSacCompagnon.id }}">
{% if rabatSacCompagnon.imagesByType('image_product_main')|length > 0 %}
{% set source_path = rabatSacCompagnon.imagesByType('image_product_main').first.path %}
{% set path = source_path|imagine_filter('app_product_small_thumbnail_listing') %}
<img src="{{ path }}" class="zoom" />
{# <img src="{{ rabatSacCompagnon.imagesByType('image_product_main').first.path|imagine_filter('sylius_shop_product_original') }}" /> #}
{% else %}
<img src="{{ emptyGif }}" />
{% endif %}
<div class="flag">
{% include 'partials/block-callout.html.twig' with {'callout': rabatSacCompagnon.badge} only %}
</div>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="block images laniere3 condition" data-zindex="3">
<h2 class="title">{{ 'app.front.configurateur.part19'|trans }}</h2>
<div class="content">
<ul>
<li class="active" data-laniere="1">
<img src="{{ petiteLanieres[0].product.imagesByType('image_product_icon').first.path|imagine_filter('sylius_shop_product_original') }}" class="ui image" />
<span>{{ 'app.front.configurateur.part20'|trans }}</span>
</li>
<li data-laniere="2">
<img src="{{ grandeLanieres[0].product.imagesByType('image_product_icon').first.path|imagine_filter('sylius_shop_product_original') }}" class="ui image" />
<span>{{ 'app.front.configurateur.part21'|trans }}</span>
</li>
</ul>
</div>
</div>
<div class="block icones laniere31 imagehover" data-zindex="3">
<h2 class="title">{{ 'app.front.configurateur.part22'|trans }}</h2>
<div class="content">
<ul>
{% for petiteLaniere in petiteLanieres %}
<li data-collection="{{ petiteLaniere.collection }}" data-fullimage="{{ petiteLaniere.imagesByType('image_product_saczip')|length > 0 ? petiteLaniere.imagesByType('image_product_saczip').first.path|imagine_filter('sylius_shop_product_original') : emptyGif }}"
data-idvariant="{{ petiteLaniere.id }}"
data-laniere="1"
>
{% if petiteLaniere.imagesByType('image_product_main')|length > 0 %}
{% set source_path = petiteLaniere.imagesByType('image_product_main').first.path %}
{% set path = source_path|imagine_filter('app_product_small_thumbnail_listing') %}
<img src="{{ path }}" />
{# <img src="{{ petiteLaniere.imagesByType('image_product_main').first.path|imagine_filter('sylius_shop_product_original') }}" /> #}
{% else %}
<img src="{{ emptyGif }}" />
{% endif %}
{% if petiteLaniere.imagesByType('image_product_secondary')|length > 0 %}
{% set source_path = petiteLaniere.imagesByType('image_product_secondary').first.path %}
{% set path = source_path|imagine_filter('app_product_small_thumbnail_listing') %}
<img class="hover" src="{{ path }}" />
{% endif %}
<div class="flag">
{% include 'partials/block-callout.html.twig' with {'callout': petiteLaniere.badge} only %}
</div>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="block icones laniere32 imagehover" data-zindex="3">
<h2 class="title">{{ 'app.front.configurateur.part23'|trans }}</h2>
<div class="content">
<ul>
{% for grandeLaniere in grandeLanieres %}
<li data-collection="{{ grandeLaniere.collection }}" data-fullimage="{{ grandeLaniere.imagesByType('image_product_saczip')|length > 0 ? grandeLaniere.imagesByType('image_product_saczip').first.path|imagine_filter('sylius_shop_product_original') : emptyGif }}"
data-idvariant="{{ grandeLaniere.id }}"
data-laniere="2"
>
{% if grandeLaniere.imagesByType('image_product_main')|length > 0 %}
{% set source_path = grandeLaniere.imagesByType('image_product_main').first.path %}
{% set path = source_path|imagine_filter('app_product_small_thumbnail_listing') %}
<img src="{{ path }}" />
{# <img src="{{ grandeLaniere.imagesByType('image_product_main').first.path|imagine_filter('sylius_shop_product_original') }}" /> #}
{% else %}
<img src="{{ emptyGif }}" />
{% endif %}
{% if grandeLaniere.imagesByType('image_product_secondary')|length > 0 %}
{% set source_path = grandeLaniere.imagesByType('image_product_secondary').first.path %}
{% set path = source_path|imagine_filter('app_product_small_thumbnail_listing') %}
<img class="hover" src="{{ path }}" />
{% endif %}
<div class="flag">
{% include 'partials/block-callout.html.twig' with {'callout': grandeLaniere.badge} only %}
</div>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="block icones images accessoire condition" data-zindex="4">
<h2 class="title">{{ 'app.front.configurateur.part24'|trans }}</h2>
<div class="content">
<ul>
{% for accessorieForme in accessoriesFormes %}
<li data-accessoire="{{ accessorieForme.product.id }}">
<img src="{{ accessorieForme.product.imagesByType('image_product_icon').first.path|imagine_filter('sylius_shop_product_original') }}" class="ui image" />
<span>{{ accessorieForme.product.name }}</span>
</li>
{% endfor %}
</ul>
</div>
</div>
{% for accessorieForme in accessoriesFormes %}
<div class="block icones accessoire-products accessoire-products{{ accessorieForme.product.id }}" data-zindex="4">
<h2 class="title">{{ 'app.front.configurateur.part25'|trans }}</h2>
<div class="content">
<ul>
{% for accessorie in accessories %}
{% if accessorie.product is defined and accessorieForme.product.id == accessorie.product.id %}
<li data-collection="{{ accessorie.collection }}" data-fullimage="{{ accessorie.imagesByType('image_product_saczip')|length > 0 ? accessorie.imagesByType('image_product_saczip').first.path|imagine_filter('sylius_shop_product_original') : emptyGif }}"
data-idvariant="{{ accessorie.id }}"
data-accessoire="{{ accessorieForme.product.id }}"
>
{% if accessorie.imagesByType('image_product_main')|length > 0 %}
{% set source_path = accessorie.imagesByType('image_product_main').first.path %}
{% set path = source_path|imagine_filter('app_product_small_thumbnail_listing') %}
<img src="{{ path }}" />
{# <img src="{{ accessorie.imagesByType('image_product_main').first.path|imagine_filter('sylius_shop_product_original') }}" /> #}
{% else %}
<img src="{{ emptyGif }}" />
{% endif %}
<div class="flag">
{% include 'partials/block-callout.html.twig' with {'callout': accessorie.badge} only %}
</div>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
{% endfor %}
</div>
{% if is_mobile() %}
<span class="accordeon volet2 active" data-volet="2">2 - {{ 'app.front.configurateur.part26'|trans }} <i class="chevron down icon"></i></span>
{% endif %}
<div class="middle {% if is_mobile() %} active{% endif %}">
<div class="middle-sticky">
<div class="middle-ctn {% if is_mobile() %} active{% endif %} ">
<div class="content">
<div class="zindex zindex1">
{# <img src="{{ asset('webapic-theme/images/asupprimer/saczip.jpg') }}" class="ui image principal" /> #}
</div>
<div class="zindex zindex2">
{# <img src="{{ asset('webapic-theme/images/asupprimer/saczip.jpg') }}" class="ui image principal" /> #}
</div>
<div class="zindex zindex3">
{# <img src="{{ asset('webapic-theme/images/asupprimer/saczip.jpg') }}" class="ui image principal" /> #}
</div>
<div class="zindex zindex4">
{# <img src="{{ asset('webapic-theme/images/asupprimer/saczip.jpg') }}" class="ui image principal" /> #}
</div>
<div class="links-ctn">
<div class="random" data-url="{{ path('app_configurateur_ajax_random') }}">
<button type="submit" class="submit">
<img src="{{ asset('webapic-theme/images/config-shuffle.svg') }}" class="ui image" />
{# <img src="{{ asset('webapic-theme/images/config-magic.svg') }}" class="ui image" /> #}
<span>{{ 'app.front.configurateur.part27'|trans }}</span>
</button>
</div>
<div class="addtocart-action">
<button type="submit" class="submit lien-saumon">
<img src="{{ asset('webapic-theme/images/icon-produit-panier.svg') }}" class="ui image" />
{{ 'app.front.configurateur.part28'|trans }}
</button>
</div>
</div>
</div>
</div>
</div>
</div>
{% if is_mobile() %}
<span class="accordeon volet3" data-volet="3">3 - {{ 'app.front.configurateur.part29'|trans }} <i class="chevron down icon"></i></span>
{% endif %}
<div class="right">
<div class="close-ctn"><i class="close"></i></div>
<span class="title">{{ 'app.front.configurateur.part30'|trans }}</span>
<div class="content">
</div>
</div>
</div>
{% endblock %}