{% extends '@templates/Mobile/Shop/layout.html.twig' %}
{% block head %}
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Language" content="ro">
<meta name="google-site-verification" content="BEtIqk-choaMawpOxG98NtbWKAZK5MuTxV_2-pSHGFQ">
{% block title %} <title>{{ 'app.ui.calculator_vignette_price'|trans }} | Roviniete.ro</title> {% endblock %}
{% block metatags %}
<meta name="description" content="{% if vignetteDescriptionForSeo|length > 0 %}{{ vignetteDescriptionForSeo.content }}{% endif %}">
<meta name="keywords" content="{% if vignetteKeywordsForSeo|length > 0 %}{{ vignetteKeywordsForSeo.content }}{% endif %}"/>
{% endblock %}
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('/assets/shop/css/homepage.css') }}">
<link rel="stylesheet" href="{{ asset('/assets/shop/css/bootstrap.min.css') }}">
{{ encore_entry_link_tags('bootstrap-fix', null, 'bootstrapTheme') }}
<link rel="stylesheet" href="{{ asset('/assets/shop/css/vignette_shop.v1.css') }}">
<link rel="stylesheet" href="{{ asset('/assets/shop/css/bs-stepper.css') }}">
<link rel="stylesheet" href="{{ asset('/assets/shop/css/leftmenu.v1.css') }}">
{% endblock %}
{{ sonata_block_render_event('sylius.shop.layout.head') }}
{% block javascripts %}
<script src="{{ asset('assets/shop/js/sentry-bundle.min.js') }}"></script>
<script>
if (typeof Sentry !== 'undefined') {
Sentry.init({
dsn: "{{ sentry_dsn }}",
integrations: [new Sentry.Integrations.TryCatch({
eventTarget: false,
})]
});
}
let roadAssistanceValidFrom = null;
MESSAGE_INVALID_REGISTRATION_PLATE = '{{ 'app.ui.invalid_registration_plate'|trans }}';
MESSAGE_INVALID_VIN = '{{ 'app.ui.invalid_vin'|trans }}'
</script>
<script src="{{ asset('assets/shop/js/jquery.min.js') }}"></script>
<script src="{{ asset('/assets/shop/js/bs-stepper.js') }}"></script>
<script src="{{ asset('assets/shop/js/jquery-ui.min.js') }}"></script>
<script src="{{ asset('assets/shop/js/popper.min.js') }}"></script>
<script src="{{ asset('assets/shop/js/bootstrap.min.js') }}"></script>
<script src="{{ asset('assets/shop/js/leftmenu.js') }}"></script>
<script src="{{ asset('/bundles/fosjsrouting/js/router.js') }}"></script>
<script src="{{ asset('assets/shop/js/moment.min.js') }}"></script>
<script src="{{ asset('assets/shop/js/jquery.validate.min.js') }}"></script>
{{ encore_entry_script_tags('vignette') }}
<script src="{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}"></script>
<script>
dataLayer = [];
</script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','{{ gtm_code }}');</script>
<!-- End Google Tag Manager -->
{% endblock %}
</head>
{% endblock %}
{% block content %}
<div id="loadingDiv" class="loading d-none">
<div class="card w-50">
<div class="card-body bg-loading-card">
<img src="{{ asset('assets/shop/images/spinner.gif') }}"
style="width: 50px; pointer-events: none"/>
<h5>Se verifica datele</h5>
</div>
</div>
</div>
<div class="d-inline-flex mx-3">
<a href="{{ path('sylius_shop_homepage') }}" class="section text-primary" style="font-size: 0.8em;">{{ 'sylius.ui.home'|trans }}</a>
<div class="divider"> /</div>
<small class="section active">{{ 'app.ui.vignettes'|trans }}</small>
</div>
<div id="isMobileComponent" class="d-none"></div>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{ gtm_code }}"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
{% if lastProductStatus.vignetteStatus %}
<h1 class="mt-4 mx-3">{{ 'app.ui.calculator_vignette_price'|trans}}</h1>
{% set smsPrice = sms_price_ron.calculateSmsPrice %}
{% set oldValues = app.request.request %}
<div id="specialErrors" class="alert alert-warning alert-dismissible fade show d-none" role="alert">
<div class="header text-center">
<h2>{{ 'sylius.ui.warning'|trans }}</h2>
</div>
<p>
<h5 class="text-center text-primary vignette-already-bought d-none">
{{ 'app.ui.vignette_available_for_choosen_date'|trans }}
</h5>
<h5 class="special-error">
</h5>
<a class="text-center">
</a>
</p>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div id="categoryError" class="alert alert-warning fade show d-none" role="alert">
<div class="header text-center">
<h2>{{ 'app.ui.error'|trans }}</h2>
</div>
<p>
<h5 class="text-center text-primary">
{{ 'app.ui.vignette_category_error'|trans }}
</h5>
<h5 class="special-error">
</h5>
<a class="text-center">
</a>
</p>
</div>
<div id="divNoSpecialCharacters" class="alert alert-warning d-none" role="alert">
{{ 'app.ui.no_special_characters_allowed'|trans }}
</div>
{% include '@templates/Mobile/Checkout/_modal_payment_not_available.html.twig' %}
{% include '@templates/AdminCustom/Layout/loading.html.twig' with {showLoading: true} %}
<div class="row mx-1 my-3">
</div>
<form id="vignetteForm" method="POST">
<input type="hidden" name="ignoreAlreadyActive" id="ignoreAlreadyActive" value="false">
<input type="hidden" name="ignoreWrongCategory" id="ignoreWrongCategory" value="false">
<input type="hidden" name="productStatusExtraOptions" id="productStatusExtraOptions" value="{{ lastProductStatus.extraOptionsStatus }}">
<div class="mb-5">
<div class="main-container mx-2 mt-2">
<div id="accordion">
<div class="card mb-3 shadow-sm">
<div id="headingOne" class="pb-2">
<h5 class="mb-0">
<button id="btnStep1" style="font-size: 0.8em;" class=" w-100 no-button text-dark font-weight-bolder ml-3" type="button" data-toggle="collapse" data-target="#step1Collapse" aria-expanded="true" aria-controls="step1Collapse" disabled>
<div class="row align-items-center mt-2 mr-2">
<div class="col-12 mt-1">
<div class="d-flex justify-content-between align-items-center">
<div>
<img id="imgStep1" src="{{ asset('assets/shop/images/icons/ic_check_small_primary.png')}}" style="width: 18px; position: relative; top: -2px; margin-right: 10px;"/>
<a id="txtStep1" class="text-primary">
<span style="font-size: 1.5em; font-weight: 500;">{{'app.ui.step_one'|trans}}</span>
<span id="step1CollapsedTxt" style="font-size: 1.3em; font-weight: 400; margin-left: 20px;">{{ 'app.ui.step_one_indication'|trans }}</span></a>
</div>
<div id="step1EditIcon" class="d-none" style="margin-left: auto; order: 2;" >
<img src="{{ asset('assets/shop/images/icons/ic_edit_grey.png')}}" style="width: 20px"/>
</div>
</div>
<div class="text-left" style="margin-left: 27px">
<a id="txtSelectionStep1"></a>
</div>
</div>
</div>
</button>
</h5>
</div>
<div id="step1Collapse" class="collapse show" aria-labelledby="headingOne" data-parent="#accordion" >
<div class="card-body">
<div class="mt-0">
{% for category in vignetteCategories%}
{% if loop.index % 2 != 0 %}
<div class="d-flex justify-content-between">
{% endif %}
<label type="button" for="{{ category.code|first|lower }}" class="btn {% if oldValues.get('category') and oldValues.get('category') == category.id %} btn-vignette-selected {% else %} btn-vignette-unselected {% endif %} w-100 mr-1 webkit-none" style="min-height: 50px">
<div class="d-flex justify-content-between align-items-center">
<input type="radio" name="category" id="{{ category.code|first|lower }}" data-error-message="{{'app.errors.no_category_selected'|trans }}" value="{{ category.id }}"
data-category="
{% if category.id == category_rovignette_a_id%}
{{ 'app.ui.category_rovignette_a_name'|trans }}
{% elseif category.id == category_rovignette_b_id %}
{{ 'app.ui.category_rovignette_b_name'|trans }}
{% elseif category.id == category_rovignette_c_id %}
{{ 'app.ui.category_rovignette_c_name'|trans|raw }}
{% elseif category.id == category_rovignette_d_id %}
{{ 'app.ui.category_rovignette_d_name'|trans }}
{% elseif category.id == category_rovignette_e_id %}
{{ 'app.ui.category_rovignette_e_name'|trans|raw }}
{% elseif category.id == category_rovignette_f_id %}
{{ 'app.ui.category_rovignette_f_name'|trans|raw }}
{% elseif category.id == category_rovignette_g_id %}
{{ 'app.ui.category_rovignette_g_name'|trans }}
{% elseif category.id == category_rovignette_h_id %}
{{ 'app.ui.category_rovignette_h_name'|trans }}
{% endif %}
"
{% if vehicle is not null and vehicle.roVignetteCategory is not null and vehicle.roVignetteCategory.id is defined and vehicle.roVignetteCategory.id == category.id %} checked
{% elseif oldValues.get('category') == category.id %} checked {% endif %} hidden>
<img {% if oldValues.get('category') and oldValues.get('category') == category.id %} src="{{ (asset('assets/shop/images/icons/ic_rovinieta_categ_' ~ category.code|first|lower) ~ '_white' ~ '.png')}}" {% else %}src="{{ (asset('assets/shop/images/icons/ic_rovinieta_categ_' ~ category.code|first|lower) ~ '.png')}}"{% endif %} style="width: 46px;"/>
<a id="vehicleType-{{category.code|first|lower}}" class="font-weight-bold {% if oldValues.get('category') and oldValues.get('category') == category.id %} text-white{% endif %}" style="color: #343a40;" >
{% if category.id == category_rovignette_a_id%}
{{ 'app.ui.category_rovignette_a_short_code'|trans }}
{% elseif category.id == category_rovignette_b_id %}
{{ 'app.ui.category_rovignette_b_short_code'|trans }}
{% elseif category.id == category_rovignette_c_id %}
{{ 'app.ui.category_rovignette_c_short_code'|trans|raw }}
{% elseif category.id == category_rovignette_d_id %}
{{ 'app.ui.category_rovignette_d_short_code'|trans }}
{% elseif category.id == category_rovignette_e_id %}
{{ 'app.ui.category_rovignette_e_short_code'|trans|raw }}
{% elseif category.id == category_rovignette_f_id %}
{{ 'app.ui.category_rovignette_f_short_code'|trans|raw }}
{% elseif category.id == category_rovignette_g_id %}
{{ 'app.ui.category_rovignette_g_short_code'|trans }}
{% elseif category.id == category_rovignette_h_id %}
{{ 'app.ui.category_rovignette_h_short_code'|trans }}
{% endif %}
</a>
</div>
</label>
{% if loop.index % 2 == 0 %}
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
<div class="card mb-3 shadow-sm">
<div id="headingTwo" class="pb-2">
<h5 class="mb-0">
<button disabled id="btnStep2" style="font-size: 0.8em;" class=" w-100 no-button text-dark font-weight-bolder ml-3" type="button" data-toggle="collapse" data-target="#step2Collapse" aria-expanded="false" aria-controls="step2Collapse">
<div class="row align-items-start mt-2 mr-2">
<div class="col-12 mt-1">
<div class="d-flex justify-content-between align-items-center">
<div>
<img id="imgStep2" src="{{ asset('assets/shop/images/icons/ic_check_small_grey.png')}}" style="width: 18px; position: relative; top: -2px; margin-right: 10px;"/>
<a id="txtStep2" class="text-secondary">
<span style="font-size: 1.5em; font-weight: 500;">{{'app.ui.step_two'|trans}}</span>
<span id="step2CollapsedTxt" style="font-size: 1.3em; font-weight: 400; margin-left: 20px;">{{ 'app.ui.step_two_indication'|trans }}</span>
</a>
</div>
<div id="step2EditIcon" class="d-none" style=" margin-left: auto; order: 2;" >
<img src="{{ asset('assets/shop/images/icons/ic_edit_grey.png')}}" style="width: 20px"/>
</div>
</div>
<div class="text-left" style="margin-left: 27px">
<a id="txtSelectionStep2"></a>
</div>
</div>
</div>
</button>
</h5>
</div>
<div id="step2Collapse" class="collapse" aria-labelledby="headingTwo" data-parent="#accordion">
<div class="card-body">
<div class="d-flex justify-content-center">
<input type="hidden" id="validFrom" name="validFrom"{% if oldValues.get('validFrom') %} value = {{oldValues.get('validFrom') }}
{% elseif oldValidFrom is not null %} data-value="{{ oldValidFrom|date("m/d/Y") }}"
{% endif %}>
<div id="datepicker" data-error-message = '{{'app.errors.no_date_selected'|trans }}'></div>
</div>
</div>
</div>
</div>
<div class="card mb-3 shadow-sm">
<div id="headingThree" class="pb-2">
<h5 class="mb-0">
<button disabled id="btnStep3" style="font-size: 0.8em;" class=" w-100 no-button text-dark font-weight-bolder ml-3" type="button" data-toggle="collapse" data-target="#step3Collapse" aria-expanded="false" aria-controls="step3Collapse">
<div class="row align-items-start mt-2 mr-2">
<div class="col-12 mt-1">
<div class="d-flex justify-content-between align-items-center">
<div>
<img id="imgStep3" src="{{ asset('assets/shop/images/icons/ic_check_small_grey.png')}}" style="width: 18px; position: relative; top: -2px; margin-right: 10px;"/>
<a id="txtStep3" class="text-secondary">
<span style="font-size: 1.5em; font-weight: 500;">{{'app.ui.step_three'|trans}}</span>
<span id="step3CollapsedTxt" style="font-size: 1.3em; font-weight: 400; margin-left: 20px;">{{ 'app.ui.step_three_indication'|trans }}</span>
</a>
</div>
<div id="step3EditIcon" class="d-none" style=" margin-left: auto; order: 2;" >
<img src="{{ asset('assets/shop/images/icons/ic_edit_grey.png')}}" style="width: 20px"/>
</div>
</div>
<div class="text-left" style="margin-left: 27px">
<a id="txtSelectionStep3" style="display: none"></a>
</div>
</div>
</div>
</button>
</h5>
</div>
<div id="step3Collapse" class="collapse" aria-labelledby="headingThree" data-parent="#accordion">
<div class="card-body">
<div class="d-flex justify-content-between availability-wrapper" data-error-message="{{'app.errors.no_availability_selected'|trans }}">
<label type="button" id="lblAv1Day" for="av_1" class="btn btn-vignette-unselected w-100 webkit-none" style="display: none; min-height: 65px" data-value="{{ 'app.ui.1_day'|trans }}">
<div class="mx-2 my-2">
<input type="radio" name="availability" id="av_1" value="1" hidden {% if oldValues.get('availability') == 1 %} checked {% endif %}>
<h2 id="txtAv1Day" class="{% if oldValues.get('availability') == 1 %} text-white {% else %} text-primary {% endif %} txtAvailability">{{ 'app.ui.1_day'|trans }}</h2>
<a id="txtAv1DayPrice" class=" {% if oldValues.get('availability') == 1 %} text-white {% endif %} txtAvailabilityPrice">17.60 LEI</a>
</div>
</label>
</div>
<div class="d-flex justify-content-between">
<label type="button" id="lblAv7Day" for="av_7" class="btn btn-vignette-unselected w-100 mr-2 webkit-none" data-value="{{ 'app.ui.7_days'|trans }}" style="display: none; min-height: 65px">
<div class="mx-2 my-2">
<input type="radio" name="availability" id="av_7" value="2" hidden {% if oldValues.get('availability') == 2 %} checked {% endif %}>
<h2 id="txtAv7Days" class="{% if oldValues.get('availability') == 2 %} text-white {% else %} text-primary {% endif %} txtAvailability">{{ 'app.ui.7_days'|trans }}</h2>
<a id="txtAv7DaysPrice" class="txtAvailabilityPrice {% if oldValues.get('availability') == 2 %} text-white {% endif %} ">17.60 LEI</a>
</div>
</label>
<label type="button" id="lblAv10Day" for="av_10" class="btn btn-vignette-unselected w-100 mr-2 webkit-none" data-value="{{ 'app.ui.10_days'|trans }}" style="display: none; min-height: 65px">
<div class="mx-2 my-2">
<input type="radio" name="availability" id="av_10" value="6" hidden {% if oldValues.get('availability') == 6 %} checked {% endif %}>
<h2 id="txtAv10Days" class="{% if oldValues.get('availability') == 6 %} text-white {% else %} text-primary {% endif %} txtAvailability">{{ 'app.ui.10_days'|trans }}</h2>
<a id="txtAv10DaysPrice" class="txtAvailabilityPrice {% if oldValues.get('availability') == 6 %} text-white {% endif %} ">17.60 LEI</a>
</div>
</label>
<label type="button" for="av_30" class="btn btn-vignette-unselected w-100 webkit-none" data-value="{{ 'app.ui.30_days'|trans }}" style="min-height: 65px">
<div class="mx-2 my-2">
<input type="radio" name="availability" id="av_30" value="3" hidden {% if oldValues.get('availability') == 3 %} checked {% endif %}>
<h2 id="txtAv30Days" class="{% if oldValues.get('availability') == 3 %} text-white {% else %} text-primary {% endif %} txtAvailability">{{ 'app.ui.30_days'|trans }}</h2>
<a id="txtAv30DaysPrice" class="txtAvailabilityPrice {% if oldValues.get('availability') == 3 %} text-white {% endif %} ">33.60 LEI</a>
</div>
</label>
</div>
<div class="d-flex justify-content-between">
<label type="button" id="lblAv90Day" for="av_90" class="btn btn-vignette-unselected w-100 mr-2 webkit-none" data-value="{{ 'app.ui.90_days'|trans }}" style="display: none; min-height: 65px">
<div class="mx-2 my-2">
<input type="radio" name="availability" id="av_90" value="4" hidden {% if oldValues.get('availability') == 4 %} checked {% endif %}>
<h2 id="txtAv90Days" class="{% if oldValues.get('availability') == 4 %} text-white {% else %} text-primary {% endif %} txtAvailability">{{ 'app.ui.90_days'|trans }}</h2>
<a id="txtAv90DaysPrice" class="txtAvailabilityPrice {% if oldValues.get('availability') == 4 %} text-white {% endif %} ">117.60 LEI</a>
</div>
</label>
<label type="button" id="lblAv60Day" for="av_60" class="btn btn-vignette-unselected w-100 mr-2 webkit-none" data-value="{{ 'app.ui.60_days'|trans }}" style="display: none; min-height: 65px">
<div class="mx-2 my-2">
<input type="radio" name="availability" id="av_60" value="7" hidden {% if oldValues.get('availability') == 7 %} checked {% endif %}>
<h2 id="txtAv60Days" class="{% if oldValues.get('availability') == 7 %} text-white {% else %} text-primary {% endif %} txtAvailability">{{ 'app.ui.60_days'|trans }}</h2>
<a id="txtAv60DaysPrice" class="txtAvailabilityPrice {% if oldValues.get('availability') == 7 %} text-white {% endif %} ">117.60 LEI</a>
</div>
</label>
<label type="button" for="av_12" class="btn btn-vignette-unselected w-100 webkit-none" data-value="{{ 'app.ui.12_months'|trans }}" style="min-height: 65px">
<div class="mx-2 my-2">
<input type="radio" name="availability" id="av_12" value="5" hidden {% if oldValues.get('availability') == 5 %} checked {% endif %}>
<h2 id="txtAv1Year" class="{% if oldValues.get('availability') == 5 %} text-white {% else %} text-primary {% endif %} txtAvailability">{{ 'app.ui.12_months'|trans }}</h2>
<a id="txtAv1YearPrice" class="txtAvailabilityPrice {% if oldValues.get('availability') == 5 %} text-white {% endif %} ">333.60 LEI</a>
</div>
</label>
</div>
</div>
</div>
</div>
<div class="card mb-3 shadow-sm">
<div id="headingFour" class="pb-2">
<h5 class="mb-0">
<button disabled id="btnStep4" style="font-size: 0.8em;" class=" w-100 no-button text-dark font-weight-bolder ml-3" type="button" data-toggle="collapse" data-target="#step4Collapse" aria-expanded="false" aria-controls="step4Collapse">
<div class="row align-items-start mt-2 mr-2">
<div class="col-12 mt-1">
<div class="d-flex justify-content-between align-items-center">
<div>
<img id="imgStep4" src="{{ asset('assets/shop/images/icons/ic_check_small_grey.png')}}" style="width: 18px; position: relative; top: -2px; margin-right: 10px;"/>
<a id="txtStep4" class="text-secondary">
<span style="font-size: 1.5em; font-weight: 500;">{{'app.ui.step_four'|trans}}</span>
<span style="font-size: 1.3em; font-weight: 400; margin-left: 20px;">{{ 'app.ui.step_four_indication'|trans }}</span>
</a>
</div>
<div id="step4EditIcon" class="d-none" style=" margin-left: auto; order: 2;" >
<img src="{{ asset('assets/shop/images/icons/ic_edit_grey.png')}}" style="width: 20px"/>
</div>
</div>
</div>
</div>
</button>
</h5>
</div>
<div id="step4Collapse" class="collapse" aria-labelledby="headingFour" data-parent="#accordion">
<div class="card-body">
<div class=" d-flex align-items-center" >
<div class="mr-2">
<label for="carCountry" id="carCountryLabel" class="lbl-custom lbl-custom-grey d-none" style="width: 100% !important;">{{ 'app.ui.country_code'|trans}}</label>
<select id="carCountry" name="carCountry"
data-style="btn-grey border-0 selectpicker-custom shadow-none prometo-font" data-live-search="true"
title="{{ 'app.ui.country_code'|trans }}*" class="form-control input-custom input-custom-grey selectpicker"
required>
<option id="countryCodeOption" value="">{{'app.ui.country_code'|trans}}</option>
{% for country in countries|sort((a, b) => a.name > b.name) %}
<option id="{{ country.code }}" data-content="<span class='text-dark'>{{ country.name }} - {{ country.code }}</span>"
value="{{ country.code }}" {% if oldValues.get('carCountry') and oldValues.get('carCountry') == country.code %} selected {% endif %}
>{{ country.name }} - {{ country.code }}</option>
{% endfor %}
</select>
</div>
<div class="flex-grow-1">
<label for="registrationPlate" id="registrationPlateLabel" class="lbl-custom lbl-custom-grey d-none" style="width: 100% !important;">{{'app.ui.registration_plate'|trans}}</label>
<input id="registrationPlate" name="registrationPlate" data-warning-message="{{ 'app.warning.characters_not_allowed'|trans }}"
data-error-message="{{'app.errors.no_plate'|trans }}" type="text" class="form-control input-custom input-custom-grey"
placeholder="{{'app.ui.registration_plate'|trans}}" maxlength="10" required
oninvalid="this.setCustomValidity('{{ 'app.ui.please_fill_this_field'|trans }}')"
oninput="setCustomValidity('')"
{% if vehicle is not null and vehicle.registrationPlate is not null and vehicle.registrationPlate is defined %}
value="{{ vehicle.registrationPlate }}"
{% elseif oldValues.get('registrationPlate') %}
value="{{ oldValues.get('registrationPlate') }}"
{% endif %} required> </div>
<div id="registrationPlateCheckIcon" class="ml-2 invisible" >
<img src="{{ asset('assets/shop/images/icons/ic_validation_check.png')}}" style="width: 30px"/>
</div>
</div>
<div class="d-flex align-items-center my-2">
<div class="flex-grow-1">
<div id="vinBlock" class="d-none">
<label for="vin" class="text-dark lbl-custom lbl-custom-grey d-none" style="width: 100% !important;">{{'app.ui.vin'|trans}} ({{ 'app.ui.chassis_number'|trans }})</label>
<input id="vin" name="vin" type="text" style="width: 100% !important;"
class="form-control input-custom input-custom-grey" placeholder="{{'app.ui.vin'|trans}} ({{ 'app.ui.chassis_number'|trans }})">
</div>
</div>
<div id="vinCheckIcon" class="ml-2 invisible" >
<img src="{{ asset('assets/shop/images/icons/ic_validation_check.png')}}" style="width: 30px"/>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="finalizeOrder">
{% if app.request.locale == 'ro' and lastProductStatus.vignetteSmsStatus %}
<div class="vignette-alert-container px-2 py-3">
<div class="d-flex justify-content-between align-items-center-center">
<div class="custom-control custom-checkbox">
<input type="checkbox" name="vignetteAlert" id="vignetteAlert" class="custom-control-input" data-price="{{ smsPrice }}"
{% if oldValues.get('vignetteAlert') %} checked {% endif %}>
<label for="vignetteAlert" class="custom-control-label">
<h4 class="text-dark font-weight-bolder" style="letter-spacing: 0.01em;">{{'app.ui.sms_alert'|trans}}</h4>
</label>
</div>
<div>
<h4 class="font-weight-bolder"> {{ smsPrice }} Lei ({{ sms_price_eur }} Eur)</h4>
</div>
</div>
<div>
<a>{{'app.ui.alert_description'|trans}}</a>
</div>
</div>
{% endif %}
<div id="app" class="my-2">
{% if lastProductStatus.roadAssistanceStatus and lastProductStatus.vignetteRoadAssistanceStatus %}
<road-assistance :price="{{ road_assistance_service.retrieveDefaultPrice }}" :terms-and-conditions-route="'{{ path('bitbag_sylius_cms_plugin_shop_page_show', {'slug' : 'terms-and-conditions-road-assistance'}) }}'" v-bind:is-mobile="true"></road-assistance>
{% endif %}
</div>
<div id="divCnairAlert" class="vignette-alert-container px-2 py-3 bg-white d-none">
<div class="d-flex justify-content-between align-items-center-center">
<div class="custom-control custom-checkbox">
<input type="checkbox" name="email_allowed" id="email_allowed" class="custom-control-input">
<label for="email_allowed" class="custom-control-label">
<h5 class="text-dark" style="letter-spacing: 0.01em;">{{'app.ui.cnair_alert'|trans}}</h5>
</label>
</div>
</div>
</div>
<div class="row my-3 btn-wrapper" style="height: 45px; margin: 5px;">
<button id="btnSubmitVignette" name="btnSubmitVignette" type="submit" class="btn btn-submit btn-primary w-100 h-100">
<a>{{'app.ui.next_step'|trans}}</a>
</button>
</div>
</div>
</div>
</form>
<style>
.text-primary {
color: #E95A31;
}
.selectpicker-custom {
height: 50px !important;
border-bottom: 1px solid #878C96 !important;
}
.input-custom {
width: 100% !important;
}
.webkit-none {
-webkit-appearance: none !important;
}
.ui-state-highlight, .ui-widget-content .ui-state-highlight {
background: none !important;
color: #454545 !important;
border: none !important;
}
.modal-backdrop {
opacity: 50% !important;
}
.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
background-color: #e95a31 !important;
}
.b-calendar-grid-body {
margin-left: .5rem!important;
margin-right: .5rem!important;
}
.b-calendar-grid-weekdays {
border: none !important;
}
.loading {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
min-height: 100vh;
z-index: 999;
position: fixed;
background-color: rgba(0,0,0,0.7);
opacity: 100%;
width: 100%;
height: 100%;
}
</style>
{% else %}
<div class="card text-center my-3">
<div class="card-header">
<h2>{{ 'app.ui.disabled_temporary'|trans }}</h2>
</div>
<div class="card-body">
<a href="{{ path('sylius_shop_homepage') }}">{{ 'sylius.ui.back_to_store'|trans }}</a>
</div>
</div>
{% endif %}
{% endblock %}
{% block footer %}
{% if lastProductStatus.vignetteStatus %}
<script>
const route = "{{ path('sylius_shop_homepage')|escape('js') }}";
const roadAssistanceTranslations = '{{ roadAssistanceTranslations|json_encode|raw }}';
</script>
{{ encore_entry_script_tags('vue') }}
{% set oldValues = app.request.request %}
<script type="text/javascript">
$(document).ready(function () {
$(window).bind("load", function () {
let locale = getLocale();
function getLocale() {
let url = Routing.generate('app_shop_get_locale');
$.ajax({
url: url,
type: 'GET',
async: false,
dataType: 'json',
success: function (locale) {
if (locale == 'ro_RO' || locale == 'ro') {
$('[name="carCountry"] option').filter(function() {
return ($(this).val() == 'RO');
}).prop('selected', true).change();
$('select[name=carCountry]').val('RO').change();
let selectPicker = $('.selectpicker');
if (selectPicker.length > 0 && typeof selectPicker.selectpicker === 'function') {
selectPicker.selectpicker('refresh');
}
let btn = $('[data-id="' + 'carCountry' + '"]');
btn.addClass('selectpicker-custom-selected');
btn.removeClass('selectpicker-custom');
}
},
error: function (data) {
}
});
}
});
})
var one_day = '{{ 'app.ui.1_day'|trans|lower }}';
var seven_days = '{{ 'app.ui.7_days'|trans|lower }}';
var ten_days = '{{ 'app.ui.10_days'|trans|lower }}';
var thirty_days = '{{ 'app.ui.30_days'|trans|lower }}';
var sixty_days = '{{ 'app.ui.60_days'|trans|lower }}';
var ninety_days = '{{ 'app.ui.90_days'|trans|lower }}';
var twelve_months = '{{ 'app.ui.12_months'|trans|lower }}';
var locale = '{{ app.request.getLocale() }}';
</script>
{% endif %}
{% block cnair_partner %}
<div class="mx-5">
<div class="text-center align-items-center">
<div class="ui circular label bg-white">
<img src="{{ asset('assets/shop/images/icons/ic_trust_cnair_bw.png') }}" style="width: 20px"/>
</div>
<div class="ui circular label bg-white">
<img src="{{ asset('assets/shop/images/icons/ic_trust_stema_bw.png') }}" style="width: 20px"/>
</div>
<br/>
<small>{{ 'app.ui.cnair_authorized_long'|trans }}</small>
</div>
</div>
{% endblock %}
{% if accordionBlocksAboutVignette is defined and accordionBlocksAboutVignette|length > 0 %}
<div class="row my-3 align-items-center text-center">
{% for key, block in accordionBlocksAboutVignette %}
<div class="col-12 col-sm-12 col-md-6 col-lg-4 mb-3">
<button class="accordion" type="button" data-toggle="collapse" data-target="#collapse{{ key }}" aria-expanded="false" aria-controls="collapse{{ key }}">{{ block.name }}</button>
<div class="collapse" id="collapse{{ key }}">
<div class="card card-body border">{{ block.content|raw }}</div>
</div>
</div>
{% endfor %}
</div>
{% endif %}
{% if accordionBlocksAboutHuVignette is defined and accordionBlocksAboutHuVignette|length > 0 %}
<div class="row my-3 align-items-center text-center">
{% for key, block in accordionBlocksAboutHuVignette %}
<div class="col-12 col-sm-12 col-md-6 col-lg-4 mb-3">
<button class="accordion" type="button" data-toggle="collapse" data-target="#collapse{{ key }}" aria-expanded="false" aria-controls="collapse{{ key }}">{{ block.name }}</button>
<div class="collapse" id="collapse{{ key }}">
<div class="card card-body border">{{ block.content|raw }}</div>
</div>
</div>
{% endfor %}
</div>
{% endif %}
{% include '@templates/Front/Shop/v2/_footer.html.twig' %}
{% endblock %}