src/DcSiteBundle/Resources/views/Mazda/Service/tires-config.html.twig line 1

Open in your IDE?
  1. {% extends '@DcSite/Mazda/base.html.twig' %}
  2. {% block seo %}
  3.     <title>{{ 'seo.tire_config.title'|trans({}, 'dc_mazda') }}</title>
  4.     <meta name="description" content="{{ 'seo.tire_config.desc'|trans({}, 'dc_mazda') }}" />
  5. {% endblock seo %}
  6. {% block ogtagDynamic %}
  7.     <meta property="og:title" content="{{ 'seo.tire_config.title'|trans({}, 'dc_mazda') }}"/>
  8.     <meta property="og:description" content="{{ 'seo.tire_config.desc'|trans({}, 'dc_mazda') }}"/>
  9. {% endblock ogtagDynamic %}
  10. {% block css %}
  11.     <link rel="stylesheet" href="{{ asset('/bundles/dcsite/css/mazda/service.css') }}">
  12.     <link rel="stylesheet" href="{{ asset('/bundles/dcsite/css/mazda/tires-config.css') }}">
  13. {% endblock %}
  14. {% block content %}
  15.     <section class="breadcrumbs__new">
  16.         <div class="container">
  17.             <ol class="global_breadcrumbs__new" itemscope itemtype="https://schema.org/BreadcrumbList">
  18.                 <li class="marker__none" itemprop="itemListElement" itemscope
  19.                     itemtype="https://schema.org/ListItem">
  20.                     <a itemprop="item" href="{{ path('mazda_homepage') }}">
  21.                         <span class="breadcrumbs__link" itemprop="name">Mazda</span></a>
  22.                     <meta itemprop="position" content="1"/>
  23.                 </li>
  24.                 <div class="arrow-bcs"> ❯ </div>
  25.                 <li itemprop="item" class="marker__none" itemprop="itemListElement" itemscope
  26.                     itemtype="https://schema.org/ListItem">
  27.                     <span style="color: #ABABAB;" class="breadcrumbs__link" itemprop="name">{{ 'pages.service'|trans({}, 'dc_mazda') }}</span>
  28.                     <meta itemprop="position" content="2"/>
  29.                 </li>
  30.                 <div class="arrow-bcs"> ❯ </div>
  31.                 <li itemprop="item" class="marker__none" itemprop="itemListElement" itemscope
  32.                     itemtype="https://schema.org/ListItem">
  33.                     <span style="color: #ABABAB;" class="breadcrumbs__link" itemprop="name">{{ 'pages.service'|trans({}, 'dc_mazda') }}</span>
  34.                     <meta itemprop="position" content="3"/>
  35.                 </li>
  36.             </ol>
  37.         </div>
  38.     </section>
  39.     <section class="heading_bg">
  40.         <img src="{{ asset( '/bundles/dcsite/img/mazda/head/tires-head.png' ) }}" alt="">
  41.         <h1 class="section_head-title">{{ 'seo.tire_config.title'|trans({}, 'dc_mazda') }}</h1>
  42.     </section>
  43.     <section class="section_padd pb-0">
  44.         <div class="container">
  45.             <div class="row">
  46.                 <div class="col-md-12 section-title mb-4">
  47.                     <span>{{ 'pages.tire_config.text_head'|trans({}, 'dc_mazda') }}</span>
  48.                 </div>
  49.             </div>
  50.             <div class="row justify-content-center">
  51.                 <div class="col-sm-12 col-md-12 col-lg-10 col-xl-10 text-center">
  52.                     <p class="mb-0">{{ 'pages.tire_config.text_desc'|trans({}, 'dc_mazda') }}</p>
  53.                 </div>
  54.             </div>
  55.         </div>
  56.     </section>
  57.     <section class="tires_config section_padd">
  58.         <div class="container">
  59.             <div class="row justify-content-center">
  60.                 <div class="col-sm-12 col-md-12 col-lg-9 col-xl-8">
  61.                     {{ form_start(tireForm, { attr: { class: 'lead-form pop-up', action: path('form_tires_configurator') } }) }}
  62.                     <div class="tires_config-choose checkbox__btn row">
  63.                         <div class="col-md-6">
  64.                             <label class="checkbox__item active" id="change-winter">
  65.                                 <input type="radio" id="winter" name="{{ tireForm.tiresType.0.vars.full_name }}" value="{{ tireForm.tiresType.0.vars.value }}" checked>
  66.                                 <span class="checkbox__item-title">{{ tireForm.tiresType.0.vars.label }}</span>
  67.                                 <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
  68.                                     <path d="M29.457 22.5084L26.2068 20.6319L29.0234 18.971C29.5429 18.6647 29.7157 17.9952 29.4094 17.4757C29.103 16.9564 28.4337 16.7835 27.9141 17.0897L24.0341 19.3775L18.1841 15.9999L24.0331 12.6229L27.9142 14.9104C28.0882 15.0131 28.2792 15.0617 28.4676 15.0617C28.8415 15.0617 29.2057 14.8695 29.4094 14.524C29.7156 14.0045 29.5426 13.335 29.0231 13.0287L26.206 11.3684L29.457 9.49149C29.9793 9.18995 30.1582 8.52208 29.8567 7.99982C29.5551 7.47741 28.8873 7.29847 28.365 7.60015L25.1148 9.47678L25.0852 6.20647C25.0798 5.6034 24.5851 5.11607 23.9835 5.12437C23.3804 5.12976 22.8958 5.62305 22.9014 6.22613L22.942 10.7311L17.0922 14.1086V7.35423L21.0143 5.13762C21.5393 4.84089 21.7243 4.17477 21.4276 3.6496C21.1309 3.12456 20.4646 2.93936 19.9396 3.23624L17.0922 4.84555V1.092C17.0922 0.488923 16.6033 0 16.0002 0C15.3972 0 14.9083 0.488923 14.9083 1.092V4.84555L12.0609 3.23639C11.5356 2.93951 10.8698 3.12456 10.5729 3.64974C10.2762 4.17477 10.4612 4.84104 10.9862 5.13777L14.9081 7.35438V14.1086L9.05836 10.7311L9.09898 6.22613C9.10451 5.62305 8.61996 5.12976 8.01689 5.12437C8.01354 5.12437 8.01033 5.12437 8.00684 5.12437C7.40843 5.12437 6.92052 5.60674 6.91513 6.20661L6.88558 9.47678L3.63536 7.60015C3.1131 7.29847 2.44523 7.47755 2.14369 7.99982C1.84216 8.52208 2.0211 9.18995 2.54336 9.49149L5.79416 11.3684L2.97667 13.029C2.45717 13.3352 2.2842 14.0046 2.59039 14.5243C2.79409 14.8698 3.15823 15.062 3.53228 15.062C3.72068 15.062 3.91156 15.0132 4.0857 14.9107L7.96724 12.6232L13.8164 16.0002L7.96622 19.3778L4.0857 17.0896C3.56649 16.7834 2.89674 16.9561 2.59039 17.4756C2.28405 17.9951 2.45688 18.6645 2.97638 18.9707L5.79344 20.6317L2.54322 22.5082C2.02095 22.8098 1.84201 23.4776 2.14355 23.9999C2.34579 24.3502 2.71284 24.546 3.09024 24.546C3.27544 24.546 3.46326 24.4989 3.63522 24.3996L6.88543 22.5229L6.91499 25.7934C6.92038 26.3931 7.40828 26.8756 8.00669 26.8756C8.01004 26.8756 8.01339 26.8756 8.01674 26.8755C8.61981 26.8701 9.10437 26.3768 9.09884 25.7737L9.05821 21.2686L14.9081 17.8911V24.6456L10.9862 26.8622C10.4612 27.159 10.2762 27.8251 10.5729 28.3503C10.7737 28.7055 11.1436 28.9051 11.5245 28.9051C11.7065 28.9051 11.8911 28.8596 12.0609 28.7636L14.9083 27.1545V30.908C14.9083 31.5111 15.3972 32 16.0002 32C16.6033 32 17.0922 31.5111 17.0922 30.908V27.1545L19.9396 28.7636C20.1094 28.8596 20.2938 28.9051 20.476 28.9051C20.8569 28.9051 21.2268 28.7055 21.4276 28.3503C21.7243 27.8252 21.5393 27.159 21.0143 26.8622L17.0922 24.6456V17.8913L22.942 21.2686L22.9004 25.7736C22.8947 26.3767 23.3791 26.8701 23.9822 26.8756C23.9857 26.8758 23.989 26.8758 23.9925 26.8758C24.5908 26.8758 25.0787 26.3934 25.0842 25.7938L25.1145 22.5229L28.3651 24.3997C28.5371 24.499 28.7249 24.5462 28.9101 24.5462C29.2875 24.5462 29.6546 24.3502 29.8568 24C30.1583 23.4778 29.9794 22.8099 29.457 22.5084Z" fill="#B8B8B8"/>
  69.                                 </svg>
  70.                                 <span class="checkmark"></span>
  71.                             </label>
  72.                         </div>
  73.                         <div class="col-md-6">
  74.                             <label class="checkbox__item" id="change-summer">
  75.                                 <input type="radio" id="summer" name="{{ tireForm.tiresType.1.vars.full_name }}" value="{{ tireForm.tiresType.1.vars.value }}">
  76.                                 <span class="checkbox__item-title">{{ tireForm.tiresType.1.vars.label }}</span>
  77.                                 <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
  78.                                     <path d="M15.9997 22.6667C19.6816 22.6667 22.6663 19.6819 22.6663 16C22.6663 12.3181 19.6816 9.33334 15.9997 9.33334C12.3178 9.33334 9.33301 12.3181 9.33301 16C9.33301 19.6819 12.3178 22.6667 15.9997 22.6667Z" stroke="#B8B8B8" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
  79.                                     <path d="M16 1.33334V4.00001" stroke="#B8B8B8" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
  80.                                     <path d="M16 28V30.6667" stroke="#B8B8B8" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
  81.                                     <path d="M5.62695 5.62668L7.52029 7.52001" stroke="#B8B8B8" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
  82.                                     <path d="M24.4805 24.48L26.3738 26.3733" stroke="#B8B8B8" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
  83.                                     <path d="M1.33301 16H3.99967" stroke="#B8B8B8" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
  84.                                     <path d="M28 16H30.6667" stroke="#B8B8B8" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
  85.                                     <path d="M5.62695 26.3733L7.52029 24.48" stroke="#B8B8B8" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
  86.                                     <path d="M24.4805 7.52001L26.3738 5.62668" stroke="#B8B8B8" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
  87.                                 </svg>
  88.                                 <span class="checkmark"></span>
  89.                             </label>
  90.                         </div>
  91.                     </div>
  92.                     <div class="site__form row">
  93.                         <div class="col-md-12">
  94.                             <div class="form-group" >
  95.                                 {{ form_row(tireForm.vin) }}
  96.                             </div>
  97.                         </div>
  98.                         <div class="col-md-12">
  99.                             <span class="tires_config-title"><span>{{ 'pages.tire_config.enter'|trans({}, 'dc_mazda') }}</span></span>
  100.                         </div>
  101.                         <div class="col-md-4">
  102.                             <div class="form-group">
  103.                                 {{ form_row(tireForm.diameter) }}
  104.                             </div>
  105.                         </div>
  106.                         <div class="col-md-4">
  107.                             <div class="form-group">
  108.                                 {{ form_row(tireForm.width) }}
  109.                             </div>
  110.                         </div>
  111.                         <div class="col-md-4">
  112.                             <div class="form-group">
  113.                                 {{ form_row(tireForm.profile) }}
  114.                             </div>
  115.                         </div>
  116.                         <div class="col-md-12">
  117.                             <hr class="mt-0 mb-4">
  118.                         </div>
  119.                         <div class="col-md-6">
  120.                             <div class="form-group" >
  121.                                 {{ form_row(tireForm.name) }}
  122.                             </div>
  123.                         </div>
  124.                         <div class="col-md-6">
  125.                             <div class="form-group" >
  126.                                 {{ form_row(tireForm.phone) }}
  127.                             </div>
  128.                         </div>
  129.                         <div class="col-md-12">
  130.                             <div class="form-group checkbox style-b js-form-privacy">
  131.                                 <label class="checkboxes__item-privacy">
  132.                                     <input type="checkbox" name="{{ tireForm.privacy.vars.full_name }}" value="{{ tireForm.privacy.vars.value }}" id="{{ tireForm.privacy.vars.id }}"/>
  133.                                     <div id="check_privacy" class="checkbox__checkmark form-control"></div>
  134.                                     <div class="checkbox__body">{{ 'callback_widget.privacy'|trans({}, 'dc_base') }} <a href="{{ privacyUrl }}" target="_blank">{{ 'callback_widget.privacy_link'|trans({}, 'dc_base') }}</a></div>
  135.                                 </label>
  136.                             </div>
  137.                         </div>
  138.                         <div style="display: none;">
  139.                             {{ form_rest(tireForm) }}
  140.                         </div>
  141.                         <div class="col-md-12 d-flex justify-content-center text-center">
  142.                             <button type="submit" class="btn btn-primary m-auto">{{ 'pages.tire_config.send'|trans({}, 'dc_mazda') }}</button>
  143.                         </div>
  144.                     {{ form_end(tireForm) }}
  145.                     </div>
  146.                 </div>
  147.             </div>
  148.         </div>
  149.     </section>
  150. {% endblock %}
  151. {% block pageJS %}
  152.     <script>
  153.         app.onCustomEvent('appInit', function () {
  154.             var summer = $('#change-summer');
  155.             var winter = $('#change-winter');
  156.             $("input[type='radio']").change(function () {
  157.                 if (this.id === 'winter') {
  158.                     winter.addClass('active');
  159.                     summer.removeClass('active');
  160.                 } else if (this.id === 'summer') {
  161.                     summer.addClass('active');
  162.                     winter.removeClass('active');
  163.                 }
  164.             });
  165.         });
  166.     </script>
  167. {% endblock %}