From 6061b504983fdae4e32a892f45cd6fc936d3fd48 Mon Sep 17 00:00:00 2001 From: Horilla Date: Tue, 5 Mar 2024 14:30:07 +0530 Subject: [PATCH] [FIX] DOCUMENTS: FIxed document appprove reject buttons --- employee/templates/documents/requests.html | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/employee/templates/documents/requests.html b/employee/templates/documents/requests.html index caa8e954d..44918dc78 100644 --- a/employee/templates/documents/requests.html +++ b/employee/templates/documents/requests.html @@ -203,22 +203,10 @@
{% if perms.horilla_document.change_documentrequest %} - {% if document.status == "approved" %} + {% if document.status == "approved" or not document.document %} - - - {% else %} - {% if document.status == 'rejected' %} + {% endif %} + {% if document.status == 'rejected' or not document.document %} @@ -248,7 +237,6 @@ {% endif %} - {% endif %} {% endif %}