diff --git a/src/staff/templates/staff/analysisorder_detail.html b/src/staff/templates/staff/analysisorder_detail.html index 9dddec5e..f51d23f5 100644 --- a/src/staff/templates/staff/analysisorder_detail.html +++ b/src/staff/templates/staff/analysisorder_detail.html @@ -28,10 +28,18 @@
Samples to analyze
back Samples Assign staff - {% if object.status != object.OrderStatus.DRAFT%} -
+ +
+ {% if object.status == object.OrderStatus.DELIVERED %} {% url 'staff:order-to-draft' pk=object.id as to_draft_url %} {% action-button action=to_draft_url class="bg-secondary text-white" submit_text="Convert to draft" csrf_token=csrf_token %} {% endif %} + + {% if object.status != object.OrderStatus.DRAFT and object.next_status %} + {% url 'staff:order-to-next-status' pk=object.id as to_next_status_url %} + {% with "Set as "|add:object.next_status as btn_name %} + {% action-button action=to_next_status_url class="bg-secondary text-white" submit_text=btn_name csrf_token=csrf_token %} + {% endwith %} + {% endif %} {% endblock %}