HH/templates/organizations/patient_list.html
2025-12-24 12:42:31 +03:00

50 lines
1.8 KiB
HTML

{% extends "layouts/base.html" %}
{% load i18n %}
{% block title %}Patients - PX360{% endblock %}
{% block content %}
<div class="container-fluid">
<h2 class="mb-4"><i class="bi bi-people me-2"></i>Patients</h2>
<div class="card">
<div class="card-body p-0">
<table class="table table-hover mb-0">
<thead class="table-light">
<tr>
<th>Name</th>
<th>MRN</th>
<th>Phone</th>
<th>Email</th>
<th>Primary Hospital</th>
<th>Status</th>
</tr>
</thead>
<tbody>
{% for patient in patients %}
<tr>
<td><strong>{{ patient.get_full_name }}</strong></td>
<td><small>{{ patient.mrn }}</small></td>
<td><small>{{ patient.phone }}</small></td>
<td><small>{{ patient.email }}</small></td>
<td>
{% if patient.primary_hospital %}
<small>{{ patient.primary_hospital.name }}</small>
{% else %}
<span class="text-muted">-</span>
{% endif %}
</td>
<td><span class="badge bg-success">{{ patient.get_status_display }}</span></td>
</tr>
{% empty %}
<tr>
<td colspan="6" class="text-center py-5">No patients found</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endblock %}