{% extends "lims/base.html" %} {% load humanize %} {% load badges %} {% load layout %} {% load markup %} {% load static %} {% load icons %} {% load misc_tags %} {% block pre_js %} {% endblock %} {% block page_heading %}

Shipment | {% if user.is_superuser %}{{ shipment.project }} | {% endif %}{{ shipment.name }}

{% if not shipment.is_editable %}{% endif %} {{ shipment.identity }} | {% if shipment.status == shipment.STATES.DRAFT %}Created {{ shipment.created|naturalday }} {% elif shipment.status == shipment.STATES.SENT %}Sent {{ shipment.date_shipped|naturalday }} {% elif shipment.status == shipment.STATES.ON_SITE %}Received {% if shipment.date_received %}{{ shipment.date_received|naturalday }}{% else %} {{ shipment.date_shipped|naturalday }}{% endif %} {% else %}Returned {{ shipment.date_returned|naturalday }} {% endif %} {% endblock %} {% block object_tools %} {% include "lims/tools-shipment.html" %} {% endblock %} {% block object_status %}

{{ shipment.get_status_display }}

# Containers:
{{ shipment.containers.count }}
# Groups:
{{ shipment.groups.count }}
# Samples:
{{ shipment.num_samples }}
{% if shipment.status >= shipment.STATES.ON_SITE %}
{% if shipment.status > shipment.STATES.ON_SITE %} On-Site:
{% if shipment.date_received %}{{ shipment.date_received|naturalday }}{% else %} {{ shipment.date_shipped|naturalday }}{% endif %} - {{ shipment.date_returned|naturalday }} {% else %} Location:
{{ shipment.storage_location }} {% endif %}
{% endif %} {% if shipment.status == shipment.STATES.DRAFT %}
Ready to Ship:
{{ shipment.shipping_errors|yesno:"No,Yes" }}
{% else %}{% if shipment.status < shipment.STATES.RETURNED %}
Sent:
via {{ shipment.carrier }} {% if shipment.tracking_code and shipment.carrier %} [{{ shipment.tracking_code }}] {% endif %}
{% endif %} {% endif%} {% if shipment.status >= shipment.STATES.RETURNED %}
{% if shipment.status < shipment.STATES.RETURNED %} Ready to Return:
{{ shipment.is_returnable|yesno:"No,Yes" }} {% else %} Returned:
via {{ shipment.carrier }} {% if shipment.return_code and shipment.carrier %} [{{ shipment.return_code }}] {% endif %} {% endif %}
{% endif %} {% if shipment.components.count %}
Included Items
{% for c in shipment.components.all %} {{ c.kind }} {% endfor %}
{% endif %}
{% endblock %} {% block full %}
{% if shipment.requests or shipment.is_editable %}
REQUESTS
    {% for request in shipment.requests %} {% include "lims/entries/request-list-item.html" with editable=shipment.is_editable %} {% empty %}
    Use Requests to communicate intended experiments and procedures for this set of samples, especially if beamline staff will be collecting the data.
    {% endfor %}
{% endif %}
GROUPS
    {% for group in shipment.groups_by_priority %} {% include "lims/entries/group-list-item.html" with group=group editable=shipment.is_editable %} {% endfor %}
{% include "lims/comments.html" with object=object %} {% endblock %} {% block extra_js %} {% endblock %}