35 lines
1.3 KiB
HTML
35 lines
1.3 KiB
HTML
{% if consent_forms %}
|
|
{% for consent in consent_forms %}
|
|
<div class="border-bottom pb-2 mb-2">
|
|
<div class="d-flex justify-content-between align-items-start">
|
|
<div>
|
|
<strong>{{ consent.template.name }}</strong>
|
|
<div class="text-muted small">
|
|
Created: {{ consent.created_at|date:"M d, Y H:i" }}
|
|
{% if consent.patient_signed_at %}
|
|
<br>Signed: {{ consent.patient_signed_at|date:"M d, Y H:i" }}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<div>
|
|
{% if consent.status == 'PENDING' %}
|
|
<span class="badge bg-warning">Pending</span>
|
|
{% elif consent.status == 'SIGNED' %}
|
|
<span class="badge bg-success">Signed</span>
|
|
{% elif consent.status == 'EXPIRED' %}
|
|
<span class="badge bg-danger">Expired</span>
|
|
{% elif consent.status == 'REVOKED' %}
|
|
<span class="badge bg-secondary">Revoked</span>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
{% else %}
|
|
<div class="text-center py-3 text-muted">
|
|
<i class="fas fa-file-signature fa-2x mb-2"></i>
|
|
<p>No consent forms</p>
|
|
</div>
|
|
{% endif %}
|
|
|