<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="feelity">
<title>{% block title %}{% endblock %}</title>
<link rel="apple-touch-icon" sizes="180x180" href="{{ asset('assets/favicons/apple-touch-icon.png') }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ asset('assets/favicons/favicon-32x32.png') }}">
<link rel="manifest" href="{{ asset('assets/favicons/site.webmanifest') }}">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="theme-color" content="#ffffff">
<meta name="robots" content="noindex">
<meta name="googlebot" content="noindex">
<link rel="stylesheet" href="{{ asset('assets/css/style.css?=v1.0.6') }}">
<link rel="stylesheet" href="{{ asset('assets/css/custom_style.css?=v1.0.6') }}">
{% block stylesheets %}{% endblock %}
<!-- endbuild -->
</head>
<body class="disableAllAnimation {% block body_class %}{% endblock %}">
<div class="main ">
<!-- NAVBAR MOBILE-->
<div class="mask"></div>
<div class="sidenav">
<ul class="">
<li class="nav-item {% if app.request.attributes.get('_route') == 'main' %} is-active{% endif %}">
<a class="nav-link" href="{{ path("main") }}">
{% trans %}nav.helpAndServices{% endtrans %}
</a>
</li>
<li class="nav-item {% if app.request.attributes.get('_route') == 'main_sav_create' %} is-active{% endif %}">
<a class="nav-link" href="{{ path("main_sav_create") }}">
{% trans %}nav.requestSupport{% endtrans %}
</a>
</li>
<li class="nav-item {% if app.request.attributes.get('_route') == 'main_sav_follow' %} is-active{% endif %}">
{% if is_granted('ROLE_PROFESSIONAL') %}
<a class="nav-link" href="{{ path("app_professional_account") }}">
{% trans %}nav.followMySupport{% endtrans %}
</a>
{% else %}
<a class="nav-link" href="{{ path("main_sav_follow") }}">
{% trans %}nav.followSupport{% endtrans %}
</a>
{% endif %}
</li>
<li class="nav-item {% if app.request.attributes.get('_route') == 'main_sav_product' %} is-active{% endif %}">
<a class="nav-link" href="{{ path("main_sav_product") }}">
{% trans %}nav.registerProduct{% endtrans %}
</a>
</li>
<li class="nav-item">
<a target="_blank" class="nav-link"
{% if is_granted('ROLE_PROFESSIONAL') %} href="https://b2b.racer1927.com/"
{% else %} class="nav-link" href="https://www.cebe.com/fr/288-pieces-detachees"
{% endif %}>
{% trans %}nav.sparePart{% endtrans %}
</a>
</li>
</ul>
<div class="d-flex align-items-center justify-content-center mr-3">
<i class="fas fa-flag mr-1"></i>
<ul class="list-inline list-unstyled d-flex mb-0 align-items-center">
{% for locale in locales %}
<li class="list-inline-item m-0">
{% if locale == app.request.locale %}
<a class="p-2 text-dark border-0" href="{{ path('main', {'_locale': locale}) }}" target="_self" ><u><b>{{locale}}</b></u></a>
{% else %}
<a class="p-2 text-dark border-0" href="{{ path('main', {'_locale': locale}) }}" target="_self" >{{locale}}</a>
{% endif %}
</li>
{% if loop.last %}
{% else %}
<p class="mb-0"> / </p>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
<!-- NAVBAR MOBILE-->
<!-- NAVBAR -->
<nav class="navbar navbar-light navbar-expand-xl">
<div class="nav-content">
<div class="nav-icon">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</div>
<a class="navbar-brand logo" href="{{ path("main") }}">
<img src="{{ asset('assets/img/logo-cebe.svg') }}" alt="logo cebe" class="nav__logo-img" />
</a>
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
<ul class="navbar-nav mr-auto">
<li class="nav-item {% if app.request.attributes.get('_route') == 'main' %} active{% endif %}">
<a class="nav-link" href="{{ path("main") }}">
{% trans %}nav.helpAndServices{% endtrans %}
</a>
</li>
<li class="nav-item {% if app.request.attributes.get('_route') == 'main_sav_create' %} active{% endif %}">
<a class="nav-link" href="{{ path("main_sav_create") }}">
{% trans %}nav.requestSupport{% endtrans %}
</a>
</li>
<li class="nav-item {% if app.request.attributes.get('_route') == 'main_sav_follow' %} active{% endif %}">
{% if is_granted('ROLE_PROFESSIONAL') %}
<a class="nav-link" href="{{ path("app_professional_account") }}">
{% trans %}nav.followMySupport{% endtrans %}
</a>
{% else %}
<a class="nav-link" href="{{ path("main_sav_follow") }}">
{% trans %}nav.followSupport{% endtrans %}
</a>
{% endif %}
</li>
<li class="nav-item {% if app.request.attributes.get('_route') == 'main_sav_product' %} active{% endif %}">
<a class="nav-link" href="{{ path("main_sav_product") }}">
{% trans %}nav.registerProduct{% endtrans %}
</a>
</li>
<li class="nav-item">
<a target="_blank" class="nav-link"
{% if is_granted('ROLE_PROFESSIONAL') %} href="https://b2b.racer1927.com/"
{% else %} class="nav-link" href="https://www.cebe.com/fr/288-pieces-detachees"
{% endif %}>
{% trans %}nav.sparePart{% endtrans %}
</a>
</li>
</ul>
<div class="profile">
{% if is_granted('ROLE_ADMIN') %}
<a href="#" class="btn" data-container="body" data-toggle="popover" data-html="true" data-trigger="focus" data-placement="bottom" data-content="<ul>
<li><a href='{{ path('app_sav') }}' target='_self'>{% trans %}nav.admin.profile{% endtrans %}</a></li>
<li><a href='{{ path('app_logout') }}' target='_self'>{% trans %}nav.logout{% endtrans %}</a></li>
</ul>">
<i class="fas fa-user"></i>
{{ app.user.lastName | upper }} {{ app.user.name }}
</a>
{% elseif is_granted('ROLE_PROFESSIONAL') %}
<a href="#" class="btn" data-container="body" data-toggle="popover" data-html="true" data-trigger="focus" data-placement="bottom" data-content="<ul>
<li><a href='{{ path('app_professional_account') }}' target='_self'>{% trans %}nav.pro.profile{% endtrans %}</a></li>
<li><a href='{{ path('app_logout') }}' target='_self'>{% trans %}nav.logout{% endtrans %}</a></li>
</ul>">
<i class="fas fa-user"></i>
{% trans %}nav.pro.profile.title{% endtrans %} {{ app.user.code }}
</a>
{% elseif prestashopService.getRacerUser() == null %}
<div class="d-flex align-items-center">
<div class="d-flex align-items-center mr-3">
<i class="fas fa-flag"></i>
<ul class="list-inline list-unstyled d-flex mb-0">
{% for locale in locales %}
<li class="list-inline-item m-0">
{% if locale == app.request.locale %}
<a class="text-dark p-3" href="{{ path('main', {'_locale': locale}) }}" target="_self" ><u><b>{{locale}}</b></u></a>
{% else %}
<a class="text-dark p-3 font-weight-normal" href="{{ path('main', {'_locale': locale}) }}" target="_self" >{{locale}}</a>
{% endif %}
</li>
{% if loop.last %}
{% else %}
<p class="mb-0">/</p>
{% endif %}
{% endfor %}
</ul>
</div>
<a href="#" class="btn" data-container="body" data-sanitize="false" data-toggle="popover" data-html="true" data-trigger="focus" data-placement="bottom"
data-content=
"<ul>
<li><a href='{{ path('app_check_client_account') }}' id='connectToClient'>{% trans %}nav.client{% endtrans %}</a></li>
<li><a href='{{ path('app_check_client_professional_account') }}' id='connectToProfessional'>{% trans %}nav.professional{% endtrans %}</a></li>
</ul>
"
>
<i class="fas fa-user"></i>
{% trans %}nav.login{% endtrans %}
</a>
<a class="d-none" href='{{ path('app_check_client_account') }}' modal-target='#lockModal' id='connectToClientOpener'></a>
<a class="d-none" href='{{ path('app_check_client_professional_account') }}' modal-target='#lockModal' id='connectToProOpener'></a>
</div>
{% else %}
<a href="#" class="btn" data-container="body" data-toggle="popover" data-html="true" data-trigger="focus" data-placement="bottom"
data-content=
"<ul>
<li><a href='{{ path('app_check_client_account_logout') }}' target='_self'>{% trans %}Me déconnecter{% endtrans %}</a></li>
</ul>"
>
<i class="fas fa-user"></i>
{{ prestashopService.getRacerUser().name }}
</a>
{% endif %}
</div>
</div>
<div class="profile mobile">
{% if is_granted('ROLE_ADMIN') %}
<a href="#" class="btn" data-container="body" data-toggle="popover" data-html="true" data-trigger="focus" data-placement="bottom"
data-content=
"<ul>
<li><a href='{{ path('app_sav') }}' target='_self'>{% trans %}nav.admin.profile{% endtrans %}</a></li>
<li><a href='{{ path('app_logout') }}' target='_self'>{% trans %}Me déconnecter{% endtrans %}</a></li>
</ul>"
>
<i class="fas fa-user"></i>
</a>
{% elseif is_granted('ROLE_PROFESSIONAL') %}
<a href="#" class="btn" data-container="body" data-toggle="popover" data-html="true" data-trigger="focus" data-placement="bottom"
data-content=
"<ul>
<li><a href='{{ path('app_professional_account') }}' target='_self'>{% trans %}nav.pro.profile{% endtrans %}</a></li>
<li><a href='{{ path('app_logout') }}' target='_self'>{% trans %}nav.logout{% endtrans %}</a></li>
</ul>"
>
<i class="fas fa-user"></i>
</a>
{% else %}
<a href="#" class="btn" data-container="body" data-sanitize="false" data-toggle="popover" data-html="true" data-trigger="focus" data-placement="bottom"
data-content=
"<ul>
<li><a href='{{ path('app_check_client_account') }}' id='connectToClient'>{% trans %}nav.client{% endtrans %}</a></li>
<li><a href='{{ path('app_check_client_professional_account') }}' id='connectToProfessional'>{% trans %}nav.professional{% endtrans %}</a></li>
</ul>"
>
<i class="fas fa-user"></i>
</a>
<a class="d-none" href='{{ path('app_check_client_account') }}' modal-target='#lockModal' id='connectToClientOpener'></a>
<a class="d-none" href='{{ path('app_check_client_professional_account') }}' modal-target='#lockModal' id='connectToProOpener'></a>
{% endif %}
</div>
</nav>
<!-- NAVBAR -->
<div class="wrapper">
{% block body %}{% endblock %}
</div>
{% block modals %}{% endblock %}
<div class="modal fade block__modal" id="mainModal" tabindex="-1" role="dialog" aria-labelledby="modal upload files" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
</div>
</div>
</div>
<div class="modal fade block__modal" id="lockModal" tabindex="-1" data-backdrop="static" role="dialog" aria-labelledby="modal upload files" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
</div>
</div>
</div>
<!-- FOOTER -->
<footer>
<div class="container">
<div class="row">
<div class="col-12 col-lg-4">
<a href="https://www.cebe.com/{{ app.request.locale }}/" class="button back" target="_blank">
<i class="far fa-arrow-left"></i>
{% trans %}footer.backToShop{% endtrans %}
</a>
<a class="brand" href="{{ path('main') }}">
<img src="{{ asset('assets/img/logo-cebe.svg') }}" alt="logo cebe" class="footer__logo-img">
</a>
<ul class="row mt-4 justify-content-xl-start justify-content-center">
{% for locale in locales %}
<li>
{% if locale == app.request.locale %}
<a class="p-2" href="{{ path('main', {'_locale': locale}) }}" target="_self" ><u><b>{{locale}}</b></u></a>
{% else %}
<a class="p-2" href="{{ path('main', {'_locale': locale}) }}" target="_self" >{{locale}}</a>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
<div class="col-12 col-lg-4">
<p class="title">{% trans %}brand.title{% endtrans %}</p>
<ul>
<li><a href="{{ path("main") }}" target="_self">{% trans %}nav.ourEngagements{% endtrans %}</a></li>
<li><a href="{{ path("main_sav_create") }}" target="_self">{% trans %}nav.requestSupport{% endtrans %}</a></li>
<li><a href="{{ path("main_sav_product") }}" target="_self">{% trans %}nav.registerProduct{% endtrans %}</a></li>
</ul>
</div>
<div class="col-12 col-lg-4">
<p class="title">{% trans %}footer.contact{% endtrans %}</p>
<ul>
<li>1 Rue de la Forge, 13300 Salon-de-Provence</li>
<li><a href="mailto:sav@cebe.com" target="_self">sav@cebe.com</a></li>
</ul>
</div>
</div>
<div class="row subFooter">
<ul>
<li>© CÉBÉ</li>
<li><a href="https://www.cebe.com/{{ app.request.locale }}/content/3-conditions-generales" target="_self">{% trans %}footer.terms{% endtrans %}</a></li>
</ul>
</div>
</div>
</footer>
<!-- FOOTER -->
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.10.4/polyfill.min.js" integrity="sha512-pgx+g4+yrNG/DhUEosN7ontsnk2WayfSuK1Fmy2GrqNi8ktUpIlTpKj80dCLyoEELA6c6m5otWP9RM/lq5UTQg==" crossorigin="anonymous"></script>
<script type="text/javascript" src="{{ asset('assets/dropzone/dropzone.js') }}"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js" integrity="sha512-qTXRIMyZIFb8iQcfjXWCO8+M5Tbc38Qi5WzdPOYZHIlZpzBHG3L3by84BBBOiRGiEb7KKtAOAs5qYdUiZiQNNQ==" crossorigin="anonymous"></script>
<script src="{{ asset('assets/js/slick.js') }}"></script>
<script src="{{ asset('assets/js/script.js?=v1.0.6') }}"></script>
</div>
<script type="text/javascript">
var myDefaultWhiteList = $.fn.popover.Constructor.Default.whiteList;
myDefaultWhiteList.a = ['modal-target', 'href', 'target', 'data'];
const dropdownElementList = document.querySelectorAll('.dropdown-toggle')
const dropdownList = [...dropdownElementList].map(dropdownToggleEl => new bootstrap.Dropdown(dropdownToggleEl))
const alerts = document.querySelectorAll('[id^="alert-"]');
if (alerts.length > 0) {
setTimeout(() => {
$(".alert").alert('close')
}, 6000)
}
var modal = {
loadAndOpen: function(linkObj){
$.get(linkObj.attr("href"), function (data) {
$(linkObj.attr("modal-target")).find(".modal-content").html(data);
$(linkObj.attr("modal-target")).modal('show');
$(linkObj.attr("modal-target")).find(".modal-content").find("[jqueryready]").each(function(){
eval($(this).attr("jqueryready"));
});
$(linkObj.attr("modal-target")).find("[data-init-plugin='select2']").each(function(){
$(this).find("[value='']").text($(this).attr("placeholder"));
$(this).select2({ width: '100%' });
});
$(linkObj.attr("modal-target")).find('.cdgahead').each(function () {
cdgaheadinit($(this));
});
}).fail(function (xhr, status, error) {
document.location.href = document.location.reload();
});
},
findModalForm: function(obj){
return obj.closest(".modal-content").find("form");
},
submitAndRedirectIfSuccess: function (form) {
var url = form.attr("action");
$.post(url, form.serialize(), function (data, textStatus, xhr) {
if (xhr.status == 202) {
form.closest(".modal").modal("hide");
setTimeout(function () {
const redirectUrlItemKey = localStorage.getItem('cebe-sav-redirect-url')
if (redirectUrlItemKey) {
const item = JSON.parse(redirectUrlItemKey)
window.location.assign(item.path)
} else {
document.location.reload();
}
}, 400);
return;
}
var modalcontent = form.closest(".modal-content");
modalcontent.html(data);
modalcontent.find("[jqueryready]").each(function(){
eval($(this).attr("jqueryready"));
});
modalcontent.find("[data-init-plugin='select2']").each(function(){
$(this).find("[value='']").text($(this).attr("placeholder"));
$(this).select2({ width: '100%' });
});
modalcontent.find('.cdgahead').each(function () {
cdgaheadinit($(this));
});
}).fail(function (xhr, status, error) {
document.location.href = document.location.reload();
});
},
submitAndClose: function (form) {
var url = form.attr("action");
$.post(url, form.serialize(), function (data, textStatus, xhr) {
if(xhr.status == 202){
form.closest(".modal").modal("hide");
return;
}
var modalcontent = form.closest(".modal-content");
modalcontent.html(data);
modalcontent.find("[jqueryready]").each(function(){
eval($(this).attr("jqueryready"));
});
modalcontent.find("[data-init-plugin='select2']").each(function(){
$(this).find("[value='']").text($(this).attr("placeholder"));
$(this).select2({ width: '100%' });
});
modalcontent.find('.cdgahead').each(function () {
cdgaheadinit($(this));
});
});
},
submit : function(form, fn) {
var url = form.attr("action");
$.post(url, form.serialize(), function (data, textStatus, xhr) {
if(xhr.status == 202){
form.closest(".modal").modal("hide");
form.closest(".modal-backdrop").modal("hide");
fn(data);
return;
}
var modalcontent = form.closest(".modal-content");
modalcontent.html(data);
modalcontent.find("[jqueryready]").each(function(){
eval($(this).attr("jqueryready"));
});
modalcontent.find("[data-init-plugin='select2']").each(function(){
$(this).find("[value='']").text($(this).attr("placeholder"));
$(this).select2({ width: '100%' });
});
modalcontent.find('.cdgahead').each(function () {
cdgaheadinit($(this));
});
}).fail(function (xhr, status, error) {
});
}
};
$(document).on('click','a#connectToClient',function(e){
e.preventDefault()
$('#connectToClientOpener').click()
})
$(document).on('click','a#connectToProfessional',function(e) {
e.preventDefault()
const element = document.querySelector('#connectToProfessional')
if ('redirectUrl' in element.dataset) {
localStorage.setItem('cebe-sav-redirect-url', JSON.stringify({
path: window.location.href + element.dataset.redirectUrl,
})
);
}
$('#connectToProOpener').click()
})
$(document).ready(function(){
$("body").removeClass("disableAllAnimation");
$("[modal-target]").each(function(){
$(this).click(function(){
modal.loadAndOpen($(this));
$(this).blur();
return false;
});
});
});
</script>
{% block javascripts %}{% endblock %}
</body>
</html>