From 43449c3c15f17dce4b1578bdbefa849c607e4c37 Mon Sep 17 00:00:00 2001 From: Horilla Date: Fri, 5 Jul 2024 16:27:03 +0530 Subject: [PATCH] [UPDT] EMPLOYEE: Employee shift request status determination method updates --- employee/templates/tabs/shift-tab.html | 48 ++++++++++++++++---------- 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/employee/templates/tabs/shift-tab.html b/employee/templates/tabs/shift-tab.html index b89df8cbc..5c4ac2be7 100644 --- a/employee/templates/tabs/shift-tab.html +++ b/employee/templates/tabs/shift-tab.html @@ -162,6 +162,7 @@ {% trans "Requested Till" %}
{% trans "Description" %}
+
{% trans "Status" %}
{% trans "Actions" %}
{% if not request.GET.profile %} {% if perms.base.change_worktyperequest or request.user|is_reportingmanager %} @@ -212,6 +213,9 @@
{{work_type_request.description}}
+
+ {{work_type_request.request_status}} +
{% if work_type_request.approved == False and not work_type_request.canceled %} @@ -252,31 +256,39 @@ class="oh-sticky-table__td" onclick="event.stopPropagation();" > - {% if work_type_request.approved == False and work_type_request.canceled == False %} - - {% trans "Approve"%} - - {% else %} - - {% endif %} + {% if work_type_request.approved == False and work_type_request.canceled == False %} + + + + {% else %} + + {% endif %}
{% if work_type_request.canceled == False %} - - {% trans "Cancel" %} - + + + {% else %} - {% endif %}