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

Open in your IDE?
  1. {% extends '@DcSite/Nissan/base.html.twig' %}
  2. {% block title %}
  3.     <title>{{ 'pages.car_card.configurator'|trans({}, 'dc_toyota_od') }}</title>
  4. {% endblock title %}
  5. {% block css %}
  6.     <link type="text/css" media="all" href="{{ asset('/bundles/dcsite/css/nissan/configurator.css') }}" rel="stylesheet"/>
  7.     <link type="text/css" media="all" href="{{ asset('/bundles/dcsite/css/modules/configurator.css') }}" rel="stylesheet"/>
  8.     <link rel="stylesheet" type="text/css" href="{{ asset('/bundles/core/css/modules/slick/slick.css') }}">
  9.     <style>
  10.         .color__name #colorPrice{
  11.             color: #c3092e;
  12.         }
  13.         .box__modification-info-item svg path {
  14.             fill: #c3092e;
  15.         }
  16.     </style>
  17. {% endblock %}
  18. {% block content %}
  19.     <section class="title-breadcrumbs">
  20.         <div class="container">
  21.             <div class="row">
  22.                 <div class="col-md-12 col-lg-12">
  23.                     <div class="vidi_breadcrumbs" >
  24.                         <span>
  25.                             <a href="{{ path('nissan_homepage') }}" ><span>{{ 'pages.breadcrumbs.main'|trans({},'dc_nissan') }}</span></a>
  26.                         </span>
  27.                         <span class="bc_sep"> → </span>
  28.                         <span>
  29.                             <span class="last-breadcrumbs">{{ 'pages.car_card.configurator'|trans({}, 'dc_toyota_od') }}</span>
  30.                         </span>
  31.                     </div>
  32.                 </div>
  33.             </div>
  34.         </div>
  35.     </section>
  36.     {% include '@DcSite/Modules/configurator/index.html.twig' %}
  37. {% endblock content %}
  38. {% block pageJs %}
  39.     <script>
  40.         app.onCustomEvent('appInit', function () {
  41.             app.loadJs('{{ asset('/bundles/dcsite/js/sticky.js') }}');
  42.             app.loadJs('{{ asset('/bundles/core/js/modules/slick/slick.js') }}');
  43.             app.loadJs('{{ asset('/bundles/dcsite/js/configurator.js') }}',function () {
  44.                 initConfig({
  45.                     el: '#carConfig',
  46.                     carId: {{ carId }},
  47.                     hash: '{{ hash }}',
  48.                     initUrl: '{{ path('base_configurator_init', {id: '__id__'}) }}',
  49.                     initByHashUrl: '{{ path('base_configurator_init_by_hash', {hash: '__hash__'}) }}',
  50.                     totalInitUrl: '{{ path('base_configurator_init_total') }}',
  51.                     initCreditUrl: '{{ path('base_configurator_init_credit') }}',
  52.                     accessoryUrl: '{{ path('base_configurator_load_accessory') }}',
  53.                     optionsUrl: '{{ path('base_configurator_load_options') }}',
  54.                     initInsuranceUrl : '{{ path('base_casco_options') }}',
  55.                     saveUrl : '{{ path('base_configurator_save') }}',
  56.                     privacyUrl: '{{ privacyUrl }}',
  57.                     baseCoefficientType : {{ baseType }},
  58.                     listCoefficientType : {{ listType }},
  59.                     optionCoefficientType : {{ optionType }},
  60.                     withHybrid : true
  61.                 });
  62.             });
  63.         });
  64.     </script>
  65. {% endblock pageJs %}