{% extends "base.html" %} {% load static %} {% block title %}{{ department.name }} | Department Details{% endblock %} {% block css %} {% endblock %} {% block content %}

Department Details

{{ department.name }}

{{ department.department_code }} | {{ department.get_department_type_display }}

{% if department.is_active %} Active {% else %} Inactive {% endif %}
Edit Department Delete Department
Department Information
Department Code: {{ department.department_code }}
Type: {{ department.get_department_type_display }}
Parent Department: {% if department.parent_department %} {{ department.parent_department.name }} {% else %} None (Top Level) {% endif %}
Location: {{ department.location|default:"Not specified" }}
Cost Center: {{ department.cost_center|default:"Not specified" }}
Annual Budget: {% if department.annual_budget %} ${{ department.annual_budget|floatformat:2 }} {% else %} Not specified {% endif %}
Status: {% if department.is_active %} Active {% else %} Inactive {% endif %}
Department Head
{% if department.department_head %}
Department Head
{{ department.department_head.get_full_name }}

{{ department.department_head.job_title }}

View Profile


Email

{{ department.department_head.email }}

Phone

{{ department.department_head.phone|default:"N/A" }}

{% else %}

No department head assigned

Assign Department Head
{% endif %}
Department Statistics

{{ active_employees }}

Active Employees

{{ employees.count }}

Total Employees

{{ department.annual_budget|default:"N/A" }}

Annual Budget

Employee Distribution
Description
{% if department.description %}

{{ department.description }}

{% else %}

No description available.

{% endif %}
{% for employee in employees %} {% empty %} {% endfor %}
Employee Position Status Hire Date Actions
{{ employee.get_full_name }}
{{ employee.get_full_name }} {{ employee.employee_number }}
{{ employee.job_title }} {% if employee.employment_status == 'ACTIVE' %} Active {% elif employee.employment_status == 'ON_LEAVE' %} On Leave {% else %} {{ employee.get_employment_status_display }} {% endif %} {{ employee.hire_date|date:"M d, Y" }}
No employees found in this department.
{% for subdept in department.subdepartments.all %}
{{ subdept.name }}

{{ subdept.department_code }}

{{ subdept.employees.count }} Employees {% if subdept.is_active %} Active {% else %} Inactive {% endif %}
View Department
{% empty %}
No sub-departments found.
{% endfor %}
Department Notes
{% if department.notes %}
{{ department.notes|linebreaks }}
{% else %}
No notes available for this department.
{% endif %}
{% endblock %} {% block js %} {% endblock %}