{% extends "base.html" %} {% load static %} {% block title %} {% if object %}Edit Schedule Assignment{% else %}Create Schedule Assignment{% endif %} {% endblock %} {% block css %} {% endblock %} {% block content %}

{% if object %}Edit Schedule Assignment{% else %}Create Schedule Assignment{% endif %}

{% if object %}Edit Assignment for {{ object.employee.get_full_name }}{% else %}Create New Assignment{% endif %}

Potential Scheduling Conflict

This employee already has an assignment during this time period.

{% csrf_token %} {% if form.errors %}
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.schedule }} {% if form.schedule.errors %}
{{ form.schedule.errors }}
{% endif %}
{{ form.employee }} {% if form.employee.errors %}
{{ form.employee.errors }}
{% endif %}
{{ form.date }}
{% if form.date.errors %}
{{ form.date.errors }}
{% endif %}
{{ form.status }} {% if form.status.errors %}
{{ form.status.errors }}
{% endif %}
Shift Information
{{ form.shift_type }} {% if form.shift_type.errors %}
{{ form.shift_type.errors }}
{% endif %}
{{ form.start_time }}
{% if form.start_time.errors %}
{{ form.start_time.errors }}
{% endif %}
{{ form.end_time }}
{% if form.end_time.errors %}
{{ form.end_time.errors }}
{% endif %}
{{ form.hours }} {% if form.hours.errors %}
{{ form.hours.errors }}
{% endif %}
{{ form.location }} {% if form.location.errors %}
{{ form.location.errors }}
{% endif %}
Additional Information
{{ form.notes }} {% if form.notes.errors %}
{{ form.notes.errors }}
{% endif %}
{{ form.is_overtime }}
{{ form.is_on_call }}
Cancel
Help & Guidelines
Shift Types
  • Morning: Typically 7:00 AM - 3:00 PM
  • Afternoon: Typically 3:00 PM - 11:00 PM
  • Night: Typically 11:00 PM - 7:00 AM
  • Full Day: Typically 8:00 AM - 5:00 PM
Scheduling Tips
  • Check for scheduling conflicts before saving
  • Consider employee preferences and skills
  • Be mindful of overtime regulations
  • Ensure adequate rest periods between shifts
{% endblock %} {% block js %} {% endblock %}