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

50 lines
1.9 KiB
HTML

{% extends "layouts/base.html" %}
{% load i18n %}
{% block title %}Physicians - PX360{% endblock %}
{% block content %}
<div class="container-fluid">
<h2 class="mb-4"><i class="bi bi-person-badge me-2"></i>Physicians</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>License</th>
<th>Specialization</th>
<th>Hospital</th>
<th>Department</th>
<th>Status</th>
</tr>
</thead>
<tbody>
{% for physician in physicians %}
<tr>
<td><strong>Dr. {{ physician.first_name }} {{ physician.last_name }}</strong></td>
<td><small>{{ physician.license_number }}</small></td>
<td><small>{{ physician.specialization }}</small></td>
<td><small>{{ physician.hospital.name }}</small></td>
<td>
{% if physician.department %}
<small>{{ physician.department.name }}</small>
{% else %}
<span class="text-muted">-</span>
{% endif %}
</td>
<td><span class="badge bg-success">{{ physician.get_status_display }}</span></td>
</tr>
{% empty %}
<tr>
<td colspan="6" class="text-center py-5">No physicians found</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endblock %}