diff --git a/hrms/hr/doctype/employee_checkin/employee_checkin.json b/hrms/hr/doctype/employee_checkin/employee_checkin.json index 0eb63c1bdc..14eb5cbcfa 100644 --- a/hrms/hr/doctype/employee_checkin/employee_checkin.json +++ b/hrms/hr/doctype/employee_checkin/employee_checkin.json @@ -24,6 +24,7 @@ { "fieldname": "employee", "fieldtype": "Link", + "in_standard_filter": 1, "label": "Employee", "options": "Employee", "reqd": 1, @@ -109,7 +110,7 @@ } ], "links": [], - "modified": "2023-05-12 14:52:22.660264", + "modified": "2024-04-02 01:50:23.150627", "modified_by": "Administrator", "module": "HR", "name": "Employee Checkin", diff --git a/hrms/hr/doctype/job_opening/job_opening.json b/hrms/hr/doctype/job_opening/job_opening.json index 6e3331694e..04e88fb5d6 100644 --- a/hrms/hr/doctype/job_opening/job_opening.json +++ b/hrms/hr/doctype/job_opening/job_opening.json @@ -30,6 +30,7 @@ "section_break_6", "publish", "route", + "publish_applications_received", "column_break_12", "job_application_route", "section_break_14", @@ -241,12 +242,20 @@ "fieldtype": "Select", "label": "Salary Paid Per", "options": "Month\nYear" + }, + { + "default": "1", + "depends_on": "publish", + "description": "If enabled, the total no. of applications received for this opening will be displayed on the website", + "fieldname": "publish_applications_received", + "fieldtype": "Check", + "label": "Publish Applications Received" } ], "icon": "fa fa-bookmark", "idx": 1, "links": [], - "modified": "2024-01-03 14:34:32.159138", + "modified": "2024-04-01 11:32:47.167232", "modified_by": "Administrator", "module": "HR", "name": "Job Opening", diff --git a/hrms/templates/generators/job_opening.html b/hrms/templates/generators/job_opening.html index 1ef81698d5..740ab40014 100644 --- a/hrms/templates/generators/job_opening.html +++ b/hrms/templates/generators/job_opening.html @@ -145,24 +145,26 @@ {% endif %} -
-
-
- - - -
-
-
{{ _("Applications Received") }}
-
{{ no_of_applications }}
+ {%- if publish_applications_received -%} +
+
+
+ + + +
+
+
{{ _("Applications Received") }}
+
{{ no_of_applications }}
+
-
+ {%- endif -%} {%- if (status == 'Open' and closes_on) or (status == 'Closed' and closed_on) -%}
diff --git a/hrms/www/hrms.py b/hrms/www/hrms.py index 1385c2984b..768400facc 100644 --- a/hrms/www/hrms.py +++ b/hrms/www/hrms.py @@ -7,8 +7,8 @@ def get_context(context): csrf_token = frappe.sessions.get_csrf_token() frappe.db.commit() # nosempgrep context = frappe._dict() + context.csrf_token = csrf_token context.boot = get_boot() - context.boot.csrf_token = csrf_token return context diff --git a/hrms/www/jobs/index.html b/hrms/www/jobs/index.html index f32a759800..b7be8d1f00 100644 --- a/hrms/www/jobs/index.html +++ b/hrms/www/jobs/index.html @@ -230,9 +230,13 @@

{{ _("Job Openings") }}