{% extends "layouts/base.html" %} {% load i18n %} {% block title %}{% trans "Staff Hierarchy" %} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{% trans "Staff Hierarchy" %}

{% trans "View organizational structure and reporting relationships" %}

{% trans "List View" %} {% if user.is_px_admin or user.is_hospital_admin %} {% trans "Add New Staff" %} {% endif %}
{% trans "Total Staff" %}

{{ total_staff }}

{% trans "Top Managers" %}

{{ top_managers }}

{% trans "Hierarchy Levels" %}

{% trans "Multi-level" %}

{% trans "Filters" %}
{% if user.is_px_admin %}
{% endif %}
{% trans "Clear" %}
{% trans "Staff Hierarchy" %}
{% trans "Showing" %} {{ staff.start_index|default:0 }}-{{ staff.end_index|default:0 }} {% trans "of" %} {{ staff.paginator.count|default:0 }}
{% for staff_member in staff.object_list %} {% empty %} {% endfor %}
{% trans "Name" %} {% trans "Employee ID" %} {% trans "Job Title" %} {% trans "Hospital" %} {% trans "Department" %} {% trans "Reports To" %} {% trans "Direct Reports" %} {% trans "Status" %} {% trans "Actions" %}
{{ staff_member.get_localized_name.0 }}
{{ staff_member.get_localized_name }}
{% if staff_member.is_head %} {% endif %}
{{ staff_member.employee_id|default:"-" }} {{ staff_member.get_localized_job_title|default:"-" }} {% if staff_member.hospital %} {{ staff_member.hospital.name }} {% else %} - {% endif %} {% if staff_member.department %} {{ staff_member.department.get_localized_name }} {% else %} - {% endif %} {% if staff_member.report_to %} {{ staff_member.report_to.get_localized_name }} {% else %} {% trans "Top Level" %} {% endif %} {% with report_count=staff_member.direct_reports.count %} {% if report_count > 0 %} {{ report_count }} {% else %} - {% endif %} {% endwith %} {% if staff_member.status == 'active' %} {% trans "Active" %} {% else %} {% trans "Inactive" %} {% endif %}

{% trans "No staff members found" %}

{% trans "There are no staff members matching the selected filters." %}

{% if user.is_px_admin or user.is_hospital_admin %} {% trans "Add Staff" %} {% endif %}
{% if staff.has_other_pages %}
{% trans "Showing" %} {{ staff.start_index }}-{{ staff.end_index }} {% trans "of" %} {{ staff.paginator.count }} {% trans "entries" %}
{% for key, value in request.GET.items %} {% if key != 'page_size' and key != 'page' %} {% endif %} {% endfor %}
{% if staff.has_previous %} {% else %} {% endif %} {% for num in staff.paginator.page_range %} {% if num == staff.number %} {{ num }} {% elif num > staff.number|add:'-3' and num < staff.number|add:'3' %} {{ num }} {% elif num == 1 or num == staff.paginator.num_pages %} {{ num }} {% elif num == staff.number|add:'-3' or num == staff.number|add:'3' %} ... {% endif %} {% endfor %} {% if staff.has_next %} {% else %} {% endif %}
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}