Skip to content

Commit

Permalink
feat: add link to job route
Browse files Browse the repository at this point in the history
(cherry picked from commit b0e908d)
  • Loading branch information
krantheman authored and mergify[bot] committed Dec 12, 2023
1 parent cff5dbf commit 9558158
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
1 change: 1 addition & 0 deletions hrms/hr/doctype/job_opening/job_opening.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ def get_job_openings(
"currency",
"job_application_route",
"salary_type",
"route",
]

filters = filters or {}
Expand Down
24 changes: 4 additions & 20 deletions hrms/hr/doctype/job_opening/templates/job_opening_row.html
Original file line number Diff line number Diff line change
@@ -1,30 +1,14 @@
<div class="py-12 px-4">
<h3 class="mt-0">{{ doc.job_title }}</h3>
<div class="py-12 px-4" style="font-size: 18px">
<h2 class="mt-0">{{ doc.job_title }}</h2>
<p>{{ doc.description or _("No description") }}</p>
{%- if doc.publish_salary_range -%}
<p>
<b>{{_("Salary Range ")}} ({{_(doc.salary_type)}}): </b>{{
<b>{{_("Salary Range ")}} ({{_(doc.salary_type.lower())}}): </b>{{
frappe.format_value(frappe.utils.flt(doc.lower_range),
currency=doc.currency) }} - {{
frappe.format_value(frappe.utils.flt(doc.upper_range),
currency=doc.currency) }}
</p>
{% endif %}
<div>
{%- if doc.job_application_route -%}
<a
class="btn btn-primary"
href="/{{doc.job_application_route}}/new?job_title={{ doc.name }}"
>
{{ _("Apply Now") }}</a
>
{% else %}
<a
class="btn btn-primary"
href="/job_application/new?job_title={{ doc.name }}"
>
{{ _("Apply Now") }}</a
>
{% endif %}
</div>
<a href="{{ doc.route }}"> {{ _("Learn More →") }}</a>
</div>

0 comments on commit 9558158

Please sign in to comment.