From 55b8adfeeaaa25ddc3840e0ce82c63ea2df4c69a Mon Sep 17 00:00:00 2001 From: Horilla Date: Mon, 26 Feb 2024 20:07:46 +0530 Subject: [PATCH] [UPDT] EMPLOYEE: Updated shift request and work type request duplicate method --- base/templates/shift_request/htmx/requests.html | 11 +++++++++++ base/templates/work_type_request/htmx/requests.html | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/base/templates/shift_request/htmx/requests.html b/base/templates/shift_request/htmx/requests.html index 5a87dcc47..be837ebdf 100755 --- a/base/templates/shift_request/htmx/requests.html +++ b/base/templates/shift_request/htmx/requests.html @@ -115,6 +115,17 @@ {% else %} {% endif %} + + + {% if shift_request.approved == False and shift_request.canceled == False %}
{% csrf_token %} diff --git a/base/templates/work_type_request/htmx/requests.html b/base/templates/work_type_request/htmx/requests.html index a01ee53a4..d661b8409 100755 --- a/base/templates/work_type_request/htmx/requests.html +++ b/base/templates/work_type_request/htmx/requests.html @@ -134,6 +134,17 @@ style="cursor: pointer; display: none;" {% else %} {% endif %} + + + {% if work_type_request.approved == False and work_type_request.canceled == False %} {% csrf_token %}