From 0a1e5daf1031ac0c565731bd5e0cfbe5a6679bfa Mon Sep 17 00:00:00 2001 From: krantheman Date: Fri, 25 Aug 2023 01:31:28 +0530 Subject: [PATCH] feat: better spacing and other ui changes (cherry picked from commit 25f5d03d48a96c41fc411b0ae9d11006a12f1391) --- hrms/templates/generators/job_opening.html | 147 +++++++++++---------- 1 file changed, 77 insertions(+), 70 deletions(-) diff --git a/hrms/templates/generators/job_opening.html b/hrms/templates/generators/job_opening.html index 09ff26fa2a..124e4ee6c4 100644 --- a/hrms/templates/generators/job_opening.html +++ b/hrms/templates/generators/job_opening.html @@ -1,78 +1,85 @@ {% extends "templates/web.html" %} {% block breadcrumbs %} {% include "templates/includes/breadcrumbs.html" %} {% endblock %} {% block page_content %} -
-

{{ job_title }}

-
- {%- if job_application_route -%} - - {{ _("Apply Now") }} - {% else %} - - {{ _("Apply Now") }} +
+

{{ job_title }}

+
+ {%- if job_application_route -%} + + {{ _("Apply Now") }} + {% else %} + + {{ _("Apply Now") }} + {% endif %} +
+
+
+
+ {%- if department -%} + + + +

{{ doc.department }}

+ {% endif %} {%- if location -%} + + + + + + +

{{ doc.location }}

+ {% endif %} {%- if employment_type -%} + + + +

{{ doc.employment_type }}

+ {% endif %} +
+ {%- if doc.publish_salary_range -%} +

+ {{_("Salary range " + doc.salary_type.lower())}}: + {{ frappe.format_value(frappe.utils.flt(doc.lower_range), + currency=doc.currency) }} - {{ + frappe.format_value(frappe.utils.flt(doc.upper_range), + currency=doc.currency) }} + +

+ {% endif %} {%- if no_of_applications -%} +

+ {{ no_of_applications }} {{"application" if no_of_applications == 1 else + "applications"}} received! +

+ {% endif %} {%- if doc.closes_on -%} +

+ {{_("Closes on ")}} {{ frappe.format_date(doc.closes_on) }} +

{% endif %}
-
-
- {%- if department -%} - - - -

{{ doc.department }}

- {% endif %} {%- if location -%} - - - - - - -

{{ doc.location }}

- {% endif %} {%- if employment_type -%} - - - -

{{ doc.employment_type }}

- {% endif %} -
-{%- if doc.publish_salary_range -%} -

- {{_("Salary range " + doc.salary_type.lower())}}: - {{ frappe.format_value(frappe.utils.flt(doc.lower_range), - currency=doc.currency) }} - {{ - frappe.format_value(frappe.utils.flt(doc.upper_range), - currency=doc.currency) }} - -

-{% endif %} -

{{ description or _("No description") }}

-
- {%- if no_of_applications -%} -

- {{ no_of_applications }} {{"application" if no_of_applications == 1 else - "applications"}} received! -

- {% endif %} {%- if doc.closes_on -%} -

- {{_("Closes on ")}} {{ doc.closes_on }} -

+ + {%- if doc.description -%} +

{{ description }}

{% endif %}
+ {% endblock %}