{% extends "layouts/base.html" %} {% load i18n %} {% load static %} {% block title %}{% trans "Doctor Rating Import Jobs" %} - PX360{% endblock %} {% block content %}
{% trans "Physician Ratings" %} {% trans "Import History" %}

{% trans "Import History" %}

{% trans "Track doctor rating import jobs" %}

{% trans "New Import" %}
{% if jobs %}
{% for job in jobs %} {% endfor %}
{% trans "Job Name" %} {% trans "Hospital" %} {% trans "Source" %} {% trans "Status" %} {% trans "Progress" %} {% trans "Results" %} {% trans "Created" %} {% trans "Actions" %}

{{ job.name|truncatechars:40 }}

{{ job.hospital.name }}

{% if job.source == 'his_api' %} {% trans "HIS API" %} {% else %} {% trans "CSV Upload" %} {% endif %} {% 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" %} {% endif %}
{{ job.progress_percentage }}%
{% if job.is_complete %}
{{ job.success_count }} {% if job.failed_count > 0 %} {{ job.failed_count }} {% endif %}
{% else %} {{ job.processed_count }} / {{ job.total_records }} {% endif %}

{{ job.created_at|date:"Y-m-d H:i" }}

{% trans "View" %}
{% else %}

{% trans "No Import Jobs" %}

{% trans "No import jobs found. Start by importing doctor ratings." %}

{% trans "Import Ratings" %}
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}