{% extends "base.html" %} {% load static %} {% block title %} {% if department.id %}Edit Department: {{ department.name }}{% else %}Create New Department{% endif %} {% endblock %} {% block css %} {% endblock %} {% block content %}

{% if department.id %}Edit Department: {{ department.name }}{% else %}Create New Department{% endif %}

{% if department.id %}Edit Department Information{% else %}Department Information{% endif %}

{% csrf_token %} {% if form.errors %}
Error! Please correct the errors below. {% if form.non_field_errors %}
    {% for error in form.non_field_errors %}
  • {{ error }}
  • {% endfor %}
{% endif %}
{% endif %}
Basic Information
{{ form.name }} {% if form.name.errors %}
{{ form.name.errors }}
{% endif %} {% if form.name.help_text %}
{{ form.name.help_text }}
{% endif %}
{{ form.department_code }} {% if form.department_code.errors %}
{{ form.department_code.errors }}
{% endif %} {% if form.department_code.help_text %}
{{ form.department_code.help_text }}
{% endif %}
{{ form.department_type }} {% if form.department_type.errors %}
{{ form.department_type.errors }}
{% endif %} {% if form.department_type.help_text %}
{{ form.department_type.help_text }}
{% endif %}
{{ form.parent_department }} {% if form.parent_department.errors %}
{{ form.parent_department.errors }}
{% endif %} {% if form.parent_department.help_text %}
{{ form.parent_department.help_text }}
{% endif %}
{{ form.department_head }} {% if form.department_head.errors %}
{{ form.department_head.errors }}
{% endif %} {% if form.department_head.help_text %}
{{ form.department_head.help_text }}
{% endif %}
{{ form.is_active }} {% if form.is_active.errors %}
{{ form.is_active.errors }}
{% endif %}
Additional Information
{{ form.location }} {% if form.location.errors %}
{{ form.location.errors }}
{% endif %}
{{ form.cost_center }} {% if form.cost_center.errors %}
{{ form.cost_center.errors }}
{% endif %}
{{ form.annual_budget }} {% if form.annual_budget.errors %}
{{ form.annual_budget.errors }}
{% endif %} {% if form.annual_budget.help_text %}
{{ form.annual_budget.help_text }}
{% endif %}
{{ form.description }} {% if form.description.errors %}
{{ form.description.errors }}
{% endif %}
{{ form.notes }} {% if form.notes.errors %}
{{ form.notes.errors }}
{% endif %}

Department Information Guidelines
  • Department Name: Use a clear, descriptive name that reflects the department's function.
  • Department Code: Use a unique, short code (typically 2-6 characters) for system identification.
  • Department Type: Select the appropriate classification for the department.
  • Parent Department: If this is a sub-department, select its parent department.
Best Practices
  • Ensure department codes are unique across the organization.
  • Assign a department head to improve accountability and communication.
  • Provide a detailed description to clarify the department's purpose and responsibilities.
  • Use the notes field for any temporary or additional information.
Back to Departments
{% endblock %} {% block js %} {% endblock %}