src/PortalBundle/Resources/views/Service/test-drive.html.twig line 1

Open in your IDE?
  1. {% extends '@Portal/base.html.twig' %}
  2. {% block seo %}
  3.     <title>{{ 'seo.test_drive.title'|trans({}, 'portal_base') }}</title>
  4.     <meta name="description" content="{{ 'seo.test_drive.description'|trans({}, 'portal_base') }}"/>
  5. {% endblock %}
  6. {% block css %}
  7.     <link rel="stylesheet" href="{{ asset('bundles/dcsite/css/modules/WIDGET_NEW.css') }}">
  8.     <link rel="stylesheet" href="{{ asset('bundles/portal/css/service.css') }}">
  9.     <link rel="stylesheet" href="{{ asset('bundles/dcsite/css/modules/multi-consultation-enter.css') }}">
  10.     <style>
  11.         .recording__service-calendar-day .select, .recording__service-calendar-day span:hover {
  12.             background: #2CA3E126;
  13.             color: #2CA3E1;
  14.         }
  15.         .recording__service-calendar-time div:hover, .recording__service-calendar-time .select {
  16.             color: #2CA3E1;
  17.             background: #2CA3E126;
  18.             border: 1px solid #2CA3E126;
  19.         }
  20.         #orderTd .swappy-radios input:checked ~ span {
  21.             color: #E40C25;
  22.         }
  23.         .testdrive__card-car-link, .testdrive__card-car-link:hover{
  24.             color: #E40C25;
  25.         }
  26.         .testdrive__steep.active .testdrive__steeps-num{
  27.             color: #E40C25;
  28.         }
  29.         .testdrive__form-select-car-btn{
  30.             color: #E40C25;
  31.         }
  32.         .testdrive__form-select-car-btn:hover{
  33.             color: #E40C25;
  34.         }
  35.         .testdrive__modules-btn {
  36.             border: 1px solid #E40C25;
  37.             background: #E40C25;
  38.         }
  39.         .testdrive__modules-btn:hover{
  40.             border: 1px solid #E40C25;
  41.             color: #E40C25;
  42.         }
  43.         .testdrive__modules-radio-box [type=checkbox]:checked + label:before, .testdrive__modules-radio-box [type=radio]:checked + label:after {
  44.             background-color: #E40C25;
  45.             border-color: #E40C25;
  46.         }
  47.         .testdrive__card-car-link svg path {
  48.             fill: #E40C25;
  49.         }
  50.         .td-need__card svg path {
  51.             fill: #E40C25;
  52.         }
  53.         .td-need__card {
  54.             background-color: transparent;
  55.             border: none;
  56.         }
  57.         .td-need__card .card-body {
  58.             padding: 1.25rem;
  59.             padding-left: 0;
  60.             padding-right: 0;
  61.         }
  62.         .td__title {
  63.             font-style: normal;
  64.             font-weight: bold;
  65.             font-size: 28px;
  66.             line-height: 48px;
  67.             margin-bottom: 20px;
  68.             color: #2F2F2F;
  69.         }
  70.         .td-card__name {
  71.             font-size: 20px;
  72.             line-height: 1.5625;
  73.             transition: .2s ease;
  74.             font-style: normal;
  75.             font-weight: bold;
  76.             color: #1E1E1E;
  77.             height: 37px;
  78.             overflow: hidden;
  79.             margin-bottom: 6px;
  80.             display: block;
  81.         }
  82.         .td-need__card .card-text {
  83.             font-weight: lighter;
  84.             color: #343434;
  85.         }
  86.         button.btn-order-car.w-100{
  87.             font-family: 'Circe-Extra-Bold', sans-serif;
  88.             font-weight: bold;
  89.             border: 1px solid #E40C25;
  90.             background: #E40C25;
  91.             color: #FFFFFF;
  92.             cursor: pointer;
  93.         }
  94.     </style>
  95. {% endblock %}
  96. {% block content %}
  97.     <section class="breadcrumbs__new">
  98.         <div class="container">
  99.             <ol class="vidi_breadcrumbs__new" itemscope itemtype="https://schema.org/BreadcrumbList">
  100.                 <li class="marker__none" itemprop="itemListElement" itemscope
  101.                     itemtype="https://schema.org/ListItem">
  102.                     <a itemprop="item" href="{{ path('portal_homepage') }}">
  103.                         <span class="breadcrumbs__link" itemprop="name">VIDI.UA</span></a>
  104.                     <meta itemprop="position" content="1"/>
  105.                 </li>
  106.                 <div class="arrow-bc"></div>
  107.                 <li itemprop="item" class="marker__none" itemprop="itemListElement" itemscope
  108.                     itemtype="https://schema.org/ListItem">
  109.                     <span style="color: #ABABAB" class="breadcrumbs__link" itemprop="name">{{ 'service.all.service'|trans({}, 'portal_base') }}</span>
  110.                     <meta itemprop="position" content="2"/>
  111.                 </li>
  112.                 <div class="arrow-bc"></div>
  113.                 <li itemprop="item" class="marker__none" itemprop="itemListElement" itemscope
  114.                     itemtype="https://schema.org/ListItem">
  115.                     <span style="color: #ABABAB" class="breadcrumbs__link" itemprop="name">{{ 'service.td'|trans({}, 'portal_base') }}</span>
  116.                     <meta itemprop="position" content="3"/>
  117.                 </li>
  118.             </ol>
  119.         </div>
  120.     </section>
  121.     <section class="service-head-block section-padding-page">
  122.         <div class="container">
  123.             <div class="row">
  124.                 <div class="col-md-5">
  125.                     <h1 class="service-head-h1">{{ 'service.td'|trans({}, 'portal_base') }}</h1>
  126.                 </div>
  127.                 <div class="col-md-6 offset-md-1 flexbox-wrapper">
  128.                     <div>
  129.                         <p class="section-subtitle-page mb-4">{{ 'service.td_subtitle'|trans({}, 'portal_base') }}</p>
  130.                     </div>
  131.                 </div>
  132.             </div>
  133.         </div>
  134.     </section>
  135.     <section class="front-consultation pb-2">
  136.         <div class="container">
  137. {#            <div class="front-consultation__title">{{ 'base.services.order_consultation'|trans({}, 'dc_toyota') }}</div>#}
  138.             {% include '@DcSite/Modules/multi-consultation/multi-consultation-enter.html.twig' with {
  139.                 link_test_drive: "portal_service_testdrive_form",
  140.                 link_online: "portal_service_consultation_form_online",
  141.                 link_offline: "portal_service_consultation_form"
  142.             } %}
  143.         </div>
  144.     </section>
  145.     {#<section class="section-padding-page bg-gray-page">#}
  146.         {#<div class="container">#}
  147.             {#<div class="row">#}
  148.                 {#<div class="col-12"><h2 class="h2-small">{{ 'service.all.td_what_need'|trans({}, 'portal_base') }}</h2>#}
  149.                 {#</div>#}
  150.                 {#<div class="col-md-6 advantages__card">#}
  151.                     {#<div class="advantages__img"><img#}
  152.                                 {#src="{{ asset('bundles/portal/img/adv-fast.f0eb64d5.svg?v1.2.38') }}"#}
  153.                                 {#style="visibility: visible;"></div>#}
  154.                     {#<div class="advantages__title">{{ 'service.all.td_submit'|trans({}, 'portal_base') }}</div>#}
  155.                     {#<div class="advantages__text">{{ 'service.all.td_what_need_desc'|trans({}, 'portal_base') }}</div>#}
  156.                 {#</div>#}
  157.                 {#<div class="col-md-6 advantages__card">#}
  158.                     {#<div class="advantages__img"><img#}
  159.                                 {#src="{{ asset('bundles/portal/img/adv-reliably.055733b7.svg?v1.2.38') }}"#}
  160.                                 {#style="visibility: visible;"></div>#}
  161.                     {#<div class="advantages__title">{{ 'service.all.td_docs'|trans({}, 'portal_base') }}</div>#}
  162.                     {#<div class="advantages__text">{{ 'service.all.td_docs_desc'|trans({}, 'portal_base') }}</div>#}
  163.                 {#</div>#}
  164.             {#</div>#}
  165.         {#</div>#}
  166.     {#</section>#}
  167.     {% if app.request.locale == 'ru' %}
  168.         {% include '@Portal/Service/translations/test-drive_ru.html.twig' %}
  169.     {% else %}
  170.         {% include '@Portal/Service/translations/test-drive_ua.html.twig' %}
  171.     {% endif %}
  172. {% endblock %}
  173. {% block pageJS %}
  174.     <script>
  175.         app.onCustomEvent('appInit', function () {
  176.             app.loadJs("{{ asset('bundles/dcsite/js/test-drive.js') }}", function () {
  177.                 initTd({
  178.                     initUrl: '{{ path('base_test_drive_init') }}',
  179.                     byDealerUrl: '{{ path('base_test_drive_dealers') }}',
  180.                     getTimesUrl: '{{ path('base_test_drive_time') }}',
  181.                     locale: '{{ app.request.locale }}',
  182.                     allowChangeBrand: true,
  183.                     checkDateUrl: '{{ path('base_test_drive_month') }}',
  184.                 });
  185.             });
  186.         });
  187.     </script>
  188. {% endblock %}