From d3b7e1c12737a7bc2a9f96e682935d79a91fd627 Mon Sep 17 00:00:00 2001 From: Carlos Valverde Date: Tue, 20 Sep 2022 11:55:46 +0000 Subject: [PATCH] [IMP] website_hr_recruitment, *: improve pages design *: website Old 'website_hr_recruitment' templates looked outdated, so they have been improved in terms of usability and design, by applying the following changes: - Old images used in `/jobs` and `/jobs/detail/` have been replaced by new ones, taken from the Odoo official profile in social media. - A `Connect with us` section has been added to the right column of `/jobs`, including a separator, links and social media icons. - Job entries in `/jobs` now show the city of the office, its country and its department, as shown in the filters. - In `/jobs/*`, old header with a breadcrumb has been replaced by the topbar seen above, including a link to previous page in the navigation flow. - Design in `/jobs/detail/` has been improved, including a redesign of the `Our Product` block or the image gallery at the end of the page. - Header in `jobs/apply/*` has been improved and includes a column with the address of the job position. - In `jobs/apply/*`, the design of the form group has been revamped and also has been added a right column including a snippet with the contact information of the recruiter tracking the job application process. - Overall design has been improved in the `/job-thank-you` view, including the recruiter snippet seen above. - Job description is now editable and not truncated. Additionally, a default job description has also been added. - Every new job entry has now a default short description, editable. - If there is either no available job or not any valid job after the job search, the `No jobs available` view has also been improved. - Illustrations with dynamic colors have been included in `/jobs/detail` (`Our Product` block) and `/job-thank-you`. - `boolean_toggle` widget used in `website_hr_recruitment`'s backend, in its job entry kanban has been improved. - Syntax has been adapted to BS5. - Tests have also been updated to the changes in the templates. task-2406626 Part-of: odoo/odoo#67913 Co-authored-by: Benoit Socias Co-authored-by: qsm-odoo --- .../static/src/scss/website.edit_mode.scss | 3 + .../data/hr_job_demo.xml | 392 +++++++++--------- .../website_hr_recruitment/models/hr_job.py | 9 + .../static/src/img/job_congratulations.svg | 63 +++ .../static/src/img/job_image_10.jpg | Bin 0 -> 90316 bytes .../static/src/img/job_image_11.jpg | Bin 0 -> 101525 bytes .../static/src/img/job_image_12.jpg | Bin 0 -> 102102 bytes .../static/src/img/job_image_13.jpg | Bin 0 -> 95276 bytes .../static/src/img/job_image_7.jpg | Bin 0 -> 101575 bytes .../static/src/img/job_image_8.jpg | Bin 0 -> 94129 bytes .../static/src/img/job_image_9.jpg | Bin 0 -> 98391 bytes .../static/src/img/job_not_found.svg | 50 +++ .../static/src/img/job_product.svg | 51 +++ .../src/scss/website_hr_recruitment.scss | 52 ++- .../tests/tours/website_hr_recruitment.js | 4 +- .../views/hr_job_views.xml | 2 +- .../website_hr_recruitment_templates.xml | 366 +++++++++------- 17 files changed, 627 insertions(+), 365 deletions(-) create mode 100644 addons/website_hr_recruitment/static/src/img/job_congratulations.svg create mode 100644 addons/website_hr_recruitment/static/src/img/job_image_10.jpg create mode 100644 addons/website_hr_recruitment/static/src/img/job_image_11.jpg create mode 100644 addons/website_hr_recruitment/static/src/img/job_image_12.jpg create mode 100644 addons/website_hr_recruitment/static/src/img/job_image_13.jpg create mode 100644 addons/website_hr_recruitment/static/src/img/job_image_7.jpg create mode 100644 addons/website_hr_recruitment/static/src/img/job_image_8.jpg create mode 100644 addons/website_hr_recruitment/static/src/img/job_image_9.jpg create mode 100644 addons/website_hr_recruitment/static/src/img/job_not_found.svg create mode 100644 addons/website_hr_recruitment/static/src/img/job_product.svg diff --git a/addons/website/static/src/scss/website.edit_mode.scss b/addons/website/static/src/scss/website.edit_mode.scss index e34d041d035..533606409a0 100644 --- a/addons/website/static/src/scss/website.edit_mode.scss +++ b/addons/website/static/src/scss/website.edit_mode.scss @@ -120,6 +120,9 @@ $-editor-messages-margin-x: 2%; color: #aaa; } } + &[data-oe-type=html].oe_empty:empty { + @extend %o-editor-messages; + } } .editor_enable [data-oe-readonly]:hover { cursor: default; diff --git a/addons/website_hr_recruitment/data/hr_job_demo.xml b/addons/website_hr_recruitment/data/hr_job_demo.xml index 2aa86e062e7..5bc0c1ac197 100644 --- a/addons/website_hr_recruitment/data/hr_job_demo.xml +++ b/addons/website_hr_recruitment/data/hr_job_demo.xml @@ -5,7 +5,7 @@ True -
+
@@ -137,12 +137,12 @@
-
+
-

What's great in the job?

-
-
-
+
+
+

What's great in the job?

+
  • Great team of smart people, in a friendly and open culture
  • No dumb managers, no stupid tools to use, no rigid working hours
  • @@ -152,18 +152,21 @@
  • Real responsibilities and challenges in a fast evolving company
-
-
-
Our Product
-

Discover our products.

-

READ

+
+
+
Our Product
+
+ Our Product +

Discover our products.

+

READ

+
-
+

What We Offer


@@ -199,28 +202,25 @@
-
+