{% for flash in flashBag %} {% endfor %}
{% for field in form.formFields %} {% if field.type == constant('App\\Enum\\FormFieldType::INPUT_TEXT') %} {{ _self.printInputText(field) }} {% endif %} {% if field.type == constant('App\\Enum\\FormFieldType::EMAIL') %} {{ _self.printEmail(field) }} {% endif %} {% if field.type == constant('App\\Enum\\FormFieldType::FILE') %} {{ _self.printFile(field) }} {% endif %} {% if field.type == constant('App\\Enum\\FormFieldType::TEXTAREA') %} {{ _self.printTextarea(field) }} {% endif %} {% endfor %}
{% if _csrf_token %} {% endif %} {% if form.recaptchaEnabled %} {% endif %}
{% macro printInputText(field) %} {% set translation = field.translation(locale) %}
{% if translation.label is defined and translation.label %} {% endif %}
{% endmacro %} {% macro printEmail(field) %} {% set translation = field.translation(locale) %}
{% if translation.label is defined and translation.label %} {% endif %}
{% endmacro %} {% macro printFile(field) %} {% set translation = field.translation(locale) %}
{% if translation.label is defined and translation.label %} {% endif %}
{% endmacro %} {% macro printTextarea(field) %} {% set translation = field.translation(locale) %}
{% if translation.label is defined and translation.label %} {% endif %}
{% endmacro %}