{% extends "base.html" %} {% load static %} {% block title %}{% if form.instance.id %}Edit{% else %}Create{% endif %} Schedule | HR Management{% endblock %} {% block css %} {% endblock %} {% block content %}

{% if form.instance.id %}Edit{% else %}Create{% endif %} Schedule

Schedule Form

{% csrf_token %} {% if form.errors %}
Error! Please correct the errors below.
    {% for field in form %} {% for error in field.errors %}
  • {{ field.label }}: {{ error }}
  • {% endfor %} {% endfor %} {% for error in form.non_field_errors %}
  • {{ error }}
  • {% endfor %}
{% endif %}
Basic Information
{{ form.name }}
{% if form.name.help_text %} {{ form.name.help_text }} {% endif %}
{{ form.department }} {% if form.department.help_text %} {{ form.department.help_text }} {% endif %}
{{ form.start_date }}
{% if form.start_date.help_text %} {{ form.start_date.help_text }} {% endif %}
{{ form.end_date }}
{% if form.end_date.help_text %} {{ form.end_date.help_text }} {% endif %}
Duration: 0 days
Period: Select dates
{{ form.status }} {% if form.status.help_text %} {{ form.status.help_text }} {% endif %}
Additional Information
{{ form.description }} {% if form.description.help_text %} {{ form.description.help_text }} {% endif %}
{{ form.notes }} {% if form.notes.help_text %} {{ form.notes.help_text }} {% endif %}
Cancel
Schedule Preview
Schedule Name
Draft
Department: Not selected
Period: Not set
Description:

No description provided

Help & Guidelines
Schedule Naming

Use clear, descriptive names that include the department and date range when applicable. For example: "Nursing Staff - July 2023" or "ER Weekend Rotation Q3".

Date Selection

Schedule periods typically align with pay periods or calendar weeks. Common durations are 1 week, 2 weeks, or 4 weeks.

Status Options
  • Draft: Still in planning phase, not visible to staff
  • Published: Finalized and visible to all staff
  • Archived: Historical schedule, no longer active
After Creation

Once the schedule is created, you'll be able to add individual shift assignments for employees.

Tip: Save as draft while building the schedule, then publish when it's ready for staff to view.
{% endblock %} {% block js %} {% endblock %}