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

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

{% if not object.is_editable %}{% endif %} {{ object.identity }} | {% if object.shipment %} {% with object.shipment.groups.count as count %} 1 of {{ count }} Group{{ count|pluralize }} in Shipment {{object.shipment.name}} {% endwith %} {% else %} Group not in a shipment. {% endif %} {% endblock %} {% block object_tools %} {% if object.status == object.STATES.DRAFT %} {% if object.shipment %} {% if not objects.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 %} {% show_icon label='Request' icon="ti ti-md ti-ruler-pencil" badge="+" color="primary" %}
{% endif %} {% include "lims/tools-base.html" %} {% endblock %} {% block object_status %}

{{ object.get_status_display }}

Shipment:
{% if object.shipment %}{{object.shipment.name}}{% endif %}
Number of Samples:
{{ object.num_samples }}
{% endblock %} {% block full %}
{% if object.status == object.STATES.DRAFT %}
{% for sample in object.samples.all %} {% endfor %}
Priority Name Location Container Barcode Comments
{{ sample.name }} {{ sample.location }} {{ sample.container.name }} {{ sample.barcode|default_if_none:"—" }} {{ sample.comments|default_if_none:"—" }}
{% else %} {% include "lims/entries/group-samples.html" with samples=object.samples.all %} {% endif %}
{% include "lims/comments.html" with object=object %} {% endblock %} {% block extra_js %} {% endblock %}