templates/Front/HuVignette/hu-vignette.html.twig line 26

Open in your IDE?
  1. {% extends '@templates/Front/Shop/layout.html.twig' %}
  2. {% block head %}
  3.     <head>
  4.         {% block title %} <title>{{ 'app.hu_vignette.calculator_hu_vignette'|trans }} | roviniete.ro</title> {% endblock %}
  5.         {% block metatags %}
  6.             <meta name="description" content="{% if huVignetteDescriptionForSeo|length > 0 %}{{ huVignetteDescriptionForSeo.content }}{% endif %}"/>
  7.         {% endblock %}
  8.         <meta charset="utf-8">
  9.         <meta http-equiv="X-UA-Compatible" content="IE=edge">
  10.         <meta http-equiv="Content-Language" content="ro">
  11.         <meta name="google-site-verification" content="BEtIqk-choaMawpOxG98NtbWKAZK5MuTxV_2-pSHGFQ">
  12.         <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  13.         <meta name="keywords" content="{% if huVignetteKeywordsForSeo|length > 0 %}{{ huVignetteKeywordsForSeo.content }}{% endif %}">
  14.         {% block stylesheets %}
  15.             <link rel="stylesheet" href="/assets/shop/css/homepage.css">
  16.             <link rel="stylesheet" href="/assets/shop/css/bootstrap.min.css">
  17.             <link rel="stylesheet" href="/assets/shop/css/vignette_shop.v1.css">
  18.             <link rel="stylesheet" href="/assets/shop/css/bs-stepper.css">
  19.             <link rel="stylesheet" href="/assets/shop/css/bootstrap_select.css">
  20.             {{ encore_entry_link_tags('bootstrap-fix', null, 'bootstrapTheme') }}
  21.         {% endblock %}
  22.         {{ sonata_block_render_event('sylius.shop.layout.head') }}
  23.         {% block javascripts %}
  24.             <script src="{{ asset('assets/shop/js/sentry-bundle.min.js') }}"></script>
  25.             <script>
  26.                 if (typeof Sentry !== 'undefined') {
  27.                     Sentry.init({
  28.                         dsn: "{{ sentry_dsn }}",
  29.                         integrations: [new Sentry.Integrations.TryCatch({
  30.                             eventTarget: false,
  31.                         })]
  32.                     });
  33.                 }
  34.             </script>
  35.             <script src="{{ asset('assets/shop/js/jquery.min.js') }}"></script>
  36.             <script src="{{ asset('assets/shop/js/bs-stepper.js') }}"></script>
  37.             <script src="{{ asset('assets/shop/js/jquery-ui.min.js') }}"></script>
  38.             <script src="{{ asset('assets/shop/js/popper.min.js') }}"></script>
  39.             <script src="{{ asset('assets/shop/js/bootstrap.min.js') }}"></script>
  40.             <script src="{{ asset('assets/shop/js/_bootstrap_select.min.js') }}"></script>
  41.             <script src="{{ asset('assets/shop/js/leftmenu.js') }}"></script>
  42.             {{ encore_entry_script_tags('hu-vignette') }}
  43.             <script src="/bundles/fosjsrouting/js/router.js"></script>
  44.             <script>
  45.                 dataLayer = [];
  46.             </script>
  47.             <!-- Google Tag Manager -->
  48.             <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  49.                         new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  50.                     j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  51.                     'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  52.                 })(window,document,'script','dataLayer','{{ gtm_code }}');</script>
  53.             <!-- End Google Tag Manager -->
  54.             <script src="{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}"></script>
  55.         {% endblock %}
  56.     </head>
  57. {% endblock %}
  58. {% block header %}
  59.     <!-- Google Tag Manager (noscript) -->
  60.     <noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{ gtm_code }}"
  61.                       height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  62.     <!-- End Google Tag Manager (noscript) -->
  63.     <div id="loadingAvailabilitiesDiv" class="loading">
  64.         <div class="card w-50" style="background-color: #F1F2F3">
  65.             <div class="card-body bg-loading-card">
  66.                 <img src="{{ asset('assets/shop/images/spinner.gif') }}"
  67.                      style="width: 50px; pointer-events: none"/>
  68.                 <h5>{{ 'app.hu_vignette.retrieve_prices_for_category'|trans }}</h5>
  69.             </div>
  70.         </div>
  71.     </div>
  72.     <div class="custom-container">
  73.         <div style="max-width: 100%">
  74.             <div class="bg-white">
  75.                 <header>
  76.                     {% include '@templates/Front/Shop/v2/_header.html.twig' %}
  77.                     {{ sonata_block_render_event('sylius.shop.layout.after_header') }}
  78.                 </header>
  79.             </div>
  80.         </div>
  81.     </div>
  82. {% endblock %}
  83. {% block content %}
  84.     {% if lastProductStatus.huVignetteStatus or isAdmin %}
  85.         <script type="text/javascript">
  86.             var one_day = '{{ 'app.hu_vignette.1_day'|trans|lower }}';
  87.             var ten_days = '{{ 'app.hu_vignette.10_days'|trans|lower }}';
  88.             var thirty_days = '{{ 'app.hu_vignette.30_days'|trans|lower }}';
  89.             var twelve_months = '{{ 'app.hu_vignette.12_months'|trans|lower|raw }}';
  90.             var twelve_months_county = '{{ 'app.hu_vignette.12_months_county'|trans|lower|raw }}';
  91.             var locale = '{{ app.request.getLocale() }}';
  92.             var isOneYearHuVignetteAvailableThisYear = {{ isOneYearHuVignetteAvailableThisYear ? 'true' : 'false' }};
  93.         </script>
  94.         <div id="specialErrors" class="alert alert-warning alert-dismissible fade show d-none" role="alert">
  95.             <div class="header text-center">
  96.                 <h2>{{ 'app.ui.error'|trans }}</h2>
  97.             </div>
  98.             <p>
  99.             <h5 class="text-center text-primary vignette-already-bought d-none">
  100.                 {{ 'app.hu_vignette.hu_vignette_available_for_choosen_date'|trans }}
  101.             </h5>
  102.             <h5 class="special-error">
  103.             </h5>
  104.             <a class="text-center">
  105.             </a>
  106.             </p>
  107.             <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  108.                 <span aria-hidden="true">&times;</span>
  109.             </button>
  110.         </div>
  111.         <div id="categoryError" class="alert alert-warning fade show d-none" role="alert">
  112.             <div class="header text-center">
  113.                 <h2>{{ 'app.ui.error'|trans }}</h2>
  114.             </div>
  115.             <p>
  116.             <h5 class="text-center text-primary">
  117.                 {{ 'app.ui.vignette_category_error'|trans }}
  118.             </h5>
  119.             <h5 class="special-error">
  120.             </h5>
  121.             <a class="text-center">
  122.             </a>
  123.             </p>
  124.         </div>
  125.         <div id="divNoSpecialCharacters" class="alert alert-warning d-none" role="alert">
  126.             {{ 'app.ui.no_special_characters_allowed'|trans }}
  127.         </div>
  128.         <div class="d-inline-flex mx-3">
  129.             <a href="{{ path('sylius_shop_homepage') }}" class="section text-primary" style="font-size: 0.8em;">{{ 'sylius.ui.home'|trans }}</a>
  130.             <div class="divider"> /</div>
  131.             <small class="section active">{{ 'app.hu_vignette.hu_vignette'|trans }}</small>
  132.         </div>
  133.         <div>
  134.             <h1 class="mx-3">{{ 'app.hu_vignette.calculator_hu_vignette'|trans }}</h1>
  135.             <div>
  136.                 <div id="stepperForm" class="bs-stepper linear">
  137.                     <div class="row" style="padding: 0 20px 20px;">
  138.                         <div class="col-12 col-sm-12 col-md-12 col-lg-10 col-xl-10">
  139.                             <div id="vignetteStep1Summary" class="card d-none my-3" onclick="stepper.previous()">
  140.                                 <div class="card-body d-flex justify-content-between align-items-center">
  141.                                     <div class="d-inline-flex justify-content-center align-items-center">
  142.                                         <img src="{{ asset('assets/shop/images/icons/ic_check_small_dark.png') }}" style="width: 30px"/>
  143.                                         <h3>
  144.                                             <a class="font-weight-bolder text-primary">{{ 'app.hu_vignette.hu_vignette_details'|trans }}:</a>
  145.                                             <a class="font-weight-bolder text-dark">{{ 'app.ui.category'|trans }} - </a>
  146.                                             <a id="categoryTitleText">-</a>;
  147.                                             <a class="font-weight-bolder text-dark">{{ 'app.hu_vignette.availability_type'|trans }} - </a>
  148.                                             <a id="availabilityTitleText">-</a>
  149.                                         </h3>
  150.                                     </div>
  151.                                     <div id="editVignetteStep1">
  152.                                         <img src="{{ asset('assets/shop/images/icons/ic_edit_grey.png') }}" style="width: 30px"/>
  153.                                     </div>
  154.                                 </div>
  155.                             </div>
  156.                         </div>
  157.                     </div>
  158.                     <div class="bs-stepper-header d-none" role="tablist">
  159.                         <div id="divStepVignetteDetails" class="step active" data-target="#vignetteDetails" onclick="stepper.previous()" style="pointer-events: none">
  160.                             <button type="button" class="step-trigger" role="tab" id="stepVignetteDetails" aria-controls="vignetteDetails" aria-selected="true">
  161.                                 <span class="bs-stepper-circle"><a>1</a></span>
  162.                                 <small style="font-size: 0.8em; letter-spacing: 1px;" class="bs-stepper-label text-primary font-weight-bolder">{{'app.hu_vignette.hu_vignette_details'|trans|upper}}</small>
  163.                             </button>
  164.                         </div>
  165.                         <div class="bs-stepper-line"></div>
  166.                         <div id="divStepVehicleDetails" class="step" data-target="#vehicleDetails" onclick="stepper.next()" style="pointer-events: none">
  167.                             <button type="button" class="step-trigger" role="tab" id="stepVehicleDetails" aria-controls="vehicleDetails" aria-selected="false" disabled>
  168.                                 <span class="inactive-step bs-stepper-circle"><a>2</a></span>
  169.                                 <small style="font-size: 0.8em; letter-spacing: 1px;" class="bs-stepper-label text-black-50 font-weight-bolder">{{'app.ui.car_data'|trans|upper}} </small>
  170.                             </button>
  171.                         </div>
  172.                         <div class="bs-stepper-line"></div>
  173.                     </div>
  174.                     <div class="bs-stepper-content">
  175.                         <form id="huVignetteForm" method="POST">
  176.                             <input type="hidden" value="1" name="isHuVignette" />
  177.                             <input type="hidden" name="productStatusExtraOptions" id="productStatusExtraOptions" value="{{ lastProductStatus.extraOptionsStatus }}">
  178.                             <div id="vignetteDetails" role="tabpanel" class="bs-stepper-pane fade active dstepper-block" aria-labelledby="stepperFormTrigger1">
  179.                                 <div class="row my-3">
  180.                                     <div class="col-12 col-sm-12 col-md-12 col-lg-10 col-xl-10">
  181.                                         <div class="card vignette-card shadow">
  182.                                             <div class="card-body">
  183.                                                 <div class="row">
  184.                                                     <div class="col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6">
  185.                                                         <div class="d-flex justify-content-between align-items-start">
  186.                                                             <h3 id="selectedCategoryText" class="mb-3 font-weight-bolder">{{'app.ui.select_car_type'|trans}}</h3>
  187.                                                             <img class='show-info-btn' data-for="category" src="{{ asset('assets/shop/images/icons/info.png') }}" style="width: 30px"/>
  188.                                                         </div>
  189.                                                         {% for category in categories %}
  190.                                                             {% if loop.index % 2 != 0 %}
  191.                                                                 <div class="d-flex justify-content-center my-2 {% if loop.index == categories|length %} w-50 {% endif %}">
  192.                                                             {% endif %}
  193.                                                             <label type="button" for="{{ category.code|lower }}" class="btn btn-vignette-unselected w-100 mx-3 webkit-none" data-value="front" style="height: 75px !important;">
  194.                                                                 <input type="radio" name="category" data-error-message="{{'app.errors.no_category_selected'|trans }}" id="{{ category.code|lower }}" value="{{ category.wsId }}"
  195.                                                                        data-category="{% if category.wsId == category_hu_vignette_d1m_id %}
  196.                                                                         {{ 'app.hu_vignette.category_d1m_name'|trans }}
  197.                                                                     {% elseif category.wsId == category_hu_vignette_d1_id %}
  198.                                                                         {{ 'app.hu_vignette.category_d1_name'|trans }}
  199.                                                                     {% elseif category.wsId == category_hu_vignette_d2_id %}
  200.                                                                         {{ 'app.hu_vignette.category_d2_name'|trans|raw }}
  201.                                                                     {% elseif category.wsId == category_hu_vignette_b2_id %}
  202.                                                                         {{ 'app.hu_vignette.category_b2_name'|trans }}
  203.                                                                     {% elseif category.wsId == category_hu_vignette_u_id %}
  204.                                                                         {{ 'app.hu_vignette.category_u_name'|trans|raw }}
  205.                                                                     {% endif %}"
  206.                                                                        hidden>
  207.                                                                 <div class="d-flex justify-content-between align-items-center mt-2">
  208.                                                                     <h5 class="text-dark font-weight-bolder" id="vehicleType-{{category.code|first|lower}}">
  209.                                                                         {% if category.wsId == category_hu_vignette_d1m_id %}
  210.                                                                             {{ 'app.hu_vignette.category_d1m_short_code'|trans }}
  211.                                                                         {% elseif category.wsId == category_hu_vignette_d1_id %}
  212.                                                                             {{ 'app.hu_vignette.category_d1_short_code'|trans }}
  213.                                                                         {% elseif category.wsId == category_hu_vignette_d2_id %}
  214.                                                                             {{ 'app.hu_vignette.category_d2_short_code'|trans|raw }}
  215.                                                                         {% elseif category.wsId == category_hu_vignette_b2_id %}
  216.                                                                             {{ 'app.hu_vignette.category_b2_short_code'|trans }}
  217.                                                                         {% elseif category.wsId == category_hu_vignette_u_id %}
  218.                                                                             {{ 'app.hu_vignette.category_u_short_code'|trans|raw }}
  219.                                                                         {% endif %}
  220.                                                                     </h5>
  221.                                                                     <img class="ml-auto" src="{{ (asset('assets/shop/images/icons/hu_' ~ category.code|lower) ~ '_orange.png')}}" style="height: 46px"/>
  222.                                                                 </div>
  223.                                                             </label>
  224.                                                             {% if loop.index % 2 == 0 or loop.index == categories|length %}
  225.                                                                 </div>
  226.                                                             {% endif %}
  227.                                                         {% endfor %}
  228.                                                         <div class="d-flex justify-content-center">
  229.                                                         </div>
  230.                                                     </div>
  231.                                                     <div class="col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6 text-center">
  232.                                                         <div class="d-flex justify-content-between">
  233.                                                             <h3 class="mb-3 font-weight-bolder">{{'app.ui.choose_validity'|trans}}</h3>
  234.                                                             <img class="show-info-btn" data-for="availability" src="{{ asset('assets/shop/images/icons/info.png') }}" style="width: 30px;height: 30px;"/>
  235.                                                         </div>
  236.                                                         <div class="d-flex justify-content-between my-2 availability-wrapper" data-error-message="{{'app.errors.no_availability_selected'|trans }}">
  237.                                                             <div data-toggle="tooltip" data-placement="top" class="w-100 mx-3 tooltip-prevent-availability hover-tooltip" title="{{ 'app.hu_vignette.please_select_a_category_first'|trans }}">
  238.                                                                 <label type="button" id="lblAv1Day" for="av_1" class="btn btn-vignette-unselected w-100 webkit-none d-flex align-items-center justify-content-center" data-value="{{ 'app.hu_vignette.1_day'|trans }}" data-title="front" style="min-height: 145px !important;">
  239.                                                                     <div class="mx-2 my-2">
  240.                                                                         <input type="radio" name="availability" id="av_1" value="31" data-value="{{ 'app.hu_vignette.1_day'|trans }}" hidden disabled>
  241.                                                                         <h2 id="txtAv1Day" class="text-primary txtAvailability">{{ 'app.hu_vignette.1_day'|trans }}</h2>
  242.                                                                         <a id="txtAv1DayPrice" class="txtAvailabilityPrice text-dark"></a>
  243.                                                                     </div>
  244.                                                                 </label>
  245.                                                             </div>
  246.                                                             <div data-toggle="tooltip" data-placement="top" class="w-100 mx-3 tooltip-prevent-availability hover-tooltip" title="{{ 'app.hu_vignette.please_select_a_category_first'|trans }}">
  247.                                                                 <label type="button" id="lblAv10Days" for="av_10" class="btn btn-vignette-unselected w-100 webkit-none d-flex align-items-center justify-content-center" data-value="{{ 'app.hu_vignette.10_days'|trans }}" data-title="front" style="min-height: 145px !important;">
  248.                                                                     <div class="mx-2 my-2">
  249.                                                                         <input type="radio" name="availability" id="av_10" value="1" data-value="{{ 'app.hu_vignette.10_days'|trans }}" hidden disabled>
  250.                                                                         <h2 id="txtAv10Days" class="text-primary txtAvailability">{{ 'app.hu_vignette.10_days'|trans }}</h2>
  251.                                                                         <a id="txtAv10DaysPrice" class="txtAvailabilityPrice text-dark"></a>
  252.                                                                     </div>
  253.                                                                 </label>
  254.                                                             </div>
  255.                                                     </div>
  256.                                                     <div class="d-flex justify-content-between my-2">
  257.                                                         <div data-toggle="tooltip" data-placement="top" class="w-100 mx-3 tooltip-prevent-availability hover-tooltip" title="{{ 'app.hu_vignette.please_select_a_category_first'|trans }}">
  258.                                                             <label type="button" id="lblAv30Days" for="av_30" class="btn btn-vignette-unselected w-100 webkit-none d-flex align-items-center justify-content-center" data-value="{{ 'app.hu_vignette.30_days'|trans|raw }}" data-title="front" style="min-height: 145px !important;">
  259.                                                                 <div class="mx-2 my-2">
  260.                                                                     <input type="radio" name="availability" id="av_30" value="2" data-value="{{ 'app.hu_vignette.30_days'|trans|raw }}" hidden disabled>
  261.                                                                     <h2 id="txtAv30Days" class="text-primary txtAvailability">{{ 'app.hu_vignette.30_days'|trans|raw }}</h2>
  262.                                                                     <a id="txtAv30DaysPrice" class="txtAvailabilityPrice text-dark"></a>
  263.                                                                 </div>
  264.                                                             </label>
  265.                                                         </div>
  266.                                                         <div data-toggle="tooltip" data-placement="top" class="w-100 mx-3 tooltip-prevent-availability hover-tooltip" title="{{ 'app.hu_vignette.please_select_a_category_first'|trans }}">
  267.                                                             <label type="button" id="lblAv12Months" for="av_12" class="btn btn-vignette-unselected w-100 webkit-none d-flex align-items-center justify-content-center" data-value="{{ 'app.hu_vignette.12_months'|trans|raw }}" data-title="front" style="min-height: 145px;">
  268.                                                                 <div class="mx-2 my-2">
  269.                                                                     <input type="radio" name="availability" id="av_12" value="3" data-value="{{ 'app.hu_vignette.12_months'|trans|raw }}" hidden disabled>
  270.                                                                     <h2 id="txtAv1Year" class="text-primary txtAvailability">{{ 'app.hu_vignette.12_months'|trans|raw }}</h2>
  271.                                                                     <a id="txtAv1YearPrice" class="txtAvailabilityPrice text-dark"></a>
  272.                                                                 </div>
  273.                                                             </label>
  274.                                                         </div>
  275.                                                     </div>
  276.                                                     <div class="d-flex justify-content-between my-2">
  277.                                                         <div data-toggle="tooltip" data-placement="top" class="w-100 mx-3 tooltip-prevent-availability hover-tooltip" title="{{ 'app.hu_vignette.please_select_a_category_first'|trans }}">
  278.                                                             <label type="button" id="lblAv12County" for="av_12_county" class="btn btn-vignette-unselected w-100 webkit-none d-flex align-items-center justify-content-center" data-value="{{ 'app.hu_vignette.12_months_county'|trans|raw }}" data-title="front" style="min-height: 145px;">
  279.                                                                 <div class="mx-2 my-2">
  280.                                                                     <input type="radio" name="availability" id="av_12_county" value="4" data-value="{{ 'app.hu_vignette.12_months_county'|trans|raw }}" hidden disabled>
  281.                                                                     <h2 id="txtAv12County" class="text-primary txtAvailability">{{ 'app.hu_vignette.12_months_county'|trans|raw }}</h2>
  282.                                                                     <a id="txtAv12CountyPrice" class="txtAvailabilityPrice text-dark"></a>
  283.                                                                 </div>
  284.                                                             </label>
  285.                                                         </div>
  286.                                                     </div>
  287.                                                     <div id="selectCountiesDiv" class="d-none">
  288.                                                         <label for="counties">{{ 'app.hu_vignette.select_counties'|trans }}</label> <br/>
  289.                                                         <select id="counties" class="selectpicker w-100" name="counties[]" data-style="btn-light h-35-px"
  290.                                                                 multiple data-live-search="true" data-done-button="true" data-actions-box="true" data-live-search-style="startsWith"
  291.                                                                 title="{{ 'app.hu_vignette.please_select_at_least_one'|trans }}">
  292.                                                         </select>
  293.                                                     </div>
  294.                                                     <h6 class="mt-2">{{ 'app.hu_vignette.price_without_tax'|trans }}</h6>
  295.                                                 </div>
  296.                                             </div>
  297.                                         </div>
  298.                                     </div>
  299.                                 </div>
  300.                                 <div class="col-12 col-sm-12 col-md-12 col-lg-2 col-xl-2 d-flex align-items-center justify-content-center my-4">
  301.                                     <div class="btn-wrapper">
  302.                                         <button id="btnSubmitStep1" type="button" class="btn btn-primary-inactive w-100" style="height: 40px" disabled>
  303.                                             <a>{{'app.ui.next_step'|trans}}</a>
  304.                                         </button>
  305.                                     </div>
  306.                                 </div>
  307.                             </div>
  308.                         </div>
  309.                         <div id="vehicleDetails" role="tabpanel" class="bs-stepper-pane fade dstepper-none" aria-labelledby="stepperFormTrigger2">
  310.                             <div class="row my-3">
  311.                                 <div class="col-12 col-sm-12 col-md-12 col-lg-10 col-xl-10">
  312.                                     <div class="card vignette-card shadow">
  313.                                         <div class="card-body">
  314.                                             <div class="row">
  315.                                                 <div class="col-12 col-sm-12 col-md-6 col-lg-6 col-xl-6">
  316.                                                     <h3 class="font-weight-bolder mb-2 text-center">{{ 'app.ui.select_start_date'|trans}}</h3>
  317.                                                     <div class="d-flex justify-content-center align-items-center">
  318.                                                         <input type="hidden" id="validFrom" name="validFrom">
  319.                                                         <div id="datepicker" data-error-message = '{{'app.errors.no_date_selected'|trans }}'></div>
  320.                                                     </div>
  321.                                                     <div class="d-flex justify-content-center mt-3">
  322.                                                         <div class="d-flex">
  323.                                                             <div class="current-date-circle" style="width: 18px; height: 18px"></div>
  324.                                                             <div>
  325.                                                                 <a class="ml-2 text-dark">{{'app.ui.current_date'|trans}}:</a> <br/>
  326.                                                                 <h5 class="ml-2 text-dark">{{ "now"|date("d/m/Y") }}</h5>
  327.                                                             </div>
  328.                                                         </div>
  329.                                                         <div id="divStartDatePicker">
  330.                                                             <div class="d-flex ml-4">
  331.                                                                 <div class="picked-date-circle" style="width: 18px; height: 18px"></div>
  332.                                                                 <div>
  333.                                                                     <a class="ml-2 text-dark">{{'app.ui.start_date'|trans}}:</a> <br/>
  334.                                                                     <h5 class="ml-2 text-muted" id="startDatePicker">DD/MM/YYYY</h5>
  335.                                                                 </div>
  336.                                                             </div>
  337.                                                         </div>
  338.                                                     </div>
  339.                                                     <div class="date-disclaimer">
  340.                                                         {% autoescape false %}
  341.                                                             {{'app.ui.date_disclaimer'|trans}}
  342.                                                         {% endautoescape %}
  343.                                                     </div>
  344.                                                 </div>
  345.                                                 <div class="col-12 col-sm-12 col-md-6 col-lg-6 col-xl-6" style="padding-left: 50px; padding-right: 50px">
  346.                                                     <h3 class="mb-3 font-weight-bolder">{{'app.ui.select_car_data'|trans}}</h3>
  347.                                                     <div class="row mt-3 d-flex align-items-end">
  348.                                                         <div class="col-5 col-sm-5 col-md-6 col-lg-5 col-xl-5">
  349.                                                             <label for="carCountry" class="text-dark lbl-custom lbl-custom-grey d-none">{{ 'app.ui.country_code'|trans}}</label>
  350.                                                             <select id="carCountry" name="carCountry" class="form-control input-custom input-custom-grey" required>
  351.                                                                 <option value="">{{ 'app.ui.country'|trans}}</option>
  352.                                                                 {% for country in countries |sort((a, b) => a.name > b.name) %}
  353.                                                                     <option value="{{ country.code }}">{{ country.name }}</option>
  354.                                                                 {% endfor %}
  355.                                                             </select>
  356.                                                         </div>
  357.                                                         <div class="col-7 col-sm-7 col-md-6 col-lg-7 col-xl-7">
  358.                                                             <label for="registrationPlate" class="text-dark lbl-custom lbl-custom-grey d-none">{{'app.ui.registration_plate'|trans}}</label>
  359.                                                             <input id="registrationPlate" data-warning-message="{{ 'app.warning.characters_not_allowed'|trans }}" data-error-message="{{'app.errors.no_plate'|trans }}" name="registrationPlate" maxlength="10" type="text" class="form-control input-custom input-custom-grey
  360.                                                             " placeholder="{{'app.ui.registration_plate'|trans}}" oninvalid="this.setCustomValidity('{{ 'app.ui.please_fill_this_field'|trans }}')"
  361.                                                                        oninput="setCustomValidity('')"
  362.                                                                        required>
  363.                                                             </div>
  364.                                                             <div data-error-message = '{{ 'app.ui.invalid_registration_plate'|trans }}' id="registrationPlateError"></div>
  365.                                                         </div>
  366.                                                         <div class="row mt-2">
  367.                                                             <div class="col-12">
  368.                                                                 <div id="vinBlock">
  369.                                                                 </div>
  370.                                                             </div>
  371.                                                         </div>
  372.                                                     </div>
  373.                                                 </div>
  374.                                             </div>
  375.                                         <div id="divPaymentNotAvailable" class="alert alert-warning d-none mt-2" role="alert">
  376.                                             {{ 'app.ui.info_payment_not_available'|trans|raw }}
  377.                                         </div>
  378.                                         </div>
  379.                                     </div>
  380.                                     <div class="col-12 col-sm-12 col-md-12 col-lg-2 col-xl-2 d-flex align-items-center justify-content-center my-4">
  381.                                         <div>
  382.                                             <button type="button" class="btn btn-grey btn-add-to-cart w-100 mb-3" style="height: 40px">
  383.                                                 <a class="submit-button">{{'app.ui.add_to_cart'|trans}}</a>
  384.                                             </button>
  385.                                             <button id="btnSubmitVignette" type="submit" class="submit-button btn btn-primary-inactive btn-submit w-100" style="height: 40px"><a>{{'app.ui.buy_now'|trans}}</a></button>
  386.                                         </div>
  387.                                     </div>
  388.                                 </div>
  389.                             </div>
  390.                         </form>
  391.                         <div class="row">
  392.                             <div class="col-6 col-sm-6 col-md-6 col-lg-5 col-xl-5">
  393.                                 <div class="info-text category">
  394.                                     {% autoescape false %}
  395.                                         {{ 'app.hu_vignette.category_description'|trans }}
  396.                                     {% endautoescape %}
  397.                                 </div>
  398.                                 <div class="card my-3">
  399.                                     <div class="card-body d-flex justify-content-between align-items-center">
  400.                                         <img src="{{ asset('assets/shop/images/hungary/nemzeti.png') }}" style="max-width: 50px"/>
  401.                                         <h6 class="font-weight-normal">{{ 'app.hu_vignette.national_payment_distributor'|trans }}</h6>
  402.                                     </div>
  403.                                 </div>
  404.                             </div>
  405.                             <div class="col-6 col-sm-6 col-md-6 col-lg-5 col-xl-5">
  406.                                 <div class="info-text availability">
  407.                                     {% autoescape false %}
  408.                                         {{ 'app.hu_vignette.availability_description'|raw|trans }}
  409.                                     {% endautoescape %}
  410.                                 </div>
  411.                             </div>
  412.                         </div>
  413.                     </div>
  414.                 </div>
  415.             </div>
  416.         </div>
  417.         <div class="bs-stepper-content">
  418.             <div class="row my-3">
  419.                 {% if accordionBlocksAboutHuVignette|length > 0 %}
  420.                     {% for key, block in accordionBlocksAboutHuVignette %}
  421.                         <div class="col-3 my-3">
  422.                             <button class="accordion" type="button" data-toggle="collapse" data-target="#collapse{{ key }}" aria-expanded="false" aria-controls="collapse{{ key }}">{{ block.name }}</button>
  423.                             <div class="collapse" id="collapse{{ key }}">
  424.                                 <div class="card card-body border">{{ block.content|raw }}</div>
  425.                             </div>
  426.                         </div>
  427.                     {% endfor %}
  428.                 {% endif %}
  429.             </div>
  430.         </div>
  431.         <script>
  432.             $(document).ready(function () {
  433.                 $('.selectpicker').selectpicker({
  434.                     'selectAllText': '{{ 'app.ui.select_all'|trans }}',
  435.                     'deselectAllText': '{{ 'app.ui.deselect_all'|trans }}',
  436.                     'doneButtonText': '{{ 'app.ui.close'|trans }}',
  437.                 });
  438.                 $('.show-info-btn').click(function() {
  439.                     $('.info-text.'+$(this).data('for')).toggleClass('d-none');
  440.                 });
  441.                 $('[data-toggle="tooltip"]').not('.hover-tooltip').tooltip({
  442.                     html:true,
  443.                     trigger: 'hover click focus'
  444.                 });
  445.                 $('.hover-tooltip').tooltip({
  446.                     html:true,
  447.                     trigger: 'hover'
  448.                 });
  449.                 let locale = getLocale();
  450.                 function getLocale() {
  451.                     let url = Routing.generate('app_shop_get_locale');
  452.                     $.ajax({
  453.                         url: url,
  454.                         type: 'GET',
  455.                         async: true,
  456.                         dataType: 'json',
  457.                         success: function (locale) {
  458.                             if (locale == 'ro_RO' || locale == 'ro') {
  459.                                 $('[name="carCountry"] option').filter(function() {
  460.                                     return ($(this).val() == 'RO');
  461.                                 }).prop('selected', true).change();
  462.                             } else if (locale == 'hu') {
  463.                                 $('[name="carCountry"] option').filter(function() {
  464.                                     return ($(this).val() == 'HU');
  465.                                 }).prop('selected', true).change();
  466.                             }
  467.                         },
  468.                         error: function (data) {
  469.                         }
  470.                     });
  471.                 }
  472.             })
  473.             var stepper = new Stepper($('.bs-stepper')[0]);
  474.         </script>
  475.         <style>
  476.             .date-disclaimer {
  477.                 border: 1px solid;
  478.                 padding: 5px;
  479.             }
  480.             .show-info-btn {
  481.                 cursor: pointer;
  482.             }
  483.             .info-text {
  484.                 display: block;
  485.                 border: 1px solid lightgray;
  486.                 padding: 20px;
  487.                 width: 100%;
  488.                 background: white;
  489.                 border-radius: 20px;
  490.             }
  491.             .webkit-none {
  492.                 -webkit-appearance: none !important;
  493.             }
  494.             .tooltip-inner {
  495.                 max-width: 350px; /* set this to your maximum fitting width */
  496.                 width: inherit; /* will take up least amount of space */
  497.             }
  498.             .loading {
  499.                 display: flex;
  500.                 flex-direction: column;
  501.                 justify-content: center;
  502.                 align-items: center;
  503.                 text-align: center;
  504.                 min-height: 100vh;
  505.                 z-index: 999;
  506.                 position: fixed;
  507.                 background-color: rgba(0,0,0,0.7);
  508.                 opacity: 100%;
  509.                 width: 100%;
  510.                 height: 100%;
  511.             }
  512.             .h-35-px {
  513.                 height: 35px !important;
  514.             }
  515.             .datepicker-disabled .ui-datepicker-next {
  516.                 display: none;
  517.             }
  518.             .datepicker-disabled .ui-state-default {
  519.                 color: lightgray;
  520.                 cursor: default;
  521.             }
  522.             .ui-state-highlight, .ui-widget-content .ui-state-highlight {
  523.                 background: none !important;
  524.                 color: #454545 !important;
  525.                 border: none !important;
  526.             }
  527.         </style>
  528.     {% else %}
  529.         <div class="card text-center my-3">
  530.             <div class="card-header">
  531.                 <h2>{{ 'app.ui.disabled_temporary'|trans }}</h2>
  532.             </div>
  533.             <div class="card-body">
  534.                 <a href="{{ path('sylius_shop_homepage') }}">{{ 'sylius.ui.back_to_store'|trans }}</a>
  535.             </div>
  536.         </div>
  537.     {% endif %}
  538. {% endblock %}
  539. {% block footer %}
  540.     {% include '@templates/Front/Shop/v2/_footer.html.twig' %}
  541. {% endblock %}