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

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

{% if not object.is_editable %}{% endif %} {{ object.identity }} | {% if object.shipment %} {% with object.shipment.containers.count as count %} 1 of {{ count }} Container{{ count|pluralize }} in Shipment {{object.shipment.name}} {% endwith %} {% elif object.accepts_children %} Container Adaptor. {% else %} Container not in a shipment. {% endif %} {% endblock %} {% block object_tools %} {% if object.is_editable %} {% if not object.samples.exists %} {% show_icon label='Samples' icon='ti ti-md ti-paint-bucket' badge="+" color="primary" %} {% else %} {% show_icon label='Samples' icon='ti ti-md ti-paint-bucket' color="primary" %} {% endif %} {% endif %} {% include "lims/tools-base.html" %} {% if object.parent_history.exists %} {% show_icon label='History' icon='ti ti-md ti-timer' %} {% endif %} {% if object.children_history.exists %} {% show_icon label='Load History' icon='ti ti-md ti-timer' %} {% endif %} {% endblock %} {% block object_status %}

{% if object.parent %}Loaded{% else %}{{ object.get_status_display }}{% endif %}

{% if object.accepts_children %} Beamline:
{% if object.automounter %}{{ object.automounter.beamline.acronym }}{% endif %} {% else %} Shipment:
{% if object.shipment %}{{object.shipment.name}}{% endif %} {% endif %}
Number of {% if object.accepts_children %}Containers{% else %}Samples{% endif %}:
{% if object.accepts_children %}{{ object.children.count }}{% else %}{{ object.num_samples }}{% endif %}{% if object.kind.locations.count %} / {{ object.kind.locations.count }}{% endif %}
{% if object.parent %}
Location:
{% if object.automounter %} {{ object.automounter.beamline }} {% else %} {{ object.parent.kind.name }} {{ object.parent.name }} {% endif %} | {{ object.port }}
{% endif %}
Type:
{{ object.kind }}
{% endblock %} {% block full %} {% if object.accepts_children %}
{% include "lims/entries/container-layout.html" with container=object show_samples=True loadable=True %}
{% include "lims/entries/loaded.html" %}
{% else %}

Samples in {{ object.name }}

{% include "itemlist/list.html" with object_list=object.samples.all %}
{% if object.kind.envelope != 'list' %}
{% include "lims/entries/container-layout.html" with container=object show_samples=True label_samples=True loadable=False %}
{% endif %}
{% endif %} {% include "lims/comments.html" with object=automounter.automounter %} {% endblock %} {% block extra_js %} {% endblock %}