{% extends "base.html" %} {% load static %} {% block title %}Publish Schedule: {{ schedule.name }}{% endblock %} {% block css %} {% endblock %} {% block content %}
{{ schedule.start_date|date:"M d, Y" }} - {{ schedule.end_date|date:"M d, Y" }}
{% if schedule.start_date and schedule.end_date %} Schedule covers {{ schedule.start_date|date:"M d, Y" }} to {{ schedule.end_date|date:"M d, Y" }} ({{ schedule.duration }} days). {% else %} Schedule period is not properly defined. Please update the schedule with valid start and end dates. {% endif %}
{% if assignment_count > 0 %} Schedule has {{ assignment_count }} shift assignments for {{ employee_count }} employees. {% else %} No shift assignments have been created for this schedule. Employees will see an empty schedule. {% endif %}
{% if coverage_percentage >= 90 %} Excellent coverage! {{ employee_count }} out of {{ total_employees }} employees in the department have been scheduled. {% elif coverage_percentage >= 70 %} Moderate coverage. {{ employee_count }} out of {{ total_employees }} employees in the department have been scheduled. {% else %} Low coverage. Only {{ employee_count }} out of {{ total_employees }} employees in the department have been scheduled. {% endif %}
{% if conflict_count == 0 %} No scheduling conflicts detected. All shifts are properly assigned without overlaps. {% else %} {{ conflict_count }} scheduling conflicts detected. Please resolve these conflicts before publishing. View Conflicts {% endif %}
{% if hours_distribution == 'balanced' %} Hours are well distributed among employees. Average: {{ avg_hours_per_employee|floatformat:1 }} hours per employee. {% elif hours_distribution == 'moderate' %} Hours distribution could be improved. Some employees have significantly more hours than others. {% else %} Unbalanced hours distribution. There is a large disparity in assigned hours between employees. {% endif %}
| Department: | {% if schedule.department %} {{ schedule.department.name }} {% else %} All Departments {% endif %} |
|---|---|
| Period: | {{ schedule.start_date|date:"M d, Y" }} - {{ schedule.end_date|date:"M d, Y" }} |
| Duration: | {{ schedule.duration }} days |
| Total Assignments: | {{ assignment_count }} |
| Employees Scheduled: | {{ employee_count }} of {{ total_employees }} |
| Total Hours: | {{ total_hours }} hours |
| Avg Hours/Employee: | {{ avg_hours_per_employee|floatformat:1 }} hours |