{% extends '@DcSite/Subaru/base.html.twig' %}
{% block title %}
<title>{{ 'base.seo.configurator.single.title'|trans({
'%brand%' : car.brand.name ?? '',
'%model%' : car.model.title ?? '',
}, 'dc_subaru') }}</title>
{% endblock title %}
{% block seo %}
<meta name="description" content="{{ 'base.seo.configurator.single.description'|trans({
'%brand%' : car.brand.name ?? '',
'%model%' : car.model.title ?? '',
}, 'dc_subaru') }}" />
{% endblock seo %}
{% block ogtagDynamic %}
<meta property="og:title" content="{{ 'base.seo.configurator.single.title'|trans({
'%brand%' : car.brand.name ?? '',
'%model%' : car.model.title ?? '',
}, 'dc_subaru') }}"/>
<meta property="og:description" content="{{ 'base.seo.configurator.single.description'|trans({
'%brand%' : car.brand.name ?? '',
'%model%' : car.model.title ?? '',
}, 'dc_subaru') }}"/>
{% endblock ogtagDynamic %}
{% block css %}
<link type="text/css" media="all" href="{{ asset('/bundles/dcsite/css/modules/configurator.css') }}" rel="stylesheet"/>
<link type="text/css" media="all" href="{{ asset('/bundles/dcsite/css/subaru/configurator.css') }}" rel="stylesheet"/>
<link rel="stylesheet" type="text/css" href="{{ asset('/bundles/core/css/modules/slick/slick.css') }}">
<style>
.color__name #colorPrice{
color: #00AFEA;
}
.box__modification-info-item svg path {
fill: #00AFEA;
}
</style>
{% endblock %}
{% block content %}
<main class="page config">
{% include '@DcSite/Subaru/breadcrumbs.html.twig' with {
pageName: 'Конфигуратор'
} %}
{% include '@DcSite/Modules/configurator/index.html.twig' %}
</main>
{% endblock content %}
{% block pageJs %}
<script>
app.onCustomEvent('appInit', function () {
app.loadJs('{{ asset('/bundles/dcsite/js/sticky.js') }}');
app.loadJs('{{ asset('/bundles/core/js/modules/slick/slick.js') }}');
app.loadJs('{{ asset('/bundles/dcsite/js/configurator.js') }}',function () {
initConfig({
el: '#carConfig',
carId: {{ carId }},
hash: '{{ hash }}',
initUrl: '{{ path('base_configurator_init', {id: '__id__'}) }}',
initByHashUrl: '{{ path('base_configurator_init_by_hash', {hash: '__hash__'}) }}',
totalInitUrl: '{{ path('base_configurator_init_total') }}',
initCreditUrl: '{{ path('base_configurator_init_credit') }}',
accessoryUrl: '{{ path('base_configurator_load_accessory') }}',
optionsUrl: '{{ path('base_configurator_load_options') }}',
initInsuranceUrl : '{{ path('base_casco_options') }}',
saveUrl : '{{ path('base_configurator_save') }}',
privacyUrl: '{{ privacyUrl }}',
baseCoefficientType : {{ baseType }},
listCoefficientType : {{ listType }},
optionCoefficientType : {{ optionType }},
withHybrid : true
});
});
});
</script>
{% endblock pageJs %}