-
- Downloads
[IMP] survey: improve survey form navigation
This commit slightly changes the way users navigate through the survey form: - The back button was moved to the bottom-right of the screen. - The "Continue" button stays at the center but there is also a "next" button at the bottom-right of the screen (same behavior -> submits the form) - Arrow keys (left + right) navigation is now supported Technical note: As the survey navigation is now outside of the survey content, that was re-rendered on every submit, we have to manually refresh the navigation with a second template render on the controller side. LINKS PR #46768 Task 2208574
Showing
- addons/survey/controllers/main.py 8 additions, 4 deletionsaddons/survey/controllers/main.py
- addons/survey/models/survey_survey.py 24 additions, 0 deletionsaddons/survey/models/survey_survey.py
- addons/survey/static/src/js/survey_form.js 28 additions, 7 deletionsaddons/survey/static/src/js/survey_form.js
- addons/survey/static/src/scss/survey_form.scss 4 additions, 0 deletionsaddons/survey/static/src/scss/survey_form.scss
- addons/survey/views/survey_templates.xml 3 additions, 12 deletionsaddons/survey/views/survey_templates.xml
- addons/survey/views/survey_templates_management.xml 11 additions, 0 deletionsaddons/survey/views/survey_templates_management.xml
Loading
Please register or sign in to comment