{% extends '@ui/dashboards/system.html.twig' %}
{% block header %}
{% include '@PlatformSecurity/Dashboard/Profile/includes/header.html.twig' %}
{% endblock %}
{% block content %}
{{ embed_title('My Account', 10) }}
<div class="row">
<div class="col-md-2">
{% include '@ui/common/images/avatar.html.twig' with {
account: account,
bigAvatar: true,
center: true
} %}
<br />
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Update Avatar',
link: path(routes.avatar),
helper: 'primary',
icon: 'avatar',
block: true,
} %}
</div>
<div class="col-md-10">
{% embed '@ui/common/panels/default.html.twig' with {
title: 'Profile',
collapsible: false
} %}
{% block body %}
<dl class="dl-horizontal">
<dt>Email</dt>
<dd>{{ account.email }}</dd>
<dt>First Name</dt>
<dd>{{ account.systemProfile.firstName }}</dd>
<dt>Last Name</dt>
<dd>{{ account.systemProfile.lastName }}</dd>
<dt>Display Name</dt>
<dd>{{ account.systemProfile.displayName }}</dd>
</dl>
<div class="pull-right">
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Edit Details',
link: path(routes.edit),
helper: 'default',
icon: 'pencil',
} %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Change Password',
link: path(routes.change_password),
helper: 'primary',
icon: 'unlock-alt',
} %}
</div>
{% endblock %}
{% endembed %}
{# {% if account.metadataSchools|length %}#}
{# {% embed '@ui/common/panels/default.html.twig' with {#}
{# title: 'Schools',#}
{# collapsible: false#}
{# } %}#}
{# {% block body %}#}
{# <ul>#}
{# {% for school in account.metadataSchools %}#}
{# <li>{{ school }}</li>#}
{# {% endfor %}#}
{# </ul>#}
{# {% endblock %}#}
{# {% endembed %}#}
{# {% endif %}#}
</div>
</div>
{% endblock %}