{% extends 'base.html' %} {% load static %} {% block title %}Assign Department Head - {{ department.name }}{% endblock %} {% block content %}
Department Information
Department Code: {{ department.code }}
Department Name: {{ department.name }}
Type: {{ department.get_department_type_display }}
Current Head: {% if current_head %}
{{ current_head.first_name|first|upper }}{{ current_head.last_name|first|upper }}
{{ current_head.get_full_name }}
{{ current_head.email }}
{% else %} No department head assigned {% endif %}
Status: {% if department.is_active %} Active {% else %} Inactive {% endif %}
{% if department.description %}

Description:

{{ department.description }}

{% endif %}
Department Head Assignment
{% csrf_token %}
Only active staff members are eligible to be department heads.
{% if current_head %}
Current Department Head

{{ current_head.get_full_name }} is currently the head of this department. Assigning a new head will automatically remove the current assignment.

{% endif %}
Cancel {% if current_head %} {% endif %}
{% if eligible_users %}
Eligible Staff Members ({{ eligible_users.count }})
{% for user in eligible_users %} {% endfor %}
Name Email Phone Current Department Action
{{ user.first_name|first|upper }}{{ user.last_name|first|upper }}
{{ user.get_full_name }} {% if user.is_superuser %} Admin {% elif user.is_staff %} Staff {% endif %}
{{ user.email }} {{ user.phone|default:"-" }} {{ user.department|default:"-" }}
{% else %}
No Eligible Staff Members

There are no active staff members available to assign as department head.

Back to Department
{% endif %}
{% endblock %}