{% extends 'base.html' %} {% load static %} {% block title %}Log Worker Absences | FoxFitt{% endblock %} {% block content %} {% comment %} Standalone absence-logging form. Date range with optional Sat/Sun inclusion (mirror of /attendance/log/). After successful submit either redirects to /absences/ (no conflicts) or to /absences/log/confirm/ (one or more workers were on a WorkLog for one of the selected dates — admin chooses whether to also remove them from the WorkLog). {% endcomment %}

Log Absences

Record workers who were not on site today.
View All
{% if messages %} {% for message in messages %}
{{ message }}
{% endfor %} {% endif %} {% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}
{% csrf_token %}
{# === DATE RANGE === #}
{{ form.date }} {{ form.date.errors }}
{{ form.end_date }} {{ form.end_date.help_text }} {{ form.end_date.errors }}
{{ form.include_saturday }}
{{ form.include_sunday }}

{# === PROJECT (optional) === #} {# Slots above Reason — when set + Paid ticked, the auto-Bonus #} {# inherits this project so paid-absence cost shows up against #} {# the right project on payroll dashboards. #}
{{ form.project }} {{ form.project.errors }} Which project was the worker absent from? Leave blank for non-project absences.

{# === REASON + PAID FLAG === #}
{{ form.reason }} {{ form.reason.errors }}
{{ form.is_paid }}
Creates a Bonus payroll adjustment when ticked.

{# === TEAM FILTER + WORKER PICKER === #}
{{ form.team }}
{% for worker in form.workers %}
{{ worker.tag }}
{% endfor %}
{{ form.workers.errors }}

{# === FREE-FORM NOTES === #}
{{ form.notes }}
Cancel
{% endblock %}