-
- Downloads
[IMP] survey : redesign frontend layout
In this commit, all the questions type have been redesigned to look more fancy. (impacted question types : radio and checkboxes, text boxes (textarea and text inputs, date and datetime inputs and matrix) For radio and checkboxes, both design have been aligned to work the same way (except checkboxes can still have more than one selected option). Selection by key have been applied on those two question types if the number of option is under 26 (to use all the alphabeat character for selection). This selection by key is only available on page per question layout. Tests have been adapted accordingly to the redesign (typically for choice and matrix inputs) * Progress Bar This commit adds a progress bar to the survey to inform the user where he is in the survey filling process. There are two progress modes: - Number : will display the number of the current page on the total number of pages (or questions if layout mode is question_per_page) - Percentage : will display the percentage of page or question already done So this leads to, on last page: - in Number mode : the progress bar div is 100% filled 3 / 3 pages [===] - in percentage mode : the progress bar is aligned to percentage 66% completed [== ] * Print Widget A widget is added for survey print mode in order to resize all textarea to fit their content, instead of showing a scroll bar. This can be usefull if user wants to print the results. He will get the entire content of the 'textarea answers' instead of only the two first lines. * Misc This commit also : - adds background image to survey. - redo quizz correction and add some data to illustrate non scored questions rendering in print template - review breadcrumb style Note : readonly data option on survey form widget is not set anywhere yet but the usage is done in prevention of the future work on presenter view for survey session mode. Task ID: '2150291' PR #43237
Showing
- addons/survey/controllers/main.py 37 additions, 16 deletionsaddons/survey/controllers/main.py
- addons/survey/data/survey_demo_certification.xml 1 addition, 0 deletionsaddons/survey/data/survey_demo_certification.xml
- addons/survey/data/survey_demo_quiz.xml 42 additions, 0 deletionsaddons/survey/data/survey_demo_quiz.xml
- addons/survey/models/survey_survey.py 5 additions, 0 deletionsaddons/survey/models/survey_survey.py
- addons/survey/static/src/img/survey_background.jpg 0 additions, 0 deletionsaddons/survey/static/src/img/survey_background.jpg
- addons/survey/static/src/img/survey_background_2.jpg 0 additions, 0 deletionsaddons/survey/static/src/img/survey_background_2.jpg
- addons/survey/static/src/js/survey_form.js 110 additions, 5 deletionsaddons/survey/static/src/js/survey_form.js
- addons/survey/static/src/js/survey_print.js 31 additions, 0 deletionsaddons/survey/static/src/js/survey_print.js
- addons/survey/static/src/scss/survey_form.scss 193 additions, 0 deletionsaddons/survey/static/src/scss/survey_form.scss
- addons/survey/static/src/scss/survey_templates.scss 0 additions, 28 deletionsaddons/survey/static/src/scss/survey_templates.scss
- addons/survey/static/src/xml/survey_breadcrumb_templates.xml 6 additions, 4 deletionsaddons/survey/static/src/xml/survey_breadcrumb_templates.xml
- addons/survey/static/tests/tours/certification_failure.js 12 additions, 12 deletionsaddons/survey/static/tests/tours/certification_failure.js
- addons/survey/static/tests/tours/certification_success.js 12 additions, 12 deletionsaddons/survey/static/tests/tours/certification_success.js
- addons/survey/static/tests/tours/survey.js 8 additions, 8 deletionsaddons/survey/static/tests/tours/survey.js
- addons/survey/static/tests/tours/survey_prefill.js 8 additions, 8 deletionsaddons/survey/static/tests/tours/survey_prefill.js
- addons/survey/views/assets.xml 3 additions, 1 deletionaddons/survey/views/assets.xml
- addons/survey/views/survey_survey_views.xml 2 additions, 0 deletionsaddons/survey/views/survey_survey_views.xml
- addons/survey/views/survey_templates.xml 217 additions, 88 deletionsaddons/survey/views/survey_templates.xml
- addons/survey/views/survey_templates_management.xml 1 addition, 1 deletionaddons/survey/views/survey_templates_management.xml
- addons/survey/views/survey_templates_print.xml 3 additions, 3 deletionsaddons/survey/views/survey_templates_print.xml
Loading
Please register or sign in to comment