{% extends 'base.html.twig' %} {% block title %}{{ 'Profile'|trans }}{% endblock %} {% block body %} {% include 'navbar.html.twig' %} {{ 'Profile'|trans }} {% if user.fullname != '' %} {{ user.fullname }} {% else %} {{ 'Set your name from the Edit Profile section'|trans }} {% endif %} {% if user.isTrainer %} {{ 'Trainer'|trans }} {% endif %} {% if user.about is not null %} {% endif %} {{ 'Edit Profile'|trans }} {{ 'Change password'|trans }} {% if tab is defined and tab is not null and tab == 'profile' %} {% for message in app.flashes('notice') %} {{ message }} {% endfor %} {% endif %} {% for error in field_errors(editProfileForm.profileImage) %} {{ error|trans }} {% endfor %} {% for error in field_errors(editProfileForm.fullname) %} {{ error|trans }} {% endfor %} {% for error in field_errors(editProfileForm.about) %} {{ error|trans }} {% endfor %} {{ 'Profile Image'|trans }} {{ 'Upload new profile image'|trans }} {{ 'Full Name'|trans }} {{ 'About'|trans }} {% if user.about !='' %}{{ user.about }}{% endif %} {{ form_row(editProfileForm._token) }} {{ field_label(editProfileForm.submit) }} {% if tab is defined and tab is not null and tab == 'password' %} {% for message in app.flashes('notice') %} {{ message }} {% endfor %} {% endif %} {% for error in field_errors(changePasswordForm) %} {{ error|trans }} {% endfor %} {% for error in field_errors(changePasswordForm.currentPassword) %} {{ error|trans }} {% endfor %} {% for error in field_errors(changePasswordForm.plainPassword.first) %} {{ error|trans }} {% endfor %} {% for error in field_errors(changePasswordForm.plainPassword.second) %} {{ error|trans }} {% endfor %} {{ 'Current password'|trans }} {{ 'New password'|trans }} {{ 'Re-enter new password'|trans }} {{ field_label(changePasswordForm.submit) }} {{ form_row(changePasswordForm._token) }} {% endblock %}
{{ 'Set your name from the Edit Profile section'|trans }}