Modifier mon profil
{{ form_start(form, { attr: { novalidate: 'novalidate' } }) }}
{# Campos típicos, sólo si existen en el form #}
{% if form.firstname is defined %}
{{ form_row(form.firstname, { label: 'Prénom' }) }}
{% endif %}
{% if form.lastname is defined %}
{{ form_row(form.lastname, { label: 'Nom' }) }}
{% endif %}
{% if form.email is defined %}
{{ form_row(form.email, { label: 'Email' }) }}
{% endif %}
{% if form.phone is defined %}
{{ form_row(form.phone, { label: 'Téléphone' }) }}
{% endif %}
{% if form.avatarFile is defined %}
{{ form_row(form.avatarFile, { label: 'Photo de profil' }) }}
{% endif %}
{# Renderiza el resto de campos que no hayamos listado arriba #}
{{ form_rest(form) }}
{{ form_end(form) }}