{% extends edc_listboard_template %} {% load edc_dashboard_extras %} {% load tz %} {% load static %} {% block listboard_table_header %} # Subject TMG Death Reports Death Report {% endblock listboard_table_header %} {% block listboard_table_button_column %}{% endblock %} {% block listboard_table_columns %} {{ result.subject_identifier }} {% copy_string_to_clipboard_button result.subject_identifier %} {% for tmg_death_report in result.tmg_death_reports %} {% if tmg_death_report.id %} {{ tmg_death_report.verbose_name}} {% else %} {{ tmg_death_report.verbose_name}} {% endif %} {% if tmg_death_report.id %} {{ tmg_death_report.object.action_item.status|default:tmg_death_report.object.report_status }} {% endif %}
Reference: {{ tmg_death_report.action_identifier}}
Reported: {{ tmg_death_report.object.report_datetime|date:"SHORT_DATE_FORMAT" }}
Created: {{ tmg_death_report.object.created|date:"SHORT_DATE_FORMAT" }}{% if tmg_death_report.object.user_modified %}
Modified: {{ tmg_death_report.object.modified|date:"SHORT_DATE_FORMAT" }}{% endif %}
{{ tmg_death_report.object.user_created }}{% if tmg_death_report.object.user_modified %}/{{tmg_death_report.object.user_modified}}{% endif %}
{% endfor %}  {{ result.object.identifier }}
Died: {{ result.object.death_datetime|date:"SHORT_DATE_FORMAT" }}
Reported: {{ result.object.report_datetime|date:"SHORT_DATE_FORMAT" }}
{% if result.object.cause_of_death == OTHER %}{{ result.object.cause_of_death_other }}{% else %}{{ result.object.get_cause_of_death_display }}{% endif %}
{% endblock listboard_table_columns %}