50 lines
2.0 KiB
HTML
50 lines
2.0 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>{% trans "Physicians" %}</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 "License" %}</th>
|
|
<th>{% trans "Specialization" %}</th>
|
|
<th>{% trans "Hospital" %}</th>
|
|
<th>{% trans "Department" %}</th>
|
|
<th>{% trans "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 %}
|