HH/templates/feedback/comment_import_list.html
2026-04-08 17:13:35 +03:00

59 lines
2.5 KiB
HTML

{% extends "layouts/base.html" %}
{% load i18n %}
{% block title %}{% trans "Comment Imports" %} - PX360{% endblock %}
{% block content %}
<div class="container-fluid py-4">
<h2>{% trans "Step 0 — Comment Imports" %}</h2>
<p class="text-muted">{% trans "Monthly patient comment data imports from IT department" %}</p>
<div class="card">
<div class="card-body p-0">
<table class="table table-hover mb-0">
<thead class="table-light">
<tr>
<th>{% trans "Hospital" %}</th>
<th>{% trans "Year" %}</th>
<th>{% trans "Month" %}</th>
<th>{% trans "Status" %}</th>
<th>{% trans "Total Rows" %}</th>
<th>{% trans "Imported" %}</th>
<th>{% trans "Errors" %}</th>
<th>{% trans "Imported By" %}</th>
<th>{% trans "Date" %}</th>
</tr>
</thead>
<tbody>
{% for imp in imports %}
<tr>
<td>{{ imp.hospital }}</td>
<td>{{ imp.year }}</td>
<td>{{ imp.month }}</td>
<td>
{% if imp.status == 'completed' %}
<span class="badge bg-success">{% trans "Completed" %}</span>
{% elif imp.status == 'failed' %}
<span class="badge bg-danger">{% trans "Failed" %}</span>
{% elif imp.status == 'processing' %}
<span class="badge bg-warning">{% trans "Processing" %}</span>
{% else %}
<span class="badge bg-secondary">{% trans "Pending" %}</span>
{% endif %}
</td>
<td>{{ imp.total_rows }}</td>
<td>{{ imp.imported_count }}</td>
<td>{{ imp.error_count }}</td>
<td>{{ imp.imported_by.get_full_name|default:"—" }}</td>
<td>{{ imp.created_at|date:"Y-m-d H:i" }}</td>
</tr>
{% empty %}
<tr><td colspan="9" class="text-center text-muted py-4">{% trans "No imports yet." %}</td></tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endblock %}