From 6774024e0e70614a491c83fa48fd39bbb07302d0 Mon Sep 17 00:00:00 2001 From: "Thomas Josse (thjo)" Date: Thu, 20 Oct 2022 09:34:36 +0000 Subject: [PATCH] [IMP] survey: add fa-pen icon to sections in question ListView This commit adds an icon on hover of sections inside the questions ListView to indicate more clearly to the user that they can edit these lines. task-2988062 closes odoo/odoo#108731 Signed-off-by: Thibault Delavallee (tde) --- .../static/src/question_page/description_page_field.xml | 5 +++++ addons/survey/static/src/scss/survey_survey_views.scss | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/addons/survey/static/src/question_page/description_page_field.xml b/addons/survey/static/src/question_page/description_page_field.xml index 94d09ca4bf2..3876584d877 100644 --- a/addons/survey/static/src/question_page/description_page_field.xml +++ b/addons/survey/static/src/question_page/description_page_field.xml @@ -12,6 +12,11 @@ + + + + + diff --git a/addons/survey/static/src/scss/survey_survey_views.scss b/addons/survey/static/src/scss/survey_survey_views.scss index b2f11c55deb..204f40971e1 100644 --- a/addons/survey/static/src/scss/survey_survey_views.scss +++ b/addons/survey/static/src/scss/survey_survey_views.scss @@ -142,6 +142,14 @@ background: transparent; } } +.o_survey_form table.o_section_list_view tr.o_data_row.o_is_section { + &:hover i { + visibility: visible; + } + &:not(:hover) i { + visibility: hidden; + } +} // TOOLS .icon_rotates {