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

{% trans "Staff Management" %}

{% trans "Manage hospital staff and their user accounts" %}

{% if user.is_px_admin or user.is_hospital_admin %} {% trans "Add New Staff" %} {% endif %}
{% trans "Clear" %}

{% trans "Staff List" %}

{% 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 "Type" %} {% trans "Job Title" %} {% trans "Department" %} {% trans "Manager" %} {% trans "User Account" %} {% trans "Status" %} {% trans "Actions" %}
{{ staff_member.first_name|first }}{{ staff_member.last_name|first }}
{{ staff_member.get_full_name }}
{% if staff_member.license_number %}
{{ staff_member.license_number }}
{% endif %}
{% if staff_member.is_head %} {% endif %}
{{ staff_member.get_staff_type_display }} {{ staff_member.job_title|default:"-" }} {% if staff_member.department %} {{ staff_member.department.name }} {% else %} - {% endif %} {% if staff_member.report_to %} {{ staff_member.report_to.get_full_name }} {% else %} - {% endif %} {% if staff_member.user %} {% trans "Linked" %} {% else %} {% trans "None" %} {% endif %} {% if staff_member.status == 'active' %} {% trans "Active" %} {% else %} {% trans "Inactive" %} {% endif %}
{% if user.is_px_admin or user.is_hospital_admin %} {% if not staff_member.user and staff_member.email %} {% endif %} {% if staff_member.user %} {% endif %} {% endif %}

{% trans "No staff members found" %}

{% 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 %}