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 %}