From 122d0791a3580f4d65a3b9a822d046a34b5ad4d6 Mon Sep 17 00:00:00 2001 From: Kanchan Chauhan Date: Tue, 13 Sep 2016 14:29:02 +0530 Subject: [PATCH] Job Application web form --- erpnext/hr/web_form/__init__.py | 0 .../hr/web_form/job_application/__init__.py | 0 .../job_application/job_application.js | 3 + .../job_application/job_application.json | 68 +++++++++++++++++++ .../job_application/job_application.py | 7 ++ 5 files changed, 78 insertions(+) create mode 100644 erpnext/hr/web_form/__init__.py create mode 100644 erpnext/hr/web_form/job_application/__init__.py create mode 100644 erpnext/hr/web_form/job_application/job_application.js create mode 100644 erpnext/hr/web_form/job_application/job_application.json create mode 100644 erpnext/hr/web_form/job_application/job_application.py diff --git a/erpnext/hr/web_form/__init__.py b/erpnext/hr/web_form/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/erpnext/hr/web_form/job_application/__init__.py b/erpnext/hr/web_form/job_application/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/erpnext/hr/web_form/job_application/job_application.js b/erpnext/hr/web_form/job_application/job_application.js new file mode 100644 index 0000000000..699703c579 --- /dev/null +++ b/erpnext/hr/web_form/job_application/job_application.js @@ -0,0 +1,3 @@ +frappe.ready(function() { + // bind events here +}) \ No newline at end of file diff --git a/erpnext/hr/web_form/job_application/job_application.json b/erpnext/hr/web_form/job_application/job_application.json new file mode 100644 index 0000000000..2aa65208c5 --- /dev/null +++ b/erpnext/hr/web_form/job_application/job_application.json @@ -0,0 +1,68 @@ +{ + "allow_comments": 1, + "allow_delete": 0, + "allow_edit": 1, + "allow_multiple": 1, + "creation": "2016-09-10 02:53:16.598314", + "doc_type": "Job Applicant", + "docstatus": 0, + "doctype": "Web Form", + "idx": 0, + "introduction_text": "", + "is_standard": 1, + "login_required": 0, + "modified": "2016-09-13 04:56:29.228762", + "modified_by": "Administrator", + "module": "HR", + "name": "job-application", + "owner": "Administrator", + "published": 1, + "route": "job_application", + "success_message": "Thank you for applying.", + "success_url": "/jobs", + "title": "Job Application", + "web_form_fields": [ + { + "fieldname": "job_title", + "fieldtype": "Data", + "hidden": 0, + "label": "Job Opening", + "options": "", + "read_only": 1, + "reqd": 0 + }, + { + "fieldname": "applicant_name", + "fieldtype": "Data", + "hidden": 0, + "label": "Applicant Name", + "read_only": 0, + "reqd": 1 + }, + { + "fieldname": "email_id", + "fieldtype": "Data", + "hidden": 0, + "label": "Email Id", + "options": "Email", + "read_only": 0, + "reqd": 1 + }, + { + "fieldname": "cover_letter", + "fieldtype": "Text", + "hidden": 0, + "label": "Cover Letter", + "read_only": 0, + "reqd": 0 + }, + { + "fieldname": "resume_attachment", + "fieldtype": "Attach", + "hidden": 0, + "label": "Resume Attachment", + "read_only": 0, + "reqd": 0 + } + ] +} \ No newline at end of file diff --git a/erpnext/hr/web_form/job_application/job_application.py b/erpnext/hr/web_form/job_application/job_application.py new file mode 100644 index 0000000000..2334f8b26d --- /dev/null +++ b/erpnext/hr/web_form/job_application/job_application.py @@ -0,0 +1,7 @@ +from __future__ import unicode_literals + +import frappe + +def get_context(context): + # do your magic here + pass