HH/templates/feedback/comment_import_list.html
2026-03-28 14:03:56 +03:00

58 lines
2.3 KiB
HTML

{% extends "layouts/base.html" %}
{% block title %}Comment Imports - PX360{% endblock %}
{% block content %}
<div class="container-fluid py-4">
<h2>Step 0 — Comment Imports</h2>
<p class="text-muted">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>Hospital</th>
<th>Year</th>
<th>Month</th>
<th>Status</th>
<th>Total Rows</th>
<th>Imported</th>
<th>Errors</th>
<th>Imported By</th>
<th>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">Completed</span>
{% elif imp.status == 'failed' %}
<span class="badge bg-danger">Failed</span>
{% elif imp.status == 'processing' %}
<span class="badge bg-warning">Processing</span>
{% else %}
<span class="badge bg-secondary">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">No imports yet.</td></tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endblock %}