{% extends 'base.html' %} {% load static %} {% block title %}Log Work | FoxFitt{% endblock %} {% block content %}

Log Daily Attendance

Back
{# --- Conflict Warning --- #} {% if conflicts %} {% endif %} {# --- Form Errors --- #} {% if form.errors %}
Please fix the following:
    {% for field, errors in form.errors.items %} {% for error in errors %}
  • {{ error }}
  • {% endfor %} {% endfor %}
{% endif %}
{% csrf_token %} {# --- Date Range --- #}
{{ form.date }}
{{ form.end_date }} Leave blank to log a single day
{# --- Weekend Checkboxes --- #}
{{ form.include_saturday }}
{{ form.include_sunday }}
{# --- Project and Team --- #}
{{ form.project }}
{{ form.team }}
{# --- Worker Checkboxes --- #}
{% for worker in form.workers %}
{{ worker.tag }}
{% endfor %}
{# --- Overtime --- #}
{{ form.overtime_amount }}
{# --- Notes --- #}
{{ form.notes }}
{# --- Submit --- #} {# Two submit buttons share the same form. The `name=value` pair #} {# of whichever button the user clicks ends up in request.POST so #} {# the view can branch on `next_action`. Default ('log_only' or #} {# missing) keeps the existing Site Report flow. 'log_absences' #} {# redirects to /absences/log/ pre-filled with this date/team/project. #}
{# --- Estimated Cost Card (Admin Only) --- #} {% if is_admin %}
Estimated Cost
R 0.00
0 worker(s) × 1 day(s)

This estimate is based on each worker's daily rate multiplied by the number of working days selected. Overtime is not included.
{% endif %}
{% endblock %}