{% extends "layouts/base.html" %} {% load i18n %} {% load static %} {% block title %}{% trans "Import Job Status" %} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{% trans "Import Job Status" %}

{{ job.name }}

{% trans "All Jobs" %}

{{ progress }}%

{% if job.status == 'pending' %} {% trans "Pending" %} {% elif job.status == 'processing' %} {% trans "Processing" %} {% elif job.status == 'completed' %} {% trans "Completed" %} {% elif job.status == 'failed' %} {% trans "Failed" %} {% elif job.status == 'partial' %} {% trans "Partial Success" %} {% endif %}
{% if not is_complete %}
{% trans "Processing..." %}
{% endif %}
{% trans "Job Details" %}
{% trans "Hospital:" %} {{ job.hospital.name }}
{% trans "Source:" %} {{ job.get_source_display }}
{% trans "Total Records:" %} {{ job.total_records }}
{% trans "Created By:" %} {{ job.created_by.get_full_name|default:job.created_by.email }}
{% if job.duration_seconds %} {% endif %}
{% trans "Created:" %} {{ job.created_at|date:"Y-m-d H:i" }}
{% trans "Started:" %} {{ job.started_at|date:"Y-m-d H:i"|default:"-" }}
{% trans "Completed:" %} {{ job.completed_at|date:"Y-m-d H:i"|default:"-" }}
{% trans "Duration:" %} {{ job.duration_seconds }} {% trans "seconds" %}
{% if is_complete %}

{{ job.success_count }}

{% trans "Successful" %}

{{ job.failed_count }}

{% trans "Failed" %}

{{ job.skipped_count }}

{% trans "Skipped" %}

{{ job.processed_count }}

{% trans "Processed" %}
{% endif %} {% if job.error_message %}
{% trans "Error" %}

{{ job.error_message }}

{% endif %} {% if results and results.errors %}
{% trans "Error Details" %}
{% for error in results.errors|slice:":50" %} {% endfor %}
{% trans "Row" %} {% trans "Error" %} {% trans "Data" %}
{{ error.row }} {{ error.message }} {{ error.data|truncatechars:50 }}
{% if results.errors|length > 50 %}

{% trans "Showing first 50 errors of" %} {{ results.errors|length }}

{% endif %}
{% endif %}
{% trans "Import More Ratings" %} {% trans "View Imported Ratings" %}
{% endblock %} {% block extra_js %} {% if not is_complete %} {% endif %} {% endblock %}