diff --git a/hrms/www/jobs/index.css b/hrms/www/jobs/index.css index 02de00f956..46dc0ebbf2 100644 --- a/hrms/www/jobs/index.css +++ b/hrms/www/jobs/index.css @@ -10,12 +10,15 @@ p { --icon-stroke: var(--primary); } -.big-text { +.lg-text { font-size: 18px; } -.smol-text { - font-size: 13px; +.md-text { + font-size: 15px; +} +.sm-text { + font-size: 12px; } .full-time-badge { @@ -34,4 +37,4 @@ p { background: var(--bg-blue); color: var(--text-on-blue); border-radius: var(--border-radius) -} \ No newline at end of file +} diff --git a/hrms/www/jobs/index.html b/hrms/www/jobs/index.html index fa479ab888..55eb3bed0c 100644 --- a/hrms/www/jobs/index.html +++ b/hrms/www/jobs/index.html @@ -1,9 +1,15 @@ {% extends "templates/web.html" %} +{% block header %} +

{{ _("Job Openings") }}

+{% endblock header %} {% block page_content %} -
-
-

Filters

-
+
+
+
+

Filters

+ {{ _("Clear All") }} +
+

Companies

{% for company in companies %}
@@ -12,7 +18,7 @@
{% endfor %}
-
+

Departments

{% for department in departments %}
@@ -21,7 +27,7 @@
{% endfor %}
-
+

Location

{% for location in locations %}
@@ -30,7 +36,7 @@
{% endfor %}
-
+

Employment Type

{% for type in employment_types %}
@@ -65,11 +71,11 @@

{{ jo.job_title }}

{%- if jo.employment_type -%} {%- if jo.employment_type == "Full-time" -%} - • {{ jo.employment_type }} + • {{ jo.employment_type }} {%- elif jo.employment_type == "Part-time" -%} - • {{ jo.employment_type }} + • {{ jo.employment_type }} {%- else -%} - • {{ jo.employment_type }} + • {{ jo.employment_type }} {% endif %} {% endif %}
@@ -101,7 +107,7 @@

{{ jo.job_title }}

{%- if jo.publish_salary_range -%}

- + {{ frappe.format_value(frappe.utils.flt(jo.lower_range) , currency=jo.currency) }} - {{ frappe.format_value(frappe.utils.flt(jo.upper_range) , currency=jo.currency) }} @@ -119,7 +125,7 @@

{{ jo.job_title }}

{{ _("View Job →") }} {%- if jo.closes_on -%} -

+

{{ _("Closes on " + frappe.format_date(jo.closes_on, "d MMM, YYYY") ) }}

{% endif %} diff --git a/hrms/www/jobs/index.js b/hrms/www/jobs/index.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/hrms/www/jobs/index.py b/hrms/www/jobs/index.py index 6c6ee41e0d..c4f5736539 100644 --- a/hrms/www/jobs/index.py +++ b/hrms/www/jobs/index.py @@ -1,6 +1,5 @@ import frappe from frappe import _ -from frappe.query_builder import DocType from frappe.query_builder.functions import Count @@ -85,4 +84,8 @@ def get_filters(job_openings): locations.append(d.location) if d.employment_type and d.employment_type not in employment_types: employment_types.append(d.employment_type) + companies.sort() + departments.sort() + locations.sort() + employment_types.sort() return companies, departments, locations, employment_types