{% form_theme form with ['form_div_layout.html.twig', '@KarserRecaptcha3/Form/karser_recaptcha3_widget.html.twig'] only %} {% set flashes = app.flashes('success') %}
{% if flashes|length > 0 %} {% for message in flashes %}
{{ message }}
{% endfor %} {% endif %} {{ form_start(form, { 'attr': { 'class': 'form js-form-validation', 'id': form.vars.id } }) }} {{ form_errors(form) }}
{{ form_widget(form.form_data.username, {'attr': { 'class': 'form__input', 'placeholder':' ', 'data-rules': 'nonEmpty' }}) }} {{ form_label(form.form_data.username, 'Ваше имя', {'label_attr': { 'class': 'form__label' }}) }}
{{ form_widget(form.form_data.phone, {'attr': { 'class': 'form__input js-masked-input', 'placeholder':' ', 'data-rules': 'nonEmpty tel' }}) }} {{ form_label(form.form_data.phone, 'Номер телефона', {'label_attr': { 'class': 'form__label' }}) }}
{{ form_widget(form.form_data.question, {'attr': { 'class': 'form__textarea', 'placeholder':' ' }}) }} {{ form_label(form.form_data.question, 'Вопрос', {'label_attr': { 'class': 'form__label-textarea' }}) }}
{{ static_block('form-policy-link')|raw }}
{{ form_widget(form.submit, { 'label': 'Отправить', 'attr': { 'class': 'btn btn--primary'} }) }} {{ form_end(form) }}