From 606f77da71fe3e32aa67de34022b8eddf2f03269 Mon Sep 17 00:00:00 2001 From: Horilla Date: Wed, 13 Mar 2024 11:30:06 +0530 Subject: [PATCH] [UPDT] EMPLOYEE: Updated disciplinary action and document request hx-target and data-target --- .../disciplinary_nav.html | 24 +--- .../disciplinary_records.html | 6 +- .../templates/disciplinary_actions/form.html | 2 +- .../disciplinary_actions/update_form.html | 6 +- .../templates/documents/document_nav.html | 6 +- .../document_request_create_form.html | 113 ++++++++++-------- employee/templates/documents/requests.html | 4 +- employee/templates/tabs/attendance-tab.html | 16 +-- employee/templates/tabs/shift-tab.html | 78 ++---------- 9 files changed, 94 insertions(+), 161 deletions(-) diff --git a/employee/templates/disciplinary_actions/disciplinary_nav.html b/employee/templates/disciplinary_actions/disciplinary_nav.html index 14e9b0934..ef801be1f 100644 --- a/employee/templates/disciplinary_actions/disciplinary_nav.html +++ b/employee/templates/disciplinary_actions/disciplinary_nav.html @@ -119,7 +119,7 @@
- + {% trans 'Take An Action' %} @@ -192,28 +192,6 @@
- - - - - - - - - - diff --git a/employee/templates/documents/document_nav.html b/employee/templates/documents/document_nav.html index a13d904c8..0c6c2b6c5 100644 --- a/employee/templates/documents/document_nav.html +++ b/employee/templates/documents/document_nav.html @@ -232,9 +232,9 @@ + +
+
+
+
+
+ + {{form.title}} +
+
+
+
+ + {{form.employee_id}} +
-
-
- - {{form.employee_id}} +
+
+
+ + {{form.format}} +
+
+
+
+ + {{form.max_size}} +
-
-
-
-
- - {{form.format}} +
+
+
+ + {{form.description}} +
-
-
- - {{form.max_size}} -
-
-
-
-
-
- - {{form.description}} -
-
-
- -
- -
- + +
+ +
diff --git a/employee/templates/documents/requests.html b/employee/templates/documents/requests.html index 44918dc78..fd836682d 100644 --- a/employee/templates/documents/requests.html +++ b/employee/templates/documents/requests.html @@ -106,9 +106,9 @@
  • {% trans "Edit" %} + hx-target="#objectCreateModalTarget">{% trans "Edit" %}
  • diff --git a/employee/templates/tabs/attendance-tab.html b/employee/templates/tabs/attendance-tab.html index 52fed7405..4325c36df 100644 --- a/employee/templates/tabs/attendance-tab.html +++ b/employee/templates/tabs/attendance-tab.html @@ -177,7 +177,7 @@
  • {% for ot in accounts %} -
    +
    @@ -199,14 +199,14 @@ {% if perms.recruitment.change_attendanceovertime or perms.recruitment.delete_attendanceovertime %}
    - {% if perms.recruitment.change_attendanceovertime %} - + {% if perms.attendance.change_attendanceovertime %} + {% endif %} - {% if perms.recruitment.delete_attendance %} -
    - {% csrf_token %} - -
    + {% if perms.attendance.delete_attendanceovertime or request.user|is_reportingmanager %} +
    + {% csrf_token %} + +
    {% endif %}
    diff --git a/employee/templates/tabs/shift-tab.html b/employee/templates/tabs/shift-tab.html index bd7871fb2..b4a403249 100644 --- a/employee/templates/tabs/shift-tab.html +++ b/employee/templates/tabs/shift-tab.html @@ -66,10 +66,10 @@ {% if not request.GET.profile and perms.base.add_rotatingworktypeassign or request.user|is_reportingmanager %}
    - -
    - -