Have a question, feedback, or need support? We'd love to hear from you!
{{ form_start(form, {attr: {class: 'auth-form'}}) }}
{{ form_widget(form.name, {
attr: {
class: 'auth-input' ~ (not form.name.vars.valid ? ' auth-input--error' : ''),
placeholder: 'Your name',
autofocus: true,
}
}) }}
{% if not form.name.vars.valid %}
{% for error in form.name.vars.errors %}
{{ error.message }}
{% endfor %}
{% endif %}
{{ form_widget(form.email, {
attr: {
class: 'auth-input' ~ (not form.email.vars.valid ? ' auth-input--error' : ''),
placeholder: 'your.email@example.com',
}
}) }}
{% if not form.email.vars.valid %}
{% for error in form.email.vars.errors %}
{{ error.message }}
{% endfor %}
{% endif %}
{{ form_widget(form.content, {
attr: {
class: 'auth-input' ~ (not form.content.vars.valid ? ' auth-input--error' : ''),
placeholder: 'Tell us what\'s on your mind...',
rows: 6,
style: 'min-height: 150px; resize: vertical;'
}
}) }}
{% if not form.content.vars.valid %}
{% for error in form.content.vars.errors %}
{{ error.message }}
{% endfor %}
{% endif %}
{% if not form.consent.vars.valid %}
{% for error in form.consent.vars.errors %}
{{ error.message }}
{% endfor %}
{% endif %}
{{ form_end(form) }}