Skip to content

Commit

Permalink
added new sample statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
ayobi committed Jan 26, 2024
1 parent 9ce12d1 commit c5d047b
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions microsetta_interface/templates/reports.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,23 @@
<div class="barcode-col barcode-text">
{{ sample.sample_barcode }}
</div>
<div class="barcode-col barcode-col-end" id="btn-view-{{ sample.sample_id }}">
<span class="sample-label">{{ _('Not Received Yet') }}</span>
</div>
{% if sample.latest_scan_timestamp is none %}
<div class="barcode-col barcode-col-end" id="btn-view-{{ sample.sample_id }}">
<span class="sample-label">{{ _('Not Yet Received ') }} </span>
</div>
{% elif sample.last_update is none %}
<div class="barcode-col barcode-col-end" id="btn-view-{{ sample.sample_id }}">
<span class="sample-label">{{ _('Sample Received - Information Needed ') }} </span>
</div>
{% elif sample.latest_scan_timestamp > sample.last_update %}
<div class="barcode-col barcode-col-end" id="btn-view-{{ sample.sample_id }}">
<span class="sample-label">{{ _('Sample Received - Information Still Needed ') }} </span>
</div>
{% else %}
<div class="barcode-col barcode-col-end" id="btn-view-{{ sample.sample_id }}">
<span class="sample-label">{{ _('Sample Received - Update Pending ') }} </span>
</div>
{% endif %}
</div>
{% endfor %}
{% for er in external_reports_kit %}
Expand Down

0 comments on commit c5d047b

Please sign in to comment.