{% extends '@Core/base.html.twig' %} {% block sectionTitle %}Perfil{% endblock %} {% block breadcrumbLinks %}
  • Perfil
  • {% endblock %} {% block content %}
    {% form_theme form 'bootstrap_3_layout.html.twig' %} {{ form_start(form) }} {{ form_errors(form) }}
    {% for flash_message in app.session.flashBag.get('success') %}
    {{ flash_message }}
    {% endfor %} {% if user %}
    {% for role in user.roles %} {% if role == 'ROLE_USER' %}

    {{ user.getName }} {{ user.getGroup.getName }} - [{{ user.username }}]

    {% elseif role == 'ROLE_ADMIN'%}

    {{ user.getName }}

    {{ user.getName }} {{ user.username }}

    {% endif %} {% endfor %}

    {% endif %}
    {{ form_row(form.group) }} {{ form_row(form.name) }} {{ form_row(form.address) }} {{ form_row(form.typeProvince) }}
    {% if form.typeStatus is defined and form.typeStatus is not null %} {{ form_row(form.typeStatus) }} {% endif %} {{ form_row(form.email) }} {{ form_row(form.city) }} {{ form_row(form.zip) }} {{ form_row(form.phone) }}
    {{ form_widget(form, {'form_type': 'userProfile'}) }}
    {{ form_end(form) }}
    {% endblock%}