src/PortalBundle/Resources/views/Finance/insurance.html.twig line 1

Open in your IDE?
  1. {% extends '@Portal/base.html.twig' %}
  2. {% block seo %}
  3.     <title>{{ 'seo.insurance.title'|trans({}, 'portal_base') }}</title>
  4.     <meta name="description" content="{{ 'seo.insurance.description'|trans({}, 'portal_base') }}" />
  5. {% endblock %}
  6. {% block css %}
  7.     <link rel="stylesheet" href="{{ asset('bundles/portal/css/finance.css') }}">
  8.     <link rel="stylesheet" href="{{ asset('bundles/portal/css/insurance.css') }}">
  9.     <link rel='stylesheet' href='{{ asset('bundles/portal/css/finance/calc.css') }}'  />
  10.     <style>
  11.         .box__select [type=checkbox]:checked + label, .box__select [type=radio]:checked + label, .form__radio-box [type=checkbox]:checked + label, .form__radio-box [type=radio]:checked + label, .form__radio-box label:hover, .icomoon-slider-next:hover, .box__select .selected {
  12.             background-color: #E40C25;
  13.         }
  14.         .config-slider .slick-dots li.slick-active, .form__options [type=checkbox]:checked + label:before, .form__radio-inline [type=radio]:checked + label:before {
  15.             background-color: #E40C25;
  16.             border-color: #E40C25;
  17.         }
  18.         .box__select [type=checkbox]:checked + label, .box__select [type=radio]:checked + label, .form__radio-box [type=checkbox]:checked + label, .form__radio-box [type=radio]:checked + label, .form__radio-box label:hover, .icomoon-slider-next:hover, .box__select .selected {
  19.             background-color: rgba(228, 12, 37, 0.15);
  20.             color: #E40C25;
  21.         }
  22.         h1.calc-title {
  23.             display: none;
  24.         }
  25.         section.calc {
  26.             padding-top: 20px;
  27.         }
  28.     </style>
  29. {% endblock  %}
  30. {% block content %}
  31.     <section class="breadcrumbs__new">
  32.         <div class="container">
  33.             <ol class="vidi_breadcrumbs__new" itemscope itemtype="https://schema.org/BreadcrumbList">
  34.                 <li class="marker__none" itemprop="itemListElement" itemscope
  35.                     itemtype="https://schema.org/ListItem">
  36.                     <a itemprop="item" href="{{ path('portal_homepage') }}">
  37.                         <span class="breadcrumbs__link" itemprop="name">VIDI.UA</span></a>
  38.                     <meta itemprop="position" content="1"/>
  39.                 </li>
  40.                 <div class="arrow-bc"></div>
  41.                 <li itemprop="item" class="marker__none" itemprop="itemListElement" itemscope
  42.                     itemtype="https://schema.org/ListItem">
  43.                     <span style="color: #ABABAB" class="breadcrumbs__link" itemprop="name">{{ 'service.service'|trans({}, 'portal_base') }}</span>
  44.                     <meta itemprop="position" content="2"/>
  45.                 </li>
  46.                 <div class="arrow-bc"></div>
  47.                 <li itemprop="item" class="marker__none" itemprop="itemListElement" itemscope
  48.                     itemtype="https://schema.org/ListItem">
  49.                     <span style="color: #ABABAB" class="breadcrumbs__link" itemprop="name">{{ 'finance.insurance.title'|trans({}, 'portal_base') }}</span>
  50.                     <meta itemprop="position" content="3"/>
  51.                 </li>
  52.             </ol>
  53.         </div>
  54.     </section>
  55.     <section class="service-head-block section-padding-page">
  56.         <div class="container">
  57.             <div class="row">
  58.                 <div class="col-md-5">
  59.                     <h1 class="service-head-h1">{{ 'seo.insurance.h1'|trans({}, 'portal_base') }}</h1>
  60.                 </div>
  61.                 <div class="col-md-6 offset-md-1 flexbox-wrapper">
  62.                     <div>
  63.                         <p class="section-subtitle-page mb-0">{{ 'finance.insurance.subtitle'|trans({}, 'portal_base') }}</p>
  64.                     </div>
  65.                 </div>
  66.             </div>
  67.         </div>
  68.     </section>
  69.     <section class="sticky-top bg-menu-fixed" id="tradeinCalc">
  70.         <div class="container">
  71.             <div class="row">
  72.                 <div class="col-md-12">
  73.                     <ul class="pages-menu-fixed" id="list-example">
  74.                         <li class="active">
  75.                             <a href="#generalInformation">Калькулятор КАСКО</a>
  76.                         </li>
  77.                         <li>
  78.                             <a href="#aboutService">{{ 'finance.insurance.about_service'|trans({}, 'portal_base') }}</a>
  79.                         </li>
  80.                         <li>
  81.                             <a href="#risk">{{ 'finance.insurance.risks'|trans({}, 'portal_base') }}</a>
  82.                         </li>
  83.                         <li>
  84.                             <a href="#advantages">{{ 'finance.insurance.advantages'|trans({}, 'portal_base') }}</a>
  85.                         </li>
  86.                         <li>
  87.                             <a href="#faq">{{ 'finance.insurance.faqs'|trans({}, 'portal_base') }}</a>
  88.                         </li>
  89.                     </ul>
  90.                 </div>
  91.             </div>
  92.         </div>
  93.     </section>
  94.     <div class="section-padding-page" id="generalInformation">
  95.         <div class="container">
  96.             <div class="row">
  97.                 <div class="col-md-12 section-title-page mb-4">
  98.                     <span>Калькулятор КАСКО {{ 'finance.insurance.new_car'|trans({}, 'portal_base') }}</span>
  99.                 </div>
  100.             </div>
  101.         </div>
  102.         {% include '@DcSiteBundle/Modules/insurance.html.twig' with {bigSize : true} %}
  103.         <div class="container mt-4">
  104.             <div class="row">
  105.                 <div class="col-md-12 section-title-page">
  106.                     <p class="section-subtitle-page">{{ 'finance.insurance.consulatation'|trans({}, 'portal_base') }}: <a href="tel:380445033353" class="color-red">+38 (044) 503–33–53</a></p>
  107.                 </div>
  108.             </div>
  109.         </div>
  110.     </div>
  111.     <section>
  112.         <div class="container">
  113.             <div class="row">
  114.                 <div class="col-md-12 section-title-page mb-0">
  115.                     <span>{{ 'finance.insurance.used_car'|trans({}, 'portal_base') }}</span>
  116.                 </div>
  117.             </div>
  118.         </div>
  119.         {% include '@Portal/Finance/casco.html.twig' %}
  120.     </section>
  121.     {% if app.request.locale == 'ru' %}
  122.         {% include '@Portal/Finance/translations/insurance_ru.html.twig' %}
  123.     {% else %}
  124.         {% include '@Portal/Finance/translations/insurance_ua.html.twig' %}
  125.     {% endif %}
  126. {% include '@DcSite/Modules/sps-popup.html.twig' %}
  127. {% endblock %}
  128. {% block pageJS %}
  129.     <script type="text/javascript" src="{{ asset('bundles/core/js/vue/vue.js') }}"></script>
  130.     <script type="text/javascript" src="{{ asset('bundles/insurance/js/casco.js') }}"></script>
  131.     <script>
  132.         app.onCustomEvent('appInit', function () {
  133.             app.loadJs("{{ asset('bundles/dcsite/js/casco.js') }}", function () {
  134.                 initCasco({
  135.                     initUrl : '{{ path('base_casco_init') }}',
  136.                     initByDealerUrl : '{{ path('base_casco_init_by_dealer') }}',
  137.                     optionsUrl : '{{ path('base_casco_options') }}',
  138.                     formUrl : '{{ path('base_casco_save_form') }}',
  139.                     privacyUrl: '{{ privacyUrl }}',
  140.                 });
  141.             });
  142.             app.loadJs("{{ asset('bundles/portal/js/casco.js') }}", function () {
  143.                 casco({
  144.                     token: '{{ token }}',
  145.                     initUrl: '{{ path('portal_calc_init') }}',
  146.                     modelsUrl: '{{ path('portal_calc_models') }}',
  147.                     estimateUrl: '{{ path('portal_calc_estimate') }}',
  148.                     optionsUrl : '{{ path('portal_casco_options') }}',
  149.                     formUrl : '{{ path('portal_casco_save_form') }}',
  150.                     privacyUrl: '{{ privacyUrl }}',
  151.                     baseCoefficientType : {{ baseType }},
  152.                     listCoefficientType : {{ listType }},
  153.                     optionCoefficientType : {{ optionType }}
  154.                 });
  155.             });
  156.         });
  157.         $(window).on('scroll',function(e) {
  158.             var doc = document.documentElement;
  159.             var top = (window.pageYOffset || doc.scrollTop)  - (doc.clientTop || 0);
  160.             var height = $('.calc').height();
  161.             if(top >= 1200 && top <= (700 + height)) {
  162.                 $('.casco-result').css('position','fixed');
  163.                 $('.casco-result').css('top','80px');
  164.             } else {
  165.                 $('.casco-result').css('position','relative');
  166.                 $('.casco-result').css('top','0');
  167.             }
  168.         });
  169.     </script>
  170. {% endblock  %}