{% extends "base.html" %} {% block title %}Team Structure | Crystal Nexus{% endblock %} {% block header %}Team Structure{% endblock %} {% block content %}
Org structure for {{ current_user.name }} {% if show_all %} • Admin view {% else %} • My subtree {% endif %}
Team Dashboard Dashboard
{% macro render_node(uid) %} {# children #} {% set reports = mgr_map.get(uid, []) %} {# if not admin view, show only subtree allowed_ids #} {% if not show_all %} {% set reports = reports | select('in', allowed_ids) | list %} {% endif %} {% if reports and reports|length > 0 %} {% endif %} {% endmacro %}
Reporting Tree
{{ users_by_id[root_id].name }}
{{ render_node(root_id) }}
Hierarchy is based on employee_profiles.reporting_manager_user_id.
{% endblock %}