{% load icons %} {% if shipment.status >= shipment.STATES.SENT %} {% comment %}Shipment Details{% endcomment %} {% if shipment.requests.count %} {% show_icon label='Requests' icon='ti ti-md ti-layout-accordion-list' %} {% endif %} {% show_icon label='Samples' icon='ti ti-md ti-view-list-alt' %} {% show_icon label='Data' icon='ti ti-md ti-layout-grid3' badge=shipment.num_datasets color='info' %} {% show_icon label='Reports' icon='ti ti-md ti-bar-chart-alt' badge=shipment.num_reports color='info' %} {% endif %} {% if user == shipment.project %}
{% if shipment.status == shipment.STATES.DRAFT %} {% include "lims/tools-shipment-edit.html" %} {% show_icon label='Delete' icon='ti ti-md ti-trash' %} {% show_icon label='Edit' icon='ti ti-md ti-pencil-alt' %} {% show_icon label='Send' icon='ti ti-md ti-location-arrow'%} {% endif %} {% if shipment.status == shipment.STATES.SENT %} {% show_icon label='Recall' icon='ti ti-md ti-control-backward' %} {% endif %} {% if shipment.status <= shipment.STATES.ON_SITE %} {% show_icon label='Labels' icon='ti ti-md ti-tag' %} {% endif %} {% elif user.is_superuser %} {% comment %}Staff Actions{% endcomment %} {% show_icon label='Labels' icon='ti ti-md ti-tag' %} {% show_icon label='Comment' icon='ti ti-md ti-comment-alt' %} {% if shipment.status == shipment.STATES.SENT %} {% show_icon label='Receive' icon='ti ti-md ti-shopping-cart-full' %} {% elif shipment.status == shipment.STATES.ON_SITE %} {% show_icon label='Return' icon='ti ti-md ti-location-arrow' %} {% show_icon label='Revise' icon='ti ti-md ti-pencil'%} {% elif shipment.status == shipment.STATES.RETURNED %} {% show_icon label='Recall' icon='ti ti-md ti-control-backward' %} {% endif %} {% endif %}