{% extends "layouts/base.html" %} {% load i18n %} {% block title %}{{ staff.get_full_name }} - {% trans "Staff Details" %}{% endblock %} {% block content %}
{% trans "Personal Information" %}
{{ staff.first_name }}
{{ staff.last_name }}
{{ staff.first_name_ar|default:"-" }}
{{ staff.last_name_ar|default:"-" }}
{% if staff.license_number %}
{{ staff.license_number }}
{% endif %} {% if staff.specialization %}
{{ staff.specialization }}
{% endif %}
{% trans "Organization" %}
{{ staff.hospital.name }}
{{ staff.department.name|default:"-" }}
{{ staff.employee_id }}
{% trans "Contact Information" %}
{% if staff.email %} {{ staff.email }} {% else %} - {% endif %}
{% if staff.phone %} {{ staff.phone }} {% else %} - {% endif %}
{% trans "Demographics" %}
{% if staff.gender %} {{ staff.gender }} {% else %} - {% endif %}
{{ staff.country|default:"-" }}
{{ staff.location|default:"-" }}
{% trans "Hierarchy" %}
{% if staff.report_to %} {{ staff.report_to }} {% else %} - {% endif %}
{% if staff.direct_reports.exists %} {% else %} - {% endif %}
{% trans "Additional Details" %}
{{ staff.section|default:"-" }}
{{ staff.subsection|default:"-" }}
{{ staff.department_name|default:"-" }}
{% if staff.name %}
{{ staff.name }}
{% endif %}
{% trans "User Account" %}
{% if staff.user %}
{% trans "User account exists" %}
{{ staff.user.username }}
{{ staff.user.email }}
{% if staff.user.is_active %} {% trans "Yes" %} {% else %} {% trans "No" %} {% endif %}
{{ staff.user.date_joined|date:"Y-m-d H:i" }}
{% if user.is_px_admin or user.is_hospital_admin %}
{% endif %} {% else %}
{% trans "No user account" %}

{% trans "This staff member does not have a user account and cannot log in to the system." %}

{% if user.is_px_admin or user.is_hospital_admin %} {% if staff.email %} {% else %}
{% trans "Add an email address to create a user account." %}
{% endif %} {% endif %} {% endif %}
{% trans "Status" %}
{% if staff.status == 'active' %} {% trans "Active" %} {% else %} {% trans "Inactive" %} {% endif %}
{{ staff.created_at|date:"Y-m-d H:i" }}
{{ staff.updated_at|date:"Y-m-d H:i" }}
{% endblock %} {% block extra_js %} {% endblock %}