templates/shared/ui/modal/modal_web.html.twig line 1

Open in your IDE?
  1. <div id="modal_{% if id is defined %}{{ id }}{% endif %}" tabindex="-1" class="modal-window max-w-[680px] fixed hidden top-0 left-0 right-0 z-50 show:opacity-100 w-full py-4 px-[32px] h-[100vh] justify-center items-center overflow-x-hidden mx-auto max-h-full flex">
  2.     <div class="relative w-full max-h-full overflow-y-auto">
  3.         <!-- Modal content -->
  4.         <div class="relative bg-white rounded-lg shadow px-[12px]">
  5.             <!-- Modal header -->
  6.             <div class="flex items-center justify-between p-4 md:p-5 rounded-t">
  7.                 <button type="button" class="modal-close text-gray-400 bg-transparent hover:bg-gray-50 hover:text-gray-900 rounded-full text-sm w-8 h-8 ms-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white" data-modal-hide="extralarge-modal">
  8.                     <svg class="w-3 h-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
  9.                         <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"/>
  10.                     </svg>
  11.                     <span class="sr-only">Close modal</span>
  12.                 </button>
  13.             </div>
  14.             <!-- Modal body -->
  15.             {% if image is defined and image is not empty %}
  16.                 <div class="w-[100px] h-[100px] rounded-full bg-[#cd2b300d] {% if companyStyles.secondTitleTextAlign == 'center' %}mx-auto{% endif %} p-[16px] mb-[16px]">
  17.                     <div class="w-[68px] h-[68px] mx-auto">
  18.                         {{ sonata_media(image, 'reference') }}
  19.                     </div>
  20.                 </div>
  21.             {% elseif imageLink is defined and imageLink is not empty %}
  22.                 <div class="w-[100px] h-[100px] rounded-full bg-[#cd2b300d] {% if companyStyles.secondTitleTextAlign == 'center' %}mx-auto{% endif %} p-[16px] mb-[16px]">
  23.                     <div class="w-[68px] h-[68px] mx-auto">
  24.                         <img src="{{ imageLink }}" alt="{% if name is defined %}{{ name }}{% endif %}">
  25.                     </div>
  26.                 </div>
  27.             {% endif %}
  28.             <div class="text-[24px] font-semibold text-[#1B2028] mb-[24px]"
  29.                  style="{{ inlineStyles(app.request.get('companyInner'), constant('App\\Constants\\SettingConstants::BLOCK_TITLE_STYLES')) }}"
  30.             >{% if name is defined %}
  31.                     {{ name }}
  32.                 {% endif %}</div>
  33. {#            TODO  fix data from admin #}
  34.             <!-- rounded-[16px] p-[18px] border border-[#E2E2E9] bg-[#F7F7FA] mb-[12px] w-[16px] min-w-[16px] h-[16px] m-0 inline text-[18px] text-[#1B2028] text-[14px] text-[#909299] font-semibold leading-[18px] font-semibold mb-[24px] flex gap-[24px] flex-col flex gap-[16px] w-[34px] min-w-[34px] h-[34px] text-[14px] text-[#1B2028] leading-[18px] -->
  35. {#            <div class="rounded-[16px] p-[18px] border border-[#E2E2E9] bg-[#F7F7FA] mb-[12px]">#}
  36. {#                <div class="text-[18px] text-[#1B2028] font-semibold mb-[24px]">{% trans from 'tarif_choice' %}Які особливості eSim від Vodafone{% endtrans %}</div>#}
  37. {#                <div class="flex gap-[24px] flex-col">#}
  38. {#                    <div class="flex gap-[16px]">#}
  39. {#                        <svg class="w-[34px] min-w-[34px] h-[34px]">#}
  40. {#                            <use href="{{ asset('build/sprite.svg#phone_icon') }}"></use>#}
  41. {#                        </svg>#}
  42. {#                        <div class="text-[14px] text-[#1B2028] font-semibold leading-[18px]">{% trans from 'tarif_choice' %}Обирай номер з запропонованих{% endtrans %}</div>#}
  43. {#                    </div>#}
  44. {#                    <div class="flex gap-[16px]">#}
  45. {#                        <svg class="w-[34px] min-w-[34px] h-[34px]">#}
  46. {#                            <use href="{{ asset('build/sprite.svg#cash_icon') }}"></use>#}
  47. {#                        </svg>#}
  48. {#                        <div class="text-[14px] text-[#1B2028] font-semibold leading-[18px]">{% trans from 'tarif_choice' %}Перша абонплата включені у вартість eSim{% endtrans %}</div>#}
  49. {#                    </div>#}
  50. {#                    <div class="flex gap-[16px]">#}
  51. {#                        <svg class="w-[34px] min-w-[34px] h-[34px]">#}
  52. {#                            <use href="{{ asset('build/sprite.svg#number_icon') }}"></use>#}
  53. {#                        </svg>#}
  54. {#                        <div class="text-[14px] text-[#1B2028] font-semibold leading-[18px]">{% trans from 'tarif_choice' %}eSim від Vodafone можна встановити до 5 разів{% endtrans %}</div>#}
  55. {#                    </div>#}
  56. {#                </div>#}
  57. {#            </div>#}
  58. {#            <div class="rounded-[16px] p-[18px] border border-[#E2E2E9] bg-[#F7F7FA] mb-[12px]">#}
  59. {#                <div class="text-[18px] text-[#1B2028] font-semibold mb-[24px]">{% trans from 'tarif_choice' %}Деталі тарифу{% endtrans %}</div>#}
  60. {#                <div class="flex gap-[24px] flex-col">#}
  61. {#                    <div class="flex gap-[16px]">#}
  62. {#                        <svg class="w-[34px] min-w-[34px] h-[34px]">#}
  63. {#                            <use href="{{ asset('build/sprite.svg#wifi_icon') }}"></use>#}
  64. {#                        </svg>#}
  65. {#                        <div class="flex flex-col">#}
  66. {#                            <div class="text-[14px] text-[#909299] font-semibold leading-[18px]">{% trans from 'tarif_choice' %}Інтернет{% endtrans %}</div>#}
  67. {#                            <div class="text-[14px] text-[#1B2028] font-semibold leading-[18px]">{% trans from 'tarif_choice' %}25 ГБ {% endtrans %}</div>#}
  68. {#                        </div>#}
  69. {#                    </div>#}
  70. {#                    <div class="flex gap-[16px]">#}
  71. {#                        <svg class="w-[34px] min-w-[34px] h-[34px]">#}
  72. {#                            <use href="{{ asset('build/sprite.svg#phone_icon') }}"></use>#}
  73. {#                        </svg>#}
  74. {#                        <div class="flex flex-col">#}
  75. {#                            <div class="text-[14px] text-[#909299] font-semibold leading-[18px]">{% trans from 'tarif_choice' %}Дзвінки по Україні{% endtrans %}</div>#}
  76. {#                            <div class="text-[14px] text-[#1B2028] font-semibold leading-[18px]">{% trans from 'tarif_choice' %}1200 хв{% endtrans %}</div>#}
  77. {#                        </div>#}
  78. {#                    </div>#}
  79. {#                    <div class="flex gap-[16px]">#}
  80. {#                        <svg class="w-[34px] min-w-[34px] h-[34px]">#}
  81. {#                            <use href="{{ asset('build/sprite.svg#endless_icon') }}"></use>#}
  82. {#                        </svg>#}
  83. {#                        <div class="flex flex-col">#}
  84. {#                            <div class="text-[14px] text-[#909299] font-semibold leading-[18px]">{% trans from 'tarif_choice' %}Дзвінки на Vodafone{% endtrans %}</div>#}
  85. {#                            <div class="text-[14px] text-[#1B2028] font-semibold leading-[18px]">{% trans from 'tarif_choice' %}Безліміт{% endtrans %}</div>#}
  86. {#                        </div>#}
  87. {#                    </div>#}
  88. {#                    <div class="flex gap-[16px]">#}
  89. {#                        <svg class="w-[34px] min-w-[34px] h-[34px]">#}
  90. {#                            <use href="{{ asset('build/sprite.svg#fb_icon') }}"></use>#}
  91. {#                        </svg>#}
  92. {#                        <div class="flex flex-col">#}
  93. {#                            <div class="text-[14px] text-[#909299] font-semibold leading-[18px]">{% trans from 'tarif_choice' %}Інтернет для соц мереж{% endtrans %}</div>#}
  94. {#                            <div class="text-[14px] text-[#1B2028] font-semibold leading-[18px]">{% trans from 'tarif_choice' %}Безліміт{% endtrans %}</div>#}
  95. {#                        </div>#}
  96. {#                    </div>#}
  97. {#                    <div class="flex gap-[16px]">#}
  98. {#                        <svg class="w-[34px] min-w-[34px] h-[34px]">#}
  99. {#                            <use href="{{ asset('build/sprite.svg#sms_icon') }}"></use>#}
  100. {#                        </svg>#}
  101. {#                        <div class="flex flex-col">#}
  102. {#                            <div class="text-[14px] text-[#909299] font-semibold leading-[18px]">{% trans from 'tarif_choice' %}на мобільні мережі України{% endtrans %}</div>#}
  103. {#                            <div class="text-[14px] text-[#1B2028] font-semibold leading-[18px]">{% trans from 'tarif_choice' %}50 SMS{% endtrans %}</div>#}
  104. {#                        </div>#}
  105. {#                    </div>#}
  106. {#                </div>#}
  107. {#            </div>#}
  108. {#            <div class="rounded-[16px] p-[18px] border border-[#E2E2E9] bg-[#F7F7FA] mb-[12px]">#}
  109. {#                <div class="text-[18px] text-[#1B2028] font-semibold mb-[24px]">{% trans from 'tarif_choice' %}Вартість послуг{% endtrans %}</div>#}
  110. {#                <div class="flex gap-[24px] flex-col">#}
  111. {#                    <div class="flex gap-[16px]">#}
  112. {#                        <svg class="w-[34px] min-w-[34px] h-[34px]">#}
  113. {#                            <use href="{{ asset('build/sprite.svg#cash_icon') }}"></use>#}
  114. {#                        </svg>#}
  115. {#                        <div class="flex flex-col">#}
  116. {#                            <div class="text-[14px] text-[#909299] font-semibold leading-[18px]">{% trans from 'tarif_choice' %}Підключення та перші 4 тижні{% endtrans %}</div>#}
  117. {#                            <div class="text-[14px] text-[#1B2028] font-semibold leading-[18px]">{% trans from 'tarif_choice' %}200 ₴{% endtrans %}</div>#}
  118. {#                        </div>#}
  119. {#                    </div>#}
  120. {#                    <div class="flex gap-[16px]">#}
  121. {#                        <svg class="w-[34px] min-w-[34px] h-[34px]">#}
  122. {#                            <use href="{{ asset('build/sprite.svg#check_icon') }}"></use>#}
  123. {#                        </svg>#}
  124. {#                        <div class="flex flex-col">#}
  125. {#                            <div class="text-[14px] text-[#909299] font-semibold leading-[18px]">{% trans from 'tarif_choice' %}Пакет послуг на 4 тижні уже включений{% endtrans %}</div>#}
  126. {#                        </div>#}
  127. {#                    </div>#}
  128. {#                    <div class="flex gap-[16px]">#}
  129. {#                        <svg class="w-[34px] min-w-[34px] h-[34px]">#}
  130. {#                            <use href="{{ asset('build/sprite.svg#cash_icon') }}"></use>#}
  131. {#                        </svg>#}
  132. {#                        <div class="flex flex-col">#}
  133. {#                            <div class="text-[14px] text-[#909299] font-semibold leading-[18px]">{% trans from 'tarif_choice' %}Абонплата на наступні 4 тижні{% endtrans %}</div>#}
  134. {#                            <div class="text-[14px] text-[#1B2028] font-semibold leading-[18px]">{% trans from 'tarif_choice' %}230 ₴{% endtrans %}</div>#}
  135. {#                        </div>#}
  136. {#                    </div>#}
  137. {#                </div>#}
  138. {#            </div>#}
  139.             <article class="max-h-[284px] overflow-y-auto prose mb-[10px] pr-[8px]">
  140.                 {% if description is defined %}
  141.                     {{ description | raw }}
  142.                 {% endif %}
  143.             </article>
  144.             <!-- Modal footer -->
  145.             {% if showButton is defined and showButton == true %}
  146.                 <a href="{{ path('tariff_selected_page',{tariff:id}) }}">
  147.                     <button style="{{ inlineStyles(app.request.get('companyInner'), constant('App\\Constants\\SettingConstants::FILLED_BUTTON_STYLES')) }}" class="drop-shadow-[0_7px_5px_rgba(0,0,0,0.25)] hover:drop-shadow-none disabled:drop-shadow-none transition ease-in-out duration-150 hover:!opacity-90 sticky bottom-[28px] mb-[28px] disabled:bg-[#E2E2E9] disabled:text-[#909299] w-full h-[48px] hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-semibold text-[16px] px-5 py-2.5 focus:outline-none">
  148.                         {% trans from 'modal' %}Обрати{% endtrans %}
  149.                     </button>
  150.                 </a>
  151.             {% endif %}
  152.         </div>
  153.     </div>
  154. </div>