{% extends "base_authenticated.html" %} {% block title %}Time Attendance Records - {{ COMPANY_NAME }}{% endblock %} {% block extra_head %} {% endblock %} {% block page_title %}Time Attendance Records{% endblock %} {% block content %}

Time Attendance Records

View and manage imported time attendance data

{% if session.role == 'admin' %} Import Data {% endif %}
Export will include current filters

Filter Records

Clear Filters
{% if records %}
Showing {{ records.items|length }} of {{ records.total }} records {% if current_filters.employee_id or current_filters.location_name or current_filters.start_date or current_filters.end_date %} Filtered {% endif %}
{% endif %} {% if records and records.items %}
{% for record in records.items %} {% endfor %}
ID Employee Date Time Location Action Platform Import Source Actions
{{ record.id }}
{{ record.employee_name }} ID: {{ record.employee_id }}
{{ record.attendance_date.strftime('%Y-%m-%d') if record.attendance_date else 'N/A' }} {{ record.attendance_time.strftime('%H:%M:%S') if record.attendance_time else 'N/A' }} {{ record.location_name }} {{ record.action_description }} {{ record.platform or 'N/A' }}
{{ record.import_source or 'Unknown' }} {{ record.import_date.strftime('%Y-%m-%d') if record.import_date else '' }}
{% if session.role == 'admin' %} {% endif %}
{% if records.pages > 1 %}
Page {{ records.page }} of {{ records.pages }}
{% if records.has_prev %} Previous {% else %} Previous {% endif %} {% for page_num in records.iter_pages(left_edge=1, right_edge=1, left_current=1, right_current=2) %} {% if page_num %} {% if page_num != records.page %} {{ page_num }} {% else %} {{ page_num }} {% endif %} {% else %} {% endif %} {% endfor %} {% if records.has_next %} Next {% else %} Next {% endif %}
{% endif %}
{% else %}

No Records Found

{% if current_filters.employee_id or current_filters.location_name or current_filters.start_date or current_filters.end_date %} No attendance records match your current filter criteria. Try adjusting your filters or clearing them to see all records. {% else %} No time attendance records have been imported yet. Import your first Excel file to get started. {% endif %}

{% if current_filters.employee_id or current_filters.location_name or current_filters.start_date or current_filters.end_date %} Clear Filters {% endif %} {% if session.role == 'admin' %} Import Data {% endif %}
{% endif %}
{% endblock %}