{% extends "base.html" %} {% set active_nav = "shipments" %} {% block title %}Shipment {{ (revision.tracking_number if revision else None) or shipment.id|string|truncate(8, True, '') }} - LSMC Hub{% endblock %} {% block content %}

Contents

{% if revision and revision.status == 'DRAFT' and user.can_write %}
+ Add Bloom Tube
{% endif %}
{% if containment_tree %} {% if containment_tree.test_kits %}

Test Kits ({{ containment_tree.test_kits|length }})

{% for kit in containment_tree.test_kits %}
๐Ÿ“ฆ {{ kit.barcode }} {% if kit.type %} {{ kit.type }} {% endif %}
{% if revision and revision.status == 'DRAFT' %}
{% endif %}
{% if kit.specimens %}
{% for specimen in kit.specimens %}
๐Ÿงช {{ specimen.barcode }} {% if specimen.type %} {{ specimen.type }} {% endif %} {% if specimen.status %} {{ specimen.status }} {% endif %}
{% endfor %}
{% else %}
No specimens in this kit
{% endif %}
{% endfor %}
{% endif %} {% if containment_tree.direct_specimens %}

Direct Materials ({{ containment_tree.direct_specimens|length }})

{% for specimen in containment_tree.direct_specimens %}
๐Ÿงช {{ specimen.barcode }} {% if specimen.type %} {{ specimen.type }} {% endif %} {% if specimen.status %} {{ specimen.status }} {% endif %}
{% endfor %}
{% endif %} {% if not containment_tree.test_kits and not containment_tree.direct_specimens %}

No contents added yet

{% endif %} {% else %}

No contents added yet

{% endif %}

Shipment Details

Carrier
{{ (revision.carrier if revision else None) or "Not specified" }}
Origin
{{ origin_site.name if origin_site else "Not specified" }}
Destination
{{ (revision.destination_address.get('name') if revision and revision.destination_address else None) or "LSMC Lab" }}
{% if revision and revision.special_instructions %}
Notes
{{ revision.special_instructions }}
{% endif %}
{% if revision and revision.status == 'DRAFT' %}

Actions

{% endif %}

๐Ÿ“„ Documents

{% if documents and documents|length > 0 %}
{% for doc in documents %}
๐Ÿ“„
{{ doc.filename }}
{{ doc.document_type or 'Document' }} โ€ข {{ doc.size_bytes|filesizeformat if doc.size_bytes else 'Unknown size' }}
{% endfor %}
{% else %}

No documents attached

{% endif %}
{% if tracking or (revision and revision.tracking_number) %}

๐Ÿ“ฆ FedEx Tracking

{% if user and user.is_internal and revision and revision.tracking_number %} {% endif %}
{% if tracking %}
{{ tracking.delivery_status }}
Origin
{{ tracking.origin_city or 'โ€”' }}, {{ tracking.origin_state or 'โ€”' }}
Destination
{{ tracking.destination_city or 'โ€”' }}, {{ tracking.destination_state or 'โ€”' }}
{% if tracking.transit_time_seconds %}
Transit Time
{{ (tracking.transit_time_seconds / 3600)|round(1) }} hours
{% endif %} {% if tracking.service_description %}
Service
{{ tracking.service_description }}
{% endif %}
{% if tracking.events %}

Tracking Events

{% for event in tracking.events[:5] %}
{{ event.timestamp.strftime('%m/%d %H:%M') if event.timestamp else 'โ€”' }}
{{ event.event_description }}
{{ event.city or '' }}{% if event.city and event.state %}, {% endif %}{{ event.state or '' }}
{% endfor %}
{% endif %} {% else %}
Tracking number: {{ revision.tracking_number }}
Click "Refresh" to fetch tracking data
{% endif %}
{% endif %}
{% include "partials/tube_panel.html" %} {% endblock %}