{{ form.renderTag }} {% if form.pages|length > 1 %} {% endif %} {% if form.hasErrors %}
{{ "Error! Please review the form and try submitting again."|t('freeform') }} {% if form.errors|length %} {% endif %}
{% endif %} {% for row in form %}
{% for field in row %} {% set columnClass = "freeform-column " ~ form.customAttributes.columnClass %} {% if field.type == "submit" %} {% set columnClass = columnClass ~ " freeform-column-content-align-" ~ field.position %} {% endif %}
{{ field.render({ class: field.type not in ["submit", "signature"] ? "freeform-input" : "", labelClass: "freeform-label" ~ (field.inputOnly ? " freeform-input-only-label" : "") ~ (field.required ? " freeform-required" : ""), errorClass: "freeform-errors", instructionsClass: "freeform-instructions", }) }} {# FOR FREEFORM PAYMENTS #} {% if field.layoutRows is defined %} {% for layoutRow in field.layoutRows %}
{% for layoutField in layoutRow %}
{{ layoutField.render({ class: "freeform-input", labelClass: "freeform-label" ~ (layoutField.inputOnly ? " freeform-input-only-label" : "") ~ (layoutField.required ? " freeform-required" : ""), errorClass: "freeform-errors", instructionsClass: "freeform-instructions", }) }}
{% endfor %}
{% endfor %} {% endif %}
{% endfor %}
{% endfor %} {{ form.renderClosingTag }}