28 lines
1.0 KiB
HTML
28 lines
1.0 KiB
HTML
{% if emergency_contacts %}
|
|
{% for contact in emergency_contacts %}
|
|
<div class="border-bottom pb-2 mb-2">
|
|
<div class="d-flex justify-content-between align-items-start">
|
|
<div>
|
|
<strong>{{ contact.full_name }}</strong>
|
|
<span class="badge bg-primary ms-2">{{ contact.get_relationship_display }}</span>
|
|
<div class="text-muted small">
|
|
<i class="fas fa-phone me-1"></i>{{ contact.phone_number }}
|
|
{% if contact.email %}<br><i class="fas fa-envelope me-1"></i>{{ contact.email }}{% endif %}
|
|
</div>
|
|
</div>
|
|
<div>
|
|
{% if contact.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 %}
|
|
|