mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-28 09:24:45 +00:00
Merge branch 'v7.2.0-beta' into develop
This commit is contained in:
@@ -20,7 +20,7 @@ class JobApplicant(Document):
|
|||||||
self.get("__onload").offer_letter = offer_letter[0].name
|
self.get("__onload").offer_letter = offer_letter[0].name
|
||||||
|
|
||||||
def autoname(self):
|
def autoname(self):
|
||||||
keys = filter(None, (self.applicant_name, self.email_id))
|
keys = filter(None, (self.applicant_name, self.email_id, self.job_title))
|
||||||
if not keys:
|
if not keys:
|
||||||
frappe.throw(_("Name or Email is mandatory"), frappe.NameError)
|
frappe.throw(_("Name or Email is mandatory"), frappe.NameError)
|
||||||
self.name = " - ".join(keys)
|
self.name = " - ".join(keys)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"allow_copy": 0,
|
"allow_copy": 0,
|
||||||
"allow_import": 0,
|
"allow_import": 0,
|
||||||
"allow_rename": 0,
|
"allow_rename": 0,
|
||||||
"autoname": "field:job_title",
|
"autoname": "field:route",
|
||||||
"beta": 0,
|
"beta": 0,
|
||||||
"creation": "2013-01-15 16:13:36",
|
"creation": "2013-01-15 16:13:36",
|
||||||
"custom": 0,
|
"custom": 0,
|
||||||
@@ -165,7 +165,7 @@
|
|||||||
"issingle": 0,
|
"issingle": 0,
|
||||||
"istable": 0,
|
"istable": 0,
|
||||||
"max_attachments": 0,
|
"max_attachments": 0,
|
||||||
"modified": "2016-11-07 05:29:33.272398",
|
"modified": "2016-12-19 05:54:38.298496",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"name": "Job Opening",
|
"name": "Job Opening",
|
||||||
|
|||||||
@@ -16,6 +16,10 @@ class JobOpening(WebsiteGenerator):
|
|||||||
page_title_field = "job_title",
|
page_title_field = "job_title",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def validate(self):
|
||||||
|
if not self.route:
|
||||||
|
self.route = frappe.scrub(self.job_title).replace('_', '-')
|
||||||
|
|
||||||
def get_context(self, context):
|
def get_context(self, context):
|
||||||
context.parents = [{'name': 'jobs', 'title': _('All Jobs') }]
|
context.parents = [{'name': 'jobs', 'title': _('All Jobs') }]
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
{%- if description -%}
|
{%- if description -%}
|
||||||
<div>{{ description }}</div>
|
<div>{{ description }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<p>
|
<p style='margin-top: 30px'>
|
||||||
<a class='btn btn-primary'
|
<a class='btn btn-primary'
|
||||||
href='/job_application?job_title={{ doc.name }}'>
|
href='/job_application?job_title={{ doc.name }}'>
|
||||||
{{ _("Apply Now") }}</a>
|
{{ _("Apply Now") }}</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user