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

Open in your IDE?
  1. {% extends '@DcSite/Peugeot/base.html.twig' %}
  2. {% block seo %}
  3.     <title>{{ 'main.configurator'|trans({}, 'dc_peugeot') }}</title>
  4.     <meta name="description" content="" />
  5.     <meta name="keywords" content="" />
  6. {% endblock seo %}
  7. {% block css %}
  8.     <link type="text/css" media="all" href="{{ asset('/bundles/dcsite/css/peugeot/configurator.css') }}" rel="stylesheet"/>
  9.     <link type="text/css" media="all" href="{{ asset('/bundles/dcsite/css/modules/configurator.css') }}" rel="stylesheet"/>
  10.     <link rel="stylesheet" type="text/css" href="{{ asset('/bundles/core/css/modules/slick/slick.css') }}">
  11.     <style>
  12.         div#carConfig {
  13.             width: 100%;
  14.         }
  15.         .color__name #colorPrice{
  16.             color: #162133;
  17.         }
  18.         .box__modification-info-item svg path {
  19.             fill: #162133;
  20.         }
  21.     </style>
  22. {% endblock %}
  23. {% block content %}
  24.     {% include '@DcSite/Peugeot/breadcrumbs.html.twig' with {
  25.         catName: '',
  26.         catUrl: '',
  27.         pageName: 'main.configurator'|trans({}, 'dc_peugeot')
  28.     } %}
  29.     
  30.     <section class="configurator page config">
  31.         <div class="container">
  32.             <div class="row">
  33.                 <div class="col-sm-12 col-md-12 col-lg-12 col-xl-12 bg-white">
  34.                     <div class="row ">
  35.                         <div class="col-md-12 custom-padd pt-0">
  36.                             <div class="row">
  37.                                 {% include '@DcSite/Modules/configurator/index.html.twig' %}
  38.                             </div>
  39.                         </div>
  40.                     </div>
  41.                 </div>
  42.             </div>
  43.         </div>
  44.     </section>
  45. {% endblock content %}
  46. {% block pageJS %}
  47.     <script>
  48.         app.onCustomEvent('appInit', function () {
  49.             app.loadJs('{{ asset('/bundles/dcsite/js/sticky.js') }}');
  50.             app.loadJs('{{ asset('/bundles/core/js/modules/slick/slick.js') }}');
  51.             app.loadJs('{{ asset('/bundles/dcsite/js/configurator.js') }}',function () {
  52.                 initConfig({
  53.                     el: '#carConfig',
  54.                     carId: {{ carId }},
  55.                     hash: '{{ hash }}',
  56.                     initUrl: '{{ path('base_configurator_init', {id: '__id__'}) }}',
  57.                     initByHashUrl: '{{ path('base_configurator_init_by_hash', {hash: '__hash__'}) }}',
  58.                     totalInitUrl: '{{ path('base_configurator_init_total') }}',
  59.                     initCreditUrl: '{{ path('base_configurator_init_credit') }}',
  60.                     accessoryUrl: '{{ path('base_configurator_load_accessory') }}',
  61.                     optionsUrl: '{{ path('base_configurator_load_options') }}',
  62.                     initInsuranceUrl : '{{ path('base_casco_options') }}',
  63.                     saveUrl : '{{ path('base_configurator_save') }}',
  64.                     privacyUrl: '{{ privacyUrl }}',
  65.                     baseCoefficientType : {{ baseType }},
  66.                     listCoefficientType : {{ listType }},
  67.                     optionCoefficientType : {{ optionType }},
  68.                     emailSendText : '{{ 'configurator.thx_text'|trans({}, 'dc_base')|raw }}',
  69.                 });
  70.             });
  71.         });
  72.     </script>
  73. {% endblock pageJS %}