{% extends 'base.html.twig' %} {% block title %}Edit Profile{% endblock %} {% block body %}

Edit profile

{% for msg in app.flashes('success') %}
{{ msg }}
{% endfor %} {{ form_start(form, {attr: {novalidate: 'novalidate'}}) }}

Profile details

{% if profileImage %} Profile picture {% else %}
{{ (app.user.displayName ?? app.user.userIdentifier)|slice(0,1)|upper }}
{% endif %}

Images up to 4MB. JPG or PNG recommended.

{{ form_label(form.profileImage, null, {label_attr: {class: 'form-label'}}) }} {{ form_widget(form.profileImage, {attr: {class: 'form-control'}}) }} {{ form_errors(form.profileImage) }}
{{ form_label(form.displayName, null, {label_attr: {class: 'form-label'}}) }} {{ form_widget(form.displayName, {attr: {class: 'form-control'}}) }} {{ form_errors(form.displayName) }}
{{ form_label(form.email, null, {label_attr: {class: 'form-label'}}) }} {{ form_widget(form.email, {attr: {class: 'form-control'}}) }} {{ form_errors(form.email) }}

Password

Leave the fields below blank to keep your current password. You'll need to supply your existing password whenever you create a new one.

{{ form_label(form.currentPassword, null, {label_attr: {class: 'form-label'}}) }} {{ form_widget(form.currentPassword, {attr: {class: 'form-control'}}) }} {{ form_errors(form.currentPassword) }}
{{ form_errors(form.newPassword) }}
{{ form_label(form.newPassword.first, null, {label_attr: {class: 'form-label'}}) }} {{ form_widget(form.newPassword.first, {attr: {class: 'form-control'}}) }} {{ form_errors(form.newPassword.first) }}
{{ form_label(form.newPassword.second, null, {label_attr: {class: 'form-label'}}) }} {{ form_widget(form.newPassword.second, {attr: {class: 'form-control'}}) }} {{ form_errors(form.newPassword.second) }}
Cancel
{{ form_end(form) }} {% endblock %}