{% extends 'base.html.twig' %} {% import "user/actions.html.twig" as actions %} {% block page_title %}{{ 'profile.title'|trans }}{% endblock %} {% block page_subtitle %}{% if not user.alias is empty %}{{ user.alias }} - {% endif %}{{ user.username }}{% endblock %} {% block page_actions %}{{ actions.user(user, tab) }}{% endblock %} {% block main %}
{% block profile_content %}{% endblock %}
{% embed '@AdminLTE/Widgets/box-widget.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% block box_body_class %}box-profile{% endblock %} {% block box_body %}
{{ widgets.user_avatar(user) }}

{{ widgets.username(user) }}

{{ user.title }}

{% set seeOwnRate = is_granted('view_rate_own_timesheet') %} {% if seeOwnRate %} {% endif %} {% if seeOwnRate %} {% endif %}
{{ 'stats.durationMonth'|trans }} {{ stats.durationThisMonth|duration }}
{{ 'stats.amountMonth'|trans }} {{ stats.amountThisMonth|money }}
{{ 'stats.durationTotal'|trans }} {{ stats.durationTotal|duration }}
{{ 'stats.amountTotal'|trans }} {{ stats.amountTotal|money }}
{% endblock %} {% endembed %} {% embed '@AdminLTE/Widgets/box-widget.html.twig' %} {% block box_title %}{{ 'profile.about_me'|trans }}{% endblock %} {% block box_body %} {# colors = purple, blue, aqua, red, green #} {% if is_granted('hourly-rate', user) %} {% endif %}
{{ 'label.id'|trans }} {{ user.id }}
{{ 'label.username'|trans }} {{ user.username }}
{{ 'profile.first_entry'|trans }} {{ stats.firstEntry|date_short }}
{{ 'label.hourlyRate'|trans }} {{ user.preferenceValue('hourly_rate') }}
{% endblock %} {% endembed %} {% if user.teams is not empty and (is_granted('teams', user) or (app.user == user and is_granted('view_team_member'))) %} {% embed '@AdminLTE/Widgets/box-widget.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% block box_title %}{{ 'label.my_teams'|trans }}{% endblock %} {% block box_tools %} {% if is_granted('roles', user) %} {% endif %} {% endblock %} {% block box_body %} {{ widgets.team_list(user.teams) }} {% endblock %} {% endembed %} {% endif %}
{% endblock %} {% block javascripts %} {{ parent() }} {% endblock %} {# -------------------------------- UNUSED FOR NOW -------------------------------- #} {% macro profile_list_unused(user, items) %} {% import "@AdminLTE/Macros/default.html.twig" as macro %} {% import "macros/widgets.html.twig" as widgets %}
{{ macro.avatar(user.avatar, user.username) }}

{{ widgets.username(user) }}

{{ user.title }}
{% endmacro %} {# -------------------------------- UNUSED FOR NOW -------------------------------- #} {% macro profile_box_unused(user, stats) %} {% import "@AdminLTE/Macros/default.html.twig" as macro %} {% import "macros/widgets.html.twig" as widgets %}

{{ widgets.username(user) }}

{{ user.title }}
{{ macro.avatar(user.avatar, user.username) }}
{% endmacro %}