{% extends "base.html" %} {% block content %}

Monthly Attendance Summary

Reset
Present Half Day Leave Holiday Weekend LWP Click a cell to edit · Green border = edited manually/bulk
Tip: select employees with the checkboxes on the left.
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for c, m in messages %} {% endfor %} {% endif %} {% endwith %} {% set has_rows = summary_data and summary_data|length > 0 %} {% if has_rows %} {% set days = summary_data[0].days %}
{% for cell in days %} {% endfor %} {% for row in summary_data %} {% set emp = row.employee %} {% set frozen = row.payroll_frozen %} {% for cell in row.days %} {% set a = cell.record %} {% set remark = a.remarks if a else '' %} {% set is_manual = (a and (a.source in ['Manual','Bulk'])) %} {% endfor %} {% endfor %}
{{ cell.date.day }}
{{ cell.date.strftime('%a') }}
{{ emp.full_name }}
{{ emp.employee_code }} {% if frozen %} · Payroll Frozen {% endif %}
{% if not frozen %}
{% endif %}
{% else %}
No employees found for this filter.
{% endif %}
{% endblock %}