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

Import Time Attendance Data

Upload Excel files containing employee time attendance records

Import Instructions

Supported Formats

Excel files (.xlsx, .xls) with time attendance data

Required Columns

ID, Name, Date, Time, Location Name, Action Description

Data Validation

Automatic validation and error reporting for invalid data

Expected Excel Format

ID Name Platform Date Time Location Name Action Description Event Description Recorded Address
12345 John Doe iPhone - iOS 2025-09-12 09:00:00 HQ Suite 210 Check In Main Office 123 Main St
67890 Jane Smith Android 2025-09-12 17:30:00 HQ Suite 210 Check Out Main Office 123 Main St

Upload Excel File

Drag & Drop Excel File

Or click to browse and select an Excel file (.xlsx, .xls)

Optional description for this import batch
{% if validation_result %}

{% if validation_result.valid %} File Validation Successful {% else %} File Validation Failed {% endif %}

{{ validation_result.total_rows }}
Total Rows
{{ validation_result.columns|length }}
Columns Found
{% if validation_result.errors %}
{{ validation_result.errors|length }}
Errors
{% endif %} {% if validation_result.warnings %}
{{ validation_result.warnings|length }}
Warnings
{% endif %}
{% if validation_result.errors %}

Validation Errors

    {% for error in validation_result.errors %}
  • {{ error }}
  • {% endfor %}
{% endif %} {% if validation_result.warnings %}

Warnings

    {% for warning in validation_result.warnings %}
  • {{ warning }}
  • {% endfor %}
{% endif %} {% if validation_result.sample_data %}

Sample Data Preview

{% for column in validation_result.columns %} {% endfor %} {% for row in validation_result.sample_data[:3] %} {% for column in validation_result.columns %} {% endfor %} {% endfor %}
{{ column }}
{{ row.get(column, '') }}
{% endif %}
{% endif %} {% if import_result %}

{% if import_result.success %} Import Completed {% else %} Import Failed {% endif %}

{{ import_result.total_records }}
Total Records
{{ import_result.imported_records }}
Successfully Imported
{% if import_result.failed_records > 0 %}
{{ import_result.failed_records }}
Failed Records
{% endif %}
{% if import_result.success %}

Batch ID: {{ import_result.batch_id }}

{% endif %} {% if import_result.errors %}

Import Errors

    {% for error in import_result.errors %}
  • {{ error }}
  • {% endfor %}
{% endif %}
{% endif %}
{% endblock %}