src/DcSiteBundle/Resources/views/Subaru/Configurator/index.html.twig line 1

Open in your IDE?
  1. {% extends '@DcSite/Subaru/base.html.twig' %}
  2. {% block title %}
  3.     <title>{{ 'base.seo.configurator.single.title'|trans({
  4.             '%brand%' :  car.brand.name ?? '',
  5.             '%model%' : car.model.title ?? '',
  6.         }, 'dc_subaru') }}</title>
  7. {% endblock title %}
  8. {% block seo %}
  9.     <meta name="description" content="{{ 'base.seo.configurator.single.description'|trans({
  10.         '%brand%' : car.brand.name ?? '',
  11.         '%model%' : car.model.title ?? '',
  12.     }, 'dc_subaru') }}" />
  13. {% endblock seo %}
  14. {% block ogtagDynamic %}
  15.     <meta property="og:title" content="{{ 'base.seo.configurator.single.title'|trans({
  16.         '%brand%' : car.brand.name ?? '',
  17.         '%model%' : car.model.title ?? '',
  18.     }, 'dc_subaru') }}"/>
  19.     <meta property="og:description" content="{{ 'base.seo.configurator.single.description'|trans({
  20.         '%brand%' : car.brand.name ?? '',
  21.         '%model%' : car.model.title ?? '',
  22.     }, 'dc_subaru') }}"/>
  23. {% endblock ogtagDynamic %}
  24. {% block css %}
  25.     <link type="text/css" media="all" href="{{ asset('/bundles/dcsite/css/modules/configurator.css') }}" rel="stylesheet"/>
  26.     <link type="text/css" media="all" href="{{ asset('/bundles/dcsite/css/subaru/configurator.css') }}" rel="stylesheet"/>
  27.     <link rel="stylesheet" type="text/css" href="{{ asset('/bundles/core/css/modules/slick/slick.css') }}">
  28.     <style>
  29.         .color__name #colorPrice{
  30.             color: #00AFEA;
  31.         }
  32.         .box__modification-info-item svg path {
  33.             fill: #00AFEA;
  34.         }
  35.     </style>
  36. {% endblock %}
  37. {% block content %}
  38.     <main class="page config">
  39.         {% include '@DcSite/Subaru/breadcrumbs.html.twig' with {
  40.             pageName: 'Конфигуратор'
  41.         } %}
  42.         {% include '@DcSite/Modules/configurator/index.html.twig' %}
  43.     </main>
  44. {% endblock content %}
  45. {% block pageJs %}
  46.     <script>
  47.         app.onCustomEvent('appInit', function () {
  48.             app.loadJs('{{ asset('/bundles/dcsite/js/sticky.js') }}');
  49.             app.loadJs('{{ asset('/bundles/core/js/modules/slick/slick.js') }}');
  50.             app.loadJs('{{ asset('/bundles/dcsite/js/configurator.js') }}',function () {
  51.                 initConfig({
  52.                     el: '#carConfig',
  53.                     carId: {{ carId }},
  54.                     hash: '{{ hash }}',
  55.                     initUrl: '{{ path('base_configurator_init', {id: '__id__'}) }}',
  56.                     initByHashUrl: '{{ path('base_configurator_init_by_hash', {hash: '__hash__'}) }}',
  57.                     totalInitUrl: '{{ path('base_configurator_init_total') }}',
  58.                     initCreditUrl: '{{ path('base_configurator_init_credit') }}',
  59.                     accessoryUrl: '{{ path('base_configurator_load_accessory') }}',
  60.                     optionsUrl: '{{ path('base_configurator_load_options') }}',
  61.                     initInsuranceUrl : '{{ path('base_casco_options') }}',
  62.                     saveUrl : '{{ path('base_configurator_save') }}',
  63.                     privacyUrl: '{{ privacyUrl }}',
  64.                     baseCoefficientType : {{ baseType }},
  65.                     listCoefficientType : {{ listType }},
  66.                     optionCoefficientType : {{ optionType }},
  67.                     withHybrid : true
  68.                 });
  69.             });
  70.         });
  71.     </script>
  72. {% endblock pageJs %}