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

{% trans "Import Job Status" %}

{{ job.name }}

{{ 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..." %}
{% else %}

{% trans "Job completed" %}

{% 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 }}

{% 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:"-" }}

{% if job.duration_seconds %}

{% trans "Duration" %}

{{ job.duration_seconds }} {% trans "seconds" %}

{% endif %}
{% if is_complete %}
{% trans "Successful" %}

{{ job.success_count }}

{% trans "Failed" %}

{{ job.failed_count }}

{% trans "Skipped" %}

{{ job.skipped_count }}

{% trans "Processed" %}

{{ job.processed_count }}

{% 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 %} {% if is_complete %}
{% trans "View Imported Ratings" %} {% trans "Import More Ratings" %}
{% endif %} {% endblock %} {% block extra_js %} {% endblock %}