{% 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') %} {% endif %} {% else %} {% endfor %}
Unit {% if fav.unit is not null %} {{ fav.unit.name }} {% endif %} Edit
You have not set any favorites.
Set Favorite Unit
{% endif %}
Next of Kin
{% for nok in noks %} {% set nid = nok.id %} {% endfor %}
NameRelationPhoneEmail
{{ 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})}) }}
Add
{% endblock %}