From d8b7264d22374fffad34e63e985805dabcd7f8cb Mon Sep 17 00:00:00 2001 From: Morten Madsen Lyngstad Date: Mon, 28 Jul 2025 06:37:09 +0200 Subject: [PATCH] Remove status transition buttons for delivered and processing orders --- .../templates/staff/analysisorder_detail.html | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/staff/templates/staff/analysisorder_detail.html b/src/staff/templates/staff/analysisorder_detail.html index cfded782..82abb258 100644 --- a/src/staff/templates/staff/analysisorder_detail.html +++ b/src/staff/templates/staff/analysisorder_detail.html @@ -29,20 +29,6 @@

Order {{ object }}

{% url 'staff:order-to-draft' pk=object.id as to_draft_url %} {% action-button action=to_draft_url class="custom_order_button" submit_text=" Convert to draft"|safe csrf_token=csrf_token %} {% endif %} - - {% if object.status == object.OrderStatus.DELIVERED %} - {% 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-yellow-200 text-yellow-800 border border-yellow-700 hover:bg-yellow-300" submit_text=btn_name csrf_token=csrf_token %} - {% endwith %} - {% endif %} - - {% if object.status == object.OrderStatus.PROCESSING %} - {% 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="custom_order_button_green" submit_text=btn_name csrf_token=csrf_token %} - {% endwith %} - {% endif %}
Assign staff