{% extends "lims/base.html" %} {% load icons %} {% block page_heading %}

{% if user.is_superuser %}{{ object.project|upper }} | {% endif %}{{ object.name }}

{% if object.container.shipment %} {% with object.container.shipment.num_samples as num_samples %} 1 of {{ num_samples }} Sample{{ num_samples|pluralize }} in Shipment {{object.container.shipment.name}} {% endwith %} {% else %} Sample not in a shipment. {% endif %} {% endblock %} {% block object_tools %} {% if object.container.status == object.container.STATES.DRAFT %} {% show_icon label='Request' icon="ti ti-md ti-ruler-pencil" badge="+" color="primary" %}
{% endif %} {% if object.container.status == object.container.STATES.DRAFT or object.comments or object.staff_comments %} {% if object.container.status == object.container.STATES.DRAFT %} {% show_icon label='Edit' icon='ti ti-md ti-pencil-alt' %} {% show_icon label='Delete' icon='ti ti-md ti-trash' %} {% endif %} {% endif %} {% endblock %} {% block object_status %}

{% if object.container.status < object.container.STATES.SENT %}Draft {% elif object.container.status < object.container.STATES.RETURNED %}{{ object.automounter.beamline.acronym|default:"Pending" }} {% else %}Done{% endif %}

Shipment:
{% if object.container.shipment %} {{object.container.shipment.name}} {% else %} Not in Shipment {% endif %}
Location:
{{ object.automounter|default_if_none:"" }} {{ object.port }}
{% include "lims/comments.html" with object=object %} {% endblock %} {% block full %}
{% include "lims/entries/sample-data.html" %} {% if not object.datasets.count %}
No data collected for this sample yet.
{% endif %}
{% if sample.image %}
{% endif %}
{% endblock %}