From c4f954c808ec6a2abd24699fb0e52b424ad146c9 Mon Sep 17 00:00:00 2001 From: amdi-odoo Date: Thu, 20 Oct 2022 13:19:08 +0000 Subject: [PATCH] [IMP] survey: add no answer helper Display a no answers helper instead of the empty table and the alert message when a question doesn't have any answers. Task-2957775 Part-of: odoo/odoo#100168 --- .../src/scss/survey_templates_results.scss | 13 +++++++++++++ .../views/survey_templates_statistics.xml | 17 ++++++++--------- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/addons/survey/static/src/scss/survey_templates_results.scss b/addons/survey/static/src/scss/survey_templates_results.scss index d7d5e5e404e..c159c175098 100644 --- a/addons/survey/static/src/scss/survey_templates_results.scss +++ b/addons/survey/static/src/scss/survey_templates_results.scss @@ -95,3 +95,16 @@ font-weight: bold; } } + +.o_survey_no_answers::before { + width: 120px; + height: 80px; + background: transparent url(/web/static/img/empty_folder.svg) no-repeat center; + content: ""; + display: block; + margin-top: 50px; + margin-bottom: 20px; + margin-left: auto; + margin-right: auto; + z-index: 1; +} diff --git a/addons/survey/views/survey_templates_statistics.xml b/addons/survey/views/survey_templates_statistics.xml index 22bdd7b21b2..fd2b5bdf131 100644 --- a/addons/survey/views/survey_templates_statistics.xml +++ b/addons/survey/views/survey_templates_statistics.xml @@ -99,18 +99,17 @@ -