diff --git a/addons/survey/static/src/js/tours/survey_tour.js b/addons/survey/static/src/js/tours/survey_tour.js index 9d0a64f2100..d2e7edae1d6 100644 --- a/addons/survey/static/src/js/tours/survey_tour.js +++ b/addons/survey/static/src/js/tours/survey_tour.js @@ -21,21 +21,21 @@ registry.category("web_tour.tours").add('survey_tour', { content: _t("Let's give it a spin!"), position: 'bottom', }, { - trigger: '.o_survey_start button[type=submit]', + trigger: 'button[type=submit]', content: _t("Let's get started!"), position: 'bottom', }, { - trigger: '.o_survey_simple_choice button[type=submit]', + trigger: 'button[type=submit]', extra_trigger: '.js_question-wrapper span:contains("How frequently")', content: _t("Whenever you pick an answer, Odoo saves it for you."), position: 'bottom', }, { - trigger: '.o_survey_numerical_box button[type=submit]', + trigger: 'button[type=submit]', extra_trigger: '.js_question-wrapper span:contains("How many")', content: _t("Only a single question left!"), position: 'bottom', }, { - trigger: '.o_survey_matrix button[value=finish]', + trigger: 'button[value=finish]', extra_trigger: '.js_question-wrapper span:contains("How likely")', content: _t("Now that you are done, submit your form."), position: 'bottom', diff --git a/addons/survey/views/survey_templates.xml b/addons/survey/views/survey_templates.xml index 3c085d5f790..9cc7a7967f8 100644 --- a/addons/survey/views/survey_templates.xml +++ b/addons/survey/views/survey_templates.xml @@ -225,7 +225,7 @@ An exception is made for options with images, where we always want to optimize screen space.-->
+ t-attf-class="o_survey_page_per_question #{'w-lg-50 mx-lg-auto' if question.question_type in ('numerical_box', 'date', 'datetime') else ''}">