50 lines
1.9 KiB
HTML
50 lines
1.9 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>{% trans "Patients" %}</h2>
|
|
|
|
<div class="card">
|
|
<div class="card-body p-0">
|
|
<table class="table table-hover mb-0">
|
|
<thead class="table-light">
|
|
<tr>
|
|
<th>{% trans "Name" %}</th>
|
|
<th>{% trans "MRN" %}</th>
|
|
<th>{% trans "Phone" %}</th>
|
|
<th>{% trans "Email" %}</th>
|
|
<th>{% trans "Primary Hospital" %}</th>
|
|
<th>{% trans "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 %}
|