{% extends "::base.html.twig" %}
{% block title "User Profile" %}
{% block submenu %}
{{ include('AlsuiteBackendBundle:BreadCrumbs:myprofile.html.twig') }}
{% endblock %}
{% block content %}
My Profile
Demographics
Name | {{ user.getFirstname() }} {{ user.getLastname() }} |
Email(s) | {{ user.getEmail() }}{% if user.getAltEmail() %}, {{ user.getAltEmail }} {% endif %} |
Phone(s) | {{ user.getPhone() }} {% if user.getPhone2() %}, {{ user.getPhone2() }} {% endif %} |
Address | {{ user.getAddress() }} |
Timezone | {{ user.getTimezone() }} |
Send Approval Alerts | {% if user.wantsApprovalAlerts() %}Yes{% else %}No{% endif %} |
{% if app.session.get('mode') == 'staff' %}
My Favorites
{% for fav in favorites %}
{% if fav.type == constant('\\Alsuite\\UserBundle\\Entity\\UserFavorite::TYPE_UNIT') %}
Unit |
{% if fav.unit is not null %}
{{ fav.unit.name }}
{% endif %}
|
Edit
|
{% endif %}
{% else %}
You have not set any favorites.
Set Favorite Unit
|
{% endfor %}
{% endif %}
Next of Kin
Name | Relation | Phone | Email | | |
{% for nok in noks %}
{% set nid = nok.id %}
{{ nok.fullname }} |
{{ nok.relation }} |
{{ nok.phone }} |
{{ nok.phone2 }} |
{{ nok.email }} |
Edit
Delete
{{ include('AlsuiteUserBundle:NextOfKin:del.html.twig',
{'id': nid, 'action': 'Delete', 'object': 'Next of Kin', 'modal': 'nok',
'route': path('nok_del', {'id': nid})})
}}
|
{% endfor %}
Add |
{% endblock %}