{% load l10n i18n %} {% load edc_subject_dashboard_extras %}
{% render_appointment_status_icon appt_status=appointment.appt_status %} {{ appointment.visit_code }} {% if appointment.visit_code_sequence %}.{{ appointment.visit_code_sequence }}{% endif %} | {% render_appointment_button appointment %} {% if appointment.appt_status == IN_PROGRESS_APPT%} {% render_related_visit_button appointment %} {% if appointment.related_visit.document_status == COMPLETE %} {% render_gotoforms_button appointment %} {% endif %} {% else %} {% render_timepoint_status_button appointment %} {% endif %} | {% render_crf_totals appointment %} | {{ appointment.title }}{% block show_missed_label %} {% if appointment.related_visit.reason == MISSED_VISIT %}MISSED{% endif %}{% endblock show_missed_label %} | {% render_unscheduled_appointment_button appointment=appointment view_appointment=perms.edc_appointment.view_appointment %} | {% if appointment.related_visit.report_datetime %}{{ appointment.related_visit.report_datetime|date:"SHORT_DATE_FORMAT" }} {{ appointment.related_visit.report_datetime|date:"D"| capfirst }} | {% else %}{{ appointment.appt_datetime|date:"SHORT_DATE_FORMAT" }} {{ appointment.appt_datetime|date:"D"| capfirst }} | {% endif %}