From b4594e14744d6d91cfd2b1a95a5ce851ac6f4384 Mon Sep 17 00:00:00 2001 From: Horilla Date: Thu, 4 Sep 2025 16:49:50 +0530 Subject: [PATCH] [UPDT] OFFBOARDING: Updated resignation view detail view --- .../exit_process/detail_page_description.html | 9 ++ .../templates/cbv/resignation/actions.html | 101 +++++++++++------- 2 files changed, 69 insertions(+), 41 deletions(-) create mode 100644 offboarding/templates/cbv/exit_process/detail_page_description.html diff --git a/offboarding/templates/cbv/exit_process/detail_page_description.html b/offboarding/templates/cbv/exit_process/detail_page_description.html new file mode 100644 index 000000000..1f9302ab4 --- /dev/null +++ b/offboarding/templates/cbv/exit_process/detail_page_description.html @@ -0,0 +1,9 @@ +{% load i18n %} +
+ + {% trans "Description" %} + +
+ {{ instance.description|default:"-"|safe }} +
+
\ No newline at end of file diff --git a/offboarding/templates/cbv/resignation/actions.html b/offboarding/templates/cbv/resignation/actions.html index 56f844c68..b4389f8bb 100644 --- a/offboarding/templates/cbv/resignation/actions.html +++ b/offboarding/templates/cbv/resignation/actions.html @@ -2,46 +2,66 @@
{% if perms.offboarding.change_resignationletter %} -
- {% if instance.status != "approved" %} - - {% else %} - - {% endif %} - +
+ {% if instance.status != "approved" %} + + {% else %} + + {% endif %} + {% if instance.status == 'rejected' %} + + {% else %} + + {% endif %} +
-
{% endif %}