From 732cb7c254508a25e78c0f544e4057d4c059c3d5 Mon Sep 17 00:00:00 2001 From: David Beguin Date: Tue, 11 Feb 2020 15:17:54 +0000 Subject: [PATCH 1/2] [IMP] survey: remove header and footer for all survey mode. Purpose ======= Lighten the survey layout. it should be free of website footer and header. Specifications ============== Survey Layout inherits from web.frontend_layout, mainly to be able to use all the styles rules defined in it and keep consistency between other frontend pages and survey. Instead of inheriting another layout, this PR sets no_footer and no_header to True for all survey layout. The idea is to show only the survey itself without having other web/website object in the layout. Links ===== Task ID: 2195185 PR #45112 --- addons/survey/static/src/scss/survey_form.scss | 16 ++++++++++++++-- addons/survey/views/survey_templates.xml | 6 +++--- .../survey/views/survey_templates_management.xml | 2 -- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/addons/survey/static/src/scss/survey_form.scss b/addons/survey/static/src/scss/survey_form.scss index f9f98c9ea03..ef026c664d2 100644 --- a/addons/survey/static/src/scss/survey_form.scss +++ b/addons/survey/static/src/scss/survey_form.scss @@ -1,10 +1,22 @@ -.o_survey_wrap { - min-height: 100%; +/********************************************************** + Remove website navbar : Should be done in website survey + but we won't do a bridge module only for this. + TODO: SmartPeople Fixme - cleaner solution? be my guest! + **********************************************************/ +body.o_connected_user { + padding-top: 0px !important; +} + +nav#oe_main_menu_navbar { + display: none; } /********************************************************** Common Style **********************************************************/ +.o_survey_wrap { + min-height: 100%; +} .o_survey_form, .o_survey_print, .o_survey_session_manage, .o_survey_quick_access { .o_survey_question_error { diff --git a/addons/survey/views/survey_templates.xml b/addons/survey/views/survey_templates.xml index 4458946bd9d..268aad6c9d2 100644 --- a/addons/survey/views/survey_templates.xml +++ b/addons/survey/views/survey_templates.xml @@ -10,14 +10,14 @@ - - + +
-
+
diff --git a/addons/survey/views/survey_templates_management.xml b/addons/survey/views/survey_templates_management.xml index ba26f785fe6..c8af8b020af 100644 --- a/addons/survey/views/survey_templates_management.xml +++ b/addons/survey/views/survey_templates_management.xml @@ -105,8 +105,6 @@ Mainly used in 'session mode' to give an easy access to the survey through the '/s' route. -->