diff --git a/microsetta_interface/templates/reports.jinja2 b/microsetta_interface/templates/reports.jinja2 index 9aa74af7..ce46cd78 100644 --- a/microsetta_interface/templates/reports.jinja2 +++ b/microsetta_interface/templates/reports.jinja2 @@ -90,9 +90,19 @@
{{ sample.sample_barcode }}
-
- {{ _('Not Received Yet') }} -
+ {% if sample.sample_latest_scan_timestamp is none %} +
+ {{ _('Not Yet Received ') }} +
+ {% elif sample.sample_latest_sample_information_update is none or sample.sample_latest_scan_timestamp > sample.sample_latest_sample_information_update %} +
+ {{ _('Sample Received - Information Needed ') }} +
+ {% else %} +
+ {{ _('Sample Received - Update Pending ') }} +
+ {% endif %} {% endfor %} {% for er in external_reports_kit %}