templates/pages/modal/recall/index.html.twig line 1

Open in your IDE?
  1. {% extends app.request.xmlHttpRequest ? 'ajax.html.twig' : 'base.html.twig' %}
  2. {% block content %}
  3.     {% set title = title|default('Заказать звонок') %}
  4.     {% set subtitle = subtitle|default('') %}
  5.     <div class="recall-modal">
  6.         <div class="recall-modal__heading">
  7.             {% if title %}
  8.                 <h3 class="recall-modal__title">
  9.                     {{ title }}
  10.                 </h3>
  11.             {% endif %}
  12.             {% if subtitle %}
  13.                 <div class="recall-modal__subtitle">
  14.                     {{ subtitle }}
  15.                 </div>
  16.             {% endif %}
  17.         </div>
  18.         {{ form_start(form, {
  19.             'action': app.request.requestUri,
  20.             'attr': {
  21.                 'class': 'recall-modal__form'
  22.             }
  23.         }) }}
  24.             <div class="recall-modal__fields">
  25.                 {% if form.name is defined %}
  26.                     <div class="recall-modal__field form-field">
  27.                         {{ form_row(form.name) }}
  28.                     </div>
  29.                 {% endif %}
  30.                 {% if form.first_pay is defined %}
  31.                     <div class="recall-modal__field form-field">
  32.                         {{ form_row(form.first_pay) }}
  33.                     </div>
  34.                 {% endif %}
  35.                 {% set phoneIsValid = form.phone.vars.valid %}
  36.                 <div class="recall-modal__field form-field {% if not phoneIsValid %}_has-errors{% endif %}">
  37.                     {{ form_row(form.phone) }}
  38.                 </div>
  39.             </div>
  40.             <div class="recall-modal__bottom">
  41.                 {% include '_parts/common/policy-checkbox.html.twig' with {
  42.                     class: 'recall-modal__policy',
  43.                     id: 'recall-modal'
  44.                 } %}
  45.                 {{ form_row(form.submit, {
  46.                     'label': 'Отправить',
  47.                     'attr': {
  48.                         'class': 'recall-modal__button button',
  49.                         'data-submit-button': '',
  50.                     }
  51.                 }) }}
  52.             </div>
  53.         {{ form_end(form) }}
  54.     </div>
  55. {% endblock %}