diff --git a/hrms/www/jobs/index.css b/hrms/www/jobs/index.css index 46dc0ebbf2..76a47df001 100644 --- a/hrms/www/jobs/index.css +++ b/hrms/www/jobs/index.css @@ -1,3 +1,7 @@ +body { + background-color: var(--gray-50); +} + h3 { font-size: 1.7rem; } @@ -24,17 +28,17 @@ p { .full-time-badge { background: var(--bg-green); color: var(--text-on-green); - border-radius: var(--border-radius) + border-radius: var(--border-radius); } .part-time-badge { background: var(--bg-orange); color: var(--text-on-orange); - border-radius: var(--border-radius) + border-radius: var(--border-radius); } .other-badge { background: var(--bg-blue); color: var(--text-on-blue); - border-radius: var(--border-radius) + border-radius: var(--border-radius); } diff --git a/hrms/www/jobs/index.html b/hrms/www/jobs/index.html index 666d47d058..29515f9ed4 100644 --- a/hrms/www/jobs/index.html +++ b/hrms/www/jobs/index.html @@ -1,4 +1,7 @@ {% extends "templates/web.html" %} +{% block title %} + {{ _("Job Openings") }} +{% endblock title %} {% block header %}

{{ _("Job Openings") }}

{% endblock header %} @@ -6,8 +9,8 @@

{{ _("Job Openings") }}

-

Filters

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

{{ _("Filters") }}

+ {{ _("Clear All") }}
{% for name, values in filters.items() %}
@@ -27,23 +30,31 @@

{{ _("Job Openings") }}

{% endfor %}
-
-
-
- - - - - -
- +
+ +
+ + + +
-

Showing {{ job_openings|length }} results

+

Showing {{ job_openings|length }} results

{% for jo in job_openings %}
diff --git a/hrms/www/jobs/index.js b/hrms/www/jobs/index.js index ccbd0724e0..a5e46a8919 100644 --- a/hrms/www/jobs/index.js +++ b/hrms/www/jobs/index.js @@ -4,6 +4,9 @@ $(() => { const filters = $("input:checked").serialize(); scroll_up_and_update_filters(filters); }); + $("#clear-filters").on("click", function () { + scroll_up_and_update_filters(); + }); }); function select_applied_filters() { @@ -18,7 +21,7 @@ function select_applied_filters() { } } -function scroll_up_and_update_filters(filters) { +function scroll_up_and_update_filters(filters="") { if (window.scrollY === 0) { window.location.href = "/jobs?" + filters; } else {