{% if consent_forms %} {% for consent in consent_forms %}
{{ consent.template.name }}
Created: {{ consent.created_at|date:"M d, Y H:i" }} {% if consent.patient_signed_at %}
Signed: {{ consent.patient_signed_at|date:"M d, Y H:i" }} {% endif %}
{% if consent.status == 'PENDING' %} Pending {% elif consent.status == 'SIGNED' %} Signed {% elif consent.status == 'EXPIRED' %} Expired {% elif consent.status == 'REVOKED' %} Revoked {% endif %}
{% endfor %} {% else %}

No consent forms

{% endif %}