src/PortalBundle/Resources/views/Service/tires-hotel.html.twig line 1

Open in your IDE?
  1. {% extends '@Portal/base.html.twig' %}
  2. {% block seo %}
  3.     <title>{{ 'seo.tires_hotel.title'|trans({}, 'portal_base') }}</title>
  4.     <meta name="description" content="{{ 'seo.tires_hotel.description'|trans({}, 'portal_base') }}"/>
  5. {% endblock %}
  6. {% block css %}
  7.     <link rel="stylesheet" type="text/css" href="/dist/{{ MODE }}/portal/css/portalTiresHotel.css?{{ VERSION }}">
  8. {% endblock %}
  9. {% block content %}
  10.     <section class="breadcrumbs__new">
  11.         <div class="container">
  12.             <ol class="vidi_breadcrumbs__new" itemscope itemtype="https://schema.org/BreadcrumbList">
  13.                 <li class="marker__none" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
  14.                     <a itemprop="item" href="{{ path('portal_homepage') }}">
  15.                         <span class="breadcrumbs__link" itemprop="name">VIDI.UA</span>
  16.                     </a>
  17.                     <meta itemprop="position" content="1"/>
  18.                 </li>
  19.                 <div class="arrow-bc"></div>
  20.                 <li itemprop="item" class="marker__none" itemprop="itemListElement" itemscope
  21.                     itemtype="https://schema.org/ListItem">
  22.                     <span style="color: #ABABAB" class="breadcrumbs__link"
  23.                           itemprop="name">{{ 'service.all.service'|trans({}, 'portal_base') }}</span>
  24.                     <meta itemprop="position" content="2"/>
  25.                 </li>
  26.                 <div class="arrow-bc"></div>
  27.                 <li itemprop="item" class="marker__none" itemprop="itemListElement" itemscope
  28.                     itemtype="https://schema.org/ListItem">
  29.                     <span style="color: #ABABAB" class="breadcrumbs__link"
  30.                           itemprop="name">{{ 'service.all.tires'|trans({}, 'portal_base') }}</span>
  31.                     <meta itemprop="position" content="3"/>
  32.                 </li>
  33.             </ol>
  34.         </div>
  35.     </section>
  36.     <section id="tiresHotel" class="section_prices_storage">
  37.         {% if app.request.locale == 'ru' %}
  38.             {% include '@Portal/Service/translations/tires-hotel-head_ru.html.twig' %}
  39.         {% else %}
  40.             {% include '@Portal/Service/translations/tires-hotel-head_ua.html.twig' %}
  41.         {% endif %}
  42.         <div class="container">
  43.             <div class="prices_storage_wheels">
  44.                 <div class="storage_wheels_block">
  45.                     <p class="storage_wheels_block_title">{{ 'tires_hotel.price_storage_tires'|trans({}, 'portal_base') }}</p>
  46.                     <div class="storage_wheels_content">
  47.                         {% for mainCategory in mainCategories %}
  48.                             <label class="storage_wheels_content_row">
  49.                                 <input class="storage_wheels_input" id="main_category_{{ mainCategory.id }}"
  50.                                        @click="selectCategory('main_category_{{ mainCategory.id }}', '{{ mainCategory.title_ua }}', '{{ mainCategory.min_price|round }}')"
  51.                                        type="checkbox"/>
  52.                                 <span class="checkmark"></span>
  53.                                 <div class="storage_wheels_box">
  54.                                     <p class="storage_wheels_content_check_name">{{ mainCategory.title_ua }}{% if loop.first %}, 4 шт{% endif %}</p>
  55.                                     <p class="storage_wheels_content_price">
  56.                                         <span>{{ 'tires_hotel.from'|trans({}, 'portal_base') }}</span>
  57.                                         {% if loop.first %}
  58.                                             1800 грн/6 {{ 'tires_hotel.month'|trans({}, 'portal_base') }}
  59.                                         {% else %}
  60.                                             {{ mainCategory.min_price|price }} грн
  61.                                         {% endif %}
  62.                                     </p>
  63.                                 </div>
  64.                             </label>
  65.                         {% endfor %}
  66.                     </div>
  67.                 </div>
  68. {#                <div class="storage_wheels_block">#}
  69. {#                    <p class="storage_wheels_block_title">{{ 'tires_hotel.price_another_services'|trans({}, 'portal_base') }}</p>#}
  70. {#                    <div class="storage_wheels_content">#}
  71. {#                        {% for additionCategory in additionCategories %}#}
  72. {#                            <label class="storage_wheels_content_row">#}
  73. {#                                <input class="storage_wheels_input" id="add_category_{{ additionCategory.id }}"#}
  74. {#                                       @click="selectCategory('add_category_{{ additionCategory.id }}', '{{ additionCategory.title_ua }}', '{{ additionCategory.min_price|round }}')"#}
  75. {#                                       type="checkbox"/>#}
  76. {#                                <span class="checkmark"></span>#}
  77. {#                                <div class="storage_wheels_box">#}
  78. {#                                    <p class="storage_wheels_content_check_name">{{ additionCategory.title_ua[0:1]|upper ~ additionCategory.title_ua[1:]}}</p>#}
  79. {#                                    <p class="storage_wheels_content_price">#}
  80. {#                                        <span>{{ 'tires_hotel.from'|trans({}, 'portal_base') }}</span>#}
  81. {#                                        {{ additionCategory.min_price|price }} грн</p>#}
  82. {#                                </div>#}
  83. {#                            </label>#}
  84. {#                        {% endfor %}#}
  85. {#                    </div>#}
  86. {#                </div>#}
  87.             </div>
  88.             <div class="storage_wheels_bottom_wrapper">
  89.                 <p class="wheels_bottom_title">{{ 'tires_hotel.total_cost'|trans({}, 'portal_base') }}</p>
  90.                 <p class="wheels_bottom_price">{{ 'tires_hotel.from'|trans({}, 'portal_base') }}
  91.                     <span v-text="amountWithCurrency"></span>
  92.                 </p>
  93.             </div>
  94.             <p class="wheels_bottom_text">{{ 'tires_hotel.star_1'|trans({}, 'portal_base') }} {{ 'now'|date('d.m.Y') }}.</p>
  95.             <p class="wheels_bottom_text">{{ 'tires_hotel.star_2'|trans({}, 'portal_base') }}</p>
  96.             <p class="wheels_bottom_text">{{ 'tires_hotel.star_3'|trans({}, 'portal_base') }}</p>
  97.             <div class="storage_wheels_bottom_btn_group">
  98.                 <button id="tires-register-online" @click="showTiresHotelPopupForm" class="tires_btn">
  99.                     {{ 'tires_hotel.request_online'|trans({}, 'portal_base') }}
  100.                 </button>
  101.                 <button class="tires_btn tires_btn-white" @click="showCallMePopupForm">{{ 'tires_hotel.consultation'|trans({}, 'portal_base') }}</button>
  102.             </div>
  103.         </div>
  104.     </section>
  105.     {% if app.request.locale == 'ru' %}
  106.         {% include '@Portal/Service/translations/tires-hotel-seo_ru.html.twig' %}
  107.     {% else %}
  108.         {% include '@Portal/Service/translations/tires-hotel-seo_ua.html.twig' %}
  109.     {% endif %}
  110.     {% include '@Portal/Modules/call-me-popup.html.twig' with  {'route':path('form_call_me', {'formType': 47}), 'id' : 'call_me_with_dealers', 'showDealer' : true} %}
  111.     {% include '@Portal/Modules/tires-hotel-popup.html.twig' %}
  112. {% endblock %}
  113. {% block pageJS %}
  114.     <script src="/dist/{{ MODE }}/portal/js/portalTiresHotel.js?{{ VERSION }}"></script>
  115.     <script>
  116.         $(() => {
  117.             portal.portalTiresHotel.initTiresHotel({
  118.                 locale: '{{ app.request.locale }}',
  119.                 call_form_id : 'call_me_with_dealers'
  120.             })
  121.         });
  122.     </script>
  123. {% endblock %}