{% extends 'base.html' %} {% load static %} {% block title %}Confirm Absences | FoxFitt{% endblock %} {% block content %} {% comment %} Conflict-confirmation page. Shown when at least one (worker, date) pair on the absence-log form already has a WorkLog. The admin can keep or untick the pre-checked "Remove from work log" box per conflict — the common case (clocked-in but actually absent) is fixed by removing them from the work log AND creating the absence, so we pre-tick the box. Unticking keeps the WorkLog and SKIPS the absence creation contradiction by still creating it (untouched rows keep their WorkLog intact, so partial-day cases work too). {% endcomment %}

Confirm Absences

{{ conflicts|length }} worker(s) were already logged as working on these dates.

You can't be both working and absent on the same day — pick which is correct below. The usual fix is to remove them from the work log (their attendance was recorded by mistake), so we've pre-selected that for you. Untick the box if you want to keep the work log entry instead (their absence won't be recorded in that case — you'll have to delete the absence manually after this saves).

{% csrf_token %}
Worker × Date
{% for c in conflicts %} {% endfor %}
Worker Date Existing Work Log What should happen?
{{ c.worker_name }} {{ c.date }} {{ c.project_name }} (Log #{{ c.work_log_id }})

{{ absence_count }} absence record(s) will be created. Reason: {{ reason }}. Paid: {% if is_paid %}Yes (Bonus payroll adjustment){% else %}No{% endif %}.
Cancel
{% endblock %}