templates/_parts/realty/_layout-modal-form.html.twig line 1

Open in your IDE?
  1. {% set class = class|default('') %}
  2. {% set form = form|default(null) %}
  3. {% set actionPath = actionPath|default('') %}
  4. {% set formTitle = settings().formTitle %}
  5. {% set formSubtitle = settings().formSubtitle %}
  6. {% set buttonText = settings().buttonText %}
  7. <div class="layout-modal-form request-form {{ class }}">
  8.     <div class="layout-modal-form__inner request-form__data">
  9.         <div class="layout-modal-form__headings">
  10.             <h3 class="layout-modal-form__title text__black-text">
  11.                 {{ formTitle }}
  12.             </h3>
  13.             <div class="layout-modal-form__subtitle text__body">
  14.                 {{ formSubtitle }}
  15.             </div>
  16.         </div>
  17.         <div class="layout-modal-form__form-wrap">
  18.             {{ form_start(form, {
  19.                 'action': path(actionPath),
  20.                 'attr': {
  21.                     'class': 'layout-modal-form__form',
  22.                     'data-ajax-form': 'true',
  23.                     'data-success-selector': '.layout-modal-form',
  24.                     'data-modal-handle-off': '',
  25.                     'data-goal-yandex-submit': settings().successLayoutGoal,
  26.                     'data-goal-vk-submit': settings().successLayoutGoal
  27.                 }
  28.             }) }}
  29.             <div class="layout-modal-form__form-main">
  30.                 <div class="layout-modal-form__field form-field">
  31.                     {{ form_row(form.phone) }}
  32.                 </div>
  33.                 {{ form_row(form.submit, {
  34.                     'label': buttonText,
  35.                     'attr': {
  36.                         'class': 'layout-modal-form__button button',
  37.                         'data-submit-button': '',
  38.                     }
  39.                 }) }}
  40.             </div>
  41.             {% include '_parts/common/policy-checkbox.html.twig' with {
  42.                 class: 'layout-modal-form__policy',
  43.                 id: 'layout-recall-modal'
  44.             } %}
  45.             {{ form_end(form) }}
  46.         </div>
  47.     </div>
  48.     <div class="layout-modal-form__success request-form__success">
  49.         <div class="request-form__success-icon-wrap">
  50.             {% include "_parts/icons/form-success.svg" %}
  51.         </div>
  52.         <div class="request-form__success-text-wrap">
  53.             <h3 class="request-form__success-title">
  54.                 Вы&nbsp;успешно оставили заявку
  55.             </h3>
  56.             <div class="request-form__success-description text__body text__grey03">
  57.                 Наш менеджер перезвонит вам в&nbsp;ближайшее время
  58.             </div>
  59.         </div>
  60.     </div>
  61. </div>