hospital-management/templates/patients/partials/patient_appointment_list.html
2025-08-12 13:33:25 +03:00

26 lines
1.1 KiB
HTML

{% if patient_appointments %}
{% for appointment in patient_appointments %}
<div class="border-bottom pb-2 mb-2">
<div class="d-flex justify-content-between align-items-start">
<div>
<strong>{{ appointment.appointment_type }}</strong>
<span class="badge bg-primary ms-2">{{ appointment.get_appointment_type_display }}</span>
<div class="text-muted small">
<i class="fas fa-phone me-1"></i>{{ appointment.authorization_number }}
{% if appointment.actual_duration_minutes %}<br><i class="fas fa-clock me-1"></i>{{ appointment.actual_duration_minutes }}{% endif %}
</div>
</div>
<div>
{% if appointment.priority == 1 %}
<span class="badge bg-warning">Primary</span>
{% endif %}
</div>
</div>
</div>
{% endfor %}
{% else %}
<div class="text-center py-3 text-muted">
<i class="fas fa-phone fa-2x mb-2"></i>
<p>No emergency contacts</p>
</div>
{% endif %}