From ee2555546f0f52889f667bb40d1536ed0193307a Mon Sep 17 00:00:00 2001 From: Benjamin Vray Date: Fri, 29 May 2020 11:28:53 +0000 Subject: [PATCH] [IMP] website, *: redesign the contact us and the thank you page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit task-2266756 closes odoo/odoo#52162 Signed-off-by: Jérémy Kersten (jke) --- addons/website/data/website_data.xml | 9 ++++--- .../static/tests/tours/website_crm.js | 2 +- .../static/src/xml/website_form_editor.xml | 12 ++++----- .../static/tests/tours/website_form_editor.js | 2 +- .../views/website_form_templates.xml | 26 ++++++++++++------- 5 files changed, 29 insertions(+), 22 deletions(-) diff --git a/addons/website/data/website_data.xml b/addons/website/data/website_data.xml index 427fa7868c7..e2e9d5742ac 100644 --- a/addons/website/data/website_data.xml +++ b/addons/website/data/website_data.xml @@ -25,15 +25,16 @@
-
+
+

Contact us

-
+
-
+
@@ -52,7 +53,7 @@ Send us an email
-
+
diff --git a/addons/website_crm/static/tests/tours/website_crm.js b/addons/website_crm/static/tests/tours/website_crm.js index 9b615a56f8f..3638fa45f51 100644 --- a/addons/website_crm/static/tests/tours/website_crm.js +++ b/addons/website_crm/static/tests/tours/website_crm.js @@ -35,7 +35,7 @@ odoo.define('website_crm.tour', function(require) { trigger: ".s_website_form_send" }, { content: "Check we were redirected to the success page", - trigger: "#wrap:has(h1:contains('Thanks')):has(div.alert-success)" + trigger: "#wrap:has(h1:contains('Thank You!'))" }]); return {}; diff --git a/addons/website_form/static/src/xml/website_form_editor.xml b/addons/website_form/static/src/xml/website_form_editor.xml index ae099e4717c..4978d0fbb84 100644 --- a/addons/website_form/static/src/xml/website_form_editor.xml +++ b/addons/website_form/static/src/xml/website_form_editor.xml @@ -4,16 +4,16 @@
-
- The following message will become visible only once the form is sent. -
-
+
-

Thank You For Your Feedback

+

+ + Thank You For Your Feedback +

Our team will message you back as soon as possible.
- In the meantime we invite you to try our awesome website.
+ In the meantime we invite you to visit our website.

diff --git a/addons/website_form/static/tests/tours/website_form_editor.js b/addons/website_form/static/tests/tours/website_form_editor.js index 10ad3b996de..9431307688a 100644 --- a/addons/website_form/static/tests/tours/website_form_editor.js +++ b/addons/website_form/static/tests/tours/website_form_editor.js @@ -365,7 +365,7 @@ odoo.define('website_form_editor.tour', function (require) { }, { content: "Check form is submitted without errors", - trigger: ".alert-success:contains('Your message has been sent successfully.')" + trigger: "#wrap:has(h1:contains('Thank You!'))" } ]); diff --git a/addons/website_form/views/website_form_templates.xml b/addons/website_form/views/website_form_templates.xml index 3ecd30d3a9a..36732b23897 100644 --- a/addons/website_form/views/website_form_templates.xml +++ b/addons/website_form/views/website_form_templates.xml @@ -107,17 +107,23 @@
-
-

Thanks!

+
-
-
- Your message has been sent successfully. - -
-

- We will get back to you shortly. -

+
+
+
+
+

Thank You!

+
+
+
+
+ + Your message has been sent successfully +
+

We will get back to you shortly.

+
+