{% 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 tick "Also remove from WorkLog" per conflict before committing — useful when correcting an earlier mistake (worker was clocked in but in fact was absent that day). Untouched rows keep their WorkLog intact, so partial-day cases work too. {% endcomment %}

Confirm Absences

{{ conflicts|length }} worker(s) already have work logs on these dates.
Tick the boxes below to also remove them from those work logs (recommended if you're correcting a mistake).
{% csrf_token %}
Conflicts
{% for c in conflicts %} {% endfor %}
Worker Date WorkLog Action
{{ c.worker_name }} {{ c.date }} {{ c.project_name }} (WorkLog #{{ c.work_log_id }})

{{ absence_count }} absence(s) will be created:

Reason: {{ reason }}. Paid: {% if is_paid %}Yes{% else %}No{% endif %}. {# Project line is conditional — older flows / non-project absences leave it blank. #} {% if project_name %}Project: {{ project_name }}.{% endif %}

← Back to form
{% endblock %}