{% extends "base.html" %} {% load static %} {% block title %} Delete Employee | HR Management {% endblock %} {% block css %} {% endblock %} {% block content %}

Delete Employee

Confirm Deletion

Warning: This action cannot be undone

You are about to permanently delete this employee record. This action cannot be reversed. Please review the information below carefully before proceeding.

Employee Information
Name:
{{ employee.get_full_name }}
Employee ID:
{{ employee.employee_id }}
Department:
{{ employee.department.name }}
Job Title:
{{ employee.job_title }}
Status:
{{ employee.get_status_display }}
Hire Date:
{{ employee.hire_date|date:"M d, Y" }}
Email:
{{ employee.email }}
Phone:
{{ employee.phone_number|default:"Not provided" }}
Impact Assessment
The following will be permanently deleted:
  • Employee personal and professional information
  • Employment history and documentation
  • Contact information and emergency contacts
  • {% if employee.profile_picture %}
  • Profile picture and identification documents
  • {% endif %} {% if employee.address %}
  • Address and location information
  • {% endif %}
The following related records will also be affected:
{% if schedules_count > 0 %}
Schedules: {{ schedules_count }} record(s)
    {% for schedule in schedules %}
  • {{ schedule.title }} ({{ schedule.start_date|date:"M d, Y" }} - {{ schedule.end_date|date:"M d, Y" }})
  • {% endfor %}
{% endif %} {% if time_entries_count > 0 %}
Time Entries: {{ time_entries_count }} record(s)
    {% for entry in time_entries %}
  • {{ entry.date|date:"M d, Y" }} ({{ entry.hours }} hours)
  • {% endfor %}
{% endif %} {% if performance_reviews_count > 0 %}
Performance Reviews: {{ performance_reviews_count }} record(s)
    {% for review in performance_reviews %}
  • {{ review.review_period }} ({{ review.get_status_display }})
  • {% endfor %}
{% endif %} {% if training_records_count > 0 %}
Training Records: {{ training_records_count }} record(s)
    {% for record in training_records %}
  • {{ record.title }} ({{ record.get_status_display }})
  • {% endfor %}
{% endif %} {% if leave_requests_count > 0 %}
Leave Requests: {{ leave_requests_count }} record(s)
{% endif %} {% if documents_count > 0 %}
Documents: {{ documents_count }} record(s)
{% endif %}
{% if is_department_head %}
Warning: This employee is currently assigned as a department head. Deleting this record will leave the department without a head.
{% endif %} {% if has_active_assignments %}
Caution: This employee has active schedule assignments. Deleting this record will affect current scheduling.
{% endif %} {% if has_pending_reviews %}
Caution: This employee has pending performance reviews. Deleting this record will remove these reviews.
{% endif %}
Consider Alternative Actions

Instead of deleting this employee record, you might want to consider:

{% csrf_token %}
Please provide a detailed reason for deleting this employee record.
Cancel
Employee Profile
{% if employee.profile_picture %} {{ employee.get_full_name }} {% else %}
{{ employee.get_initials }}
{% endif %}
{{ employee.get_full_name }}

{{ employee.job_title }}

{{ employee.department.name }}

Employment Statistics
Employment Duration: {{ employment_duration }}
Total Time Entries: {{ time_entries_count }}
Total Hours Worked: {{ total_hours_worked }}
Performance Reviews: {{ performance_reviews_count }}
Training Records: {{ training_records_count }}
Leave Requests: {{ leave_requests_count }}
All this data will be permanently lost if you delete this employee.
{% endblock %} {% block js %} {% endblock %}