From deb0322086957d3b6946908152e94f4d36d42749 Mon Sep 17 00:00:00 2001 From: krantheman Date: Fri, 6 Oct 2023 18:29:54 +0530 Subject: [PATCH] feat: use grid view with two cards per row (cherry picked from commit b361995882af65ca0455bf37d4ed5e5c748fa0d9) --- hrms/www/jobs/index.css | 5 ++ hrms/www/jobs/index.html | 169 ++++++++++++++++++++++----------------- 2 files changed, 99 insertions(+), 75 deletions(-) diff --git a/hrms/www/jobs/index.css b/hrms/www/jobs/index.css index b15209ca6e..dbc289b623 100644 --- a/hrms/www/jobs/index.css +++ b/hrms/www/jobs/index.css @@ -6,6 +6,11 @@ h3.jobs-page { font-size: 1.7rem; } +h4.jobs-page { + font-size: 1.35rem; +} + + .text-18 { font-size: 18px; } diff --git a/hrms/www/jobs/index.html b/hrms/www/jobs/index.html index 50691d2b78..2985485f92 100644 --- a/hrms/www/jobs/index.html +++ b/hrms/www/jobs/index.html @@ -100,89 +100,108 @@

{{ _("Job Openings") }}

{{ _("Showing " + job_openings|length|string + (" result" if job_openings|length == 1 else " results") ) }}

- {% for jo in job_openings %} -
-
-
-
-

{{ jo.job_title }}

+
+ {% for jo in job_openings %} +
+
+
+
+
+

+ {{ jo.job_title }} +

+
+ {{ jo.company }} + {{ " · " }} {{ jo.posted_on }} +
+
+
+
+ {%- if jo.employment_type -%} {%- if jo.employment_type == + "Full-time" -%} +
+ • {{ jo.employment_type }} +
+ {%- elif jo.employment_type == "Part-time" -%} +
+ • {{ jo.employment_type }} +
+ {%- else -%} +
+ • {{ jo.employment_type }} +
+ {% endif %} {% endif %} +
+
+
- {{ jo.company }} - {{ " · " }} {{ jo.posted_on }} + {%- if jo.location -%} +
+ + + + + + + {{ jo.location }} +
+ {% endif %} {%- if jo.department -%} +
+ + + + {{ jo.department }} +
+ {% endif %} {%- if jo.publish_salary_range -%} +
+ + + + {{ " " }} {%- if jo.lower_range -%}{{ + frappe.format_value(frappe.utils.flt(jo.lower_range) , + currency=jo.currency) }}{% endif %} {%- if jo.lower_range and + jo.upper_range -%}{{ " - " }}{% endif %} {%- if jo.upper_range + -%}{{ frappe.format_value(frappe.utils.flt(jo.upper_range) , + currency=jo.currency) }}{% endif %} / {{ jo.salary_per.lower() + }} +
+ {% endif %}
-
- {%- if jo.employment_type -%} {%- if jo.employment_type == - "Full-time" -%} -
- • {{ jo.employment_type }} +
-
- {%- if jo.location -%} -
- - - - - - - {{ jo.location }} -
- {% endif %} {%- if jo.department -%} -
- - - - {{ jo.department }} -
- {% endif %} {%- if jo.publish_salary_range -%} -
- - - - {{ " " }} {%- if jo.lower_range -%}{{ - frappe.format_value(frappe.utils.flt(jo.lower_range) , - currency=jo.currency) }}{% endif %} {%- if jo.lower_range and - jo.upper_range -%}{{ " - " }}{% endif %} {%- if jo.upper_range -%}{{ - frappe.format_value(frappe.utils.flt(jo.upper_range) , - currency=jo.currency) }}{% endif %} / {{ jo.salary_per.lower() }} -
- {% endif %} -
-
- + {% endfor %}
- {% endfor %}
{% endblock page_content %}