diff --git a/school/job/doctype/job_opportunity/job_opportunity.json b/school/job/doctype/job_opportunity/job_opportunity.json
index 3efca13f..60331764 100644
--- a/school/job/doctype/job_opportunity/job_opportunity.json
+++ b/school/job/doctype/job_opportunity/job_opportunity.json
@@ -113,7 +113,7 @@
],
"index_web_pages_for_search": 1,
"links": [],
- "modified": "2021-12-30 10:04:01.049256",
+ "modified": "2021-12-30 12:10:08.849547",
"modified_by": "Administrator",
"module": "Job",
"name": "Job Opportunity",
@@ -129,6 +129,7 @@
"read": 1,
"report": 1,
"role": "System Manager",
+ "select": 1,
"share": 1,
"write": 1
},
diff --git a/school/job/notification/__init__.py b/school/job/notification/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/school/job/notification/new_job_alert/__init__.py b/school/job/notification/new_job_alert/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/school/job/notification/new_job_alert/new_job_alert.json b/school/job/notification/new_job_alert/new_job_alert.json
new file mode 100644
index 00000000..e3b2f37e
--- /dev/null
+++ b/school/job/notification/new_job_alert/new_job_alert.json
@@ -0,0 +1,28 @@
+{
+ "attach_print": 0,
+ "channel": "Email",
+ "creation": "2021-12-30 12:29:56.533903",
+ "days_in_advance": 0,
+ "docstatus": 0,
+ "doctype": "Notification",
+ "document_type": "Job Opportunity",
+ "enabled": 1,
+ "event": "New",
+ "idx": 0,
+ "is_standard": 1,
+ "message": "Hey,\n\nA new Job Opportunity has been created. \n\n
Company Name: {{ doc.company_name}}
\nJob Title: {{ doc.job_title}}
\nJob Location: {{ doc.location}}
\nJob Description: {{ doc.description}}
\n\nFind all the posted jobs here.
\n",
+ "modified": "2021-12-30 12:54:13.382512",
+ "modified_by": "Administrator",
+ "module": "Job",
+ "name": "New job alert",
+ "owner": "Administrator",
+ "recipients": [
+ {
+ "receiver_by_role": "System Manager"
+ }
+ ],
+ "send_system_notification": 0,
+ "send_to_all_assignees": 0,
+ "sender_email": "",
+ "subject": "New job added by {{ doc.company_name}}"
+}
\ No newline at end of file
diff --git a/school/job/notification/new_job_alert/new_job_alert.md b/school/job/notification/new_job_alert/new_job_alert.md
new file mode 100644
index 00000000..bc18259f
--- /dev/null
+++ b/school/job/notification/new_job_alert/new_job_alert.md
@@ -0,0 +1,10 @@
+Hey,
+
+A new Job Opportunity has been created.
+
+Company Name: {{ doc.company_name}}
+Job Title: {{ doc.job_title}}
+Job Location: {{ doc.location}}
+Job Description: {{ doc.description}}
+
+Find all the posted jobs here.
diff --git a/school/job/notification/new_job_alert/new_job_alert.py b/school/job/notification/new_job_alert/new_job_alert.py
new file mode 100644
index 00000000..e1ada619
--- /dev/null
+++ b/school/job/notification/new_job_alert/new_job_alert.py
@@ -0,0 +1,5 @@
+import frappe
+
+def get_context(context):
+ # do your magic here
+ pass
diff --git a/school/job/web_form/job_opportunity/job_opportunity.json b/school/job/web_form/job_opportunity/job_opportunity.json
index af19c1c5..c74aec74 100644
--- a/school/job/web_form/job_opportunity/job_opportunity.json
+++ b/school/job/web_form/job_opportunity/job_opportunity.json
@@ -8,7 +8,7 @@
"allow_print": 0,
"amount": 0.0,
"amount_based_on_field": 0,
- "apply_document_permissions": 0,
+ "apply_document_permissions": 1,
"button_label": "Save",
"creation": "2021-12-27 17:02:12.461145",
"custom_css": "[data-doctype=\"Web Form\"] {\n max-width: 720px;\n margin: 6rem auto;\n}",
@@ -19,7 +19,7 @@
"is_standard": 1,
"login_required": 1,
"max_attachment_size": 0,
- "modified": "2021-12-30 10:03:52.681310",
+ "modified": "2021-12-30 12:09:22.469041",
"modified_by": "Administrator",
"module": "Job",
"name": "job-opportunity",
diff --git a/school/www/jobs/index.html b/school/www/jobs/index.html
index 321c82bc..dcf2af68 100644
--- a/school/www/jobs/index.html
+++ b/school/www/jobs/index.html
@@ -13,11 +13,11 @@
-
{{ job.job_title }}
+
{{ _(job.job_title) }}
{{ job.company_name }}
diff --git a/school/www/jobs/job.html b/school/www/jobs/job.html
index 7c7e45e6..e733fb8c 100644
--- a/school/www/jobs/job.html
+++ b/school/www/jobs/job.html
@@ -1,6 +1,6 @@
{% extends "templates/base.html" %}
{% from "www/hackathons/macros/card.html" import null_card %}
-{% block title %}{{ job.job_title }}{% endblock %}
+{% block title %}{{ _(job.job_title) }}{% endblock %}
{% block content %}
@@ -11,11 +11,11 @@
- {{ job.type }}
+ {{ _(job.type) }}
{{ job.location }}
-
{{ job.job_title }}
+
{{ _(job.job_title) }}
{{ job.company_name }}
Posted On: {{ frappe.utils.format_date(job.creation, "medium") }}
@@ -25,7 +25,7 @@
@@ -38,6 +38,6 @@
{% endmacro %}