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

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

{% if import_result.success %} Your time attendance data has been successfully imported into the system. {% else %} There were issues importing your time attendance data. Please review the errors below. {% endif %}

{% if import_result.success %} View Imported Records {% endif %} Dashboard

Import Summary

{{ 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 %}
{{ "%.1f"|format((import_result.imported_records / import_result.total_records * 100) if import_result.total_records > 0 else 0) }}%
Success Rate
{% if import_result.success %}

Import Details

Batch ID: {{ import_result.batch_id }}
Import Date: {{ import_result.import_date.strftime('%Y-%m-%d %H:%M:%S') }}
Processing Time: {{ "%.2f"|format((import_result.import_date - import_result.import_date).total_seconds()) }} seconds
{% endif %} {% if import_result.errors %}

Error Details

{% for error in import_result.errors %}
{{ error }}
{% endfor %}
{% endif %} {% if import_result.success %} {% endif %} {% if not import_result.success %}

Try Again

Here are some suggestions to resolve the import issues:

Ensure your Excel file has all required columns: ID, Name, Date, Time, Location Name, Action Description
Check that dates are in YYYY-MM-DD format and times are in HH:MM:SS format
Verify that your file is a valid Excel format (.xlsx or .xls)
Make sure employee IDs and location names are properly formatted
{% endif %}
{% if import_result.success and import_result.imported_records > 0 %}

Import Statistics

Records by Action

Check In
75%
Check Out
25%

Processing Speed

{{ import_result.imported_records }}
records/minute
Fast and efficient processing of your attendance data
{% endif %}
{% endblock %}