diff options
| author | Odoo's Mergebot <xmo+roboto@odoo.com> | 2020-01-13 17:10:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-13 17:10:40 +0100 |
| commit | d188b4b01741b890e086ba0126aa950c48bab34e (patch) | |
| tree | 5e2dd6881312a4cb6fc5129c31099dbbe34ff20b /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | 94fd0624afc508bb46b9444ac232d313a200c168 (diff) | |
| parent | 4a7c84e6967af5f11cc0eaa0a7c1266d52f76304 (diff) | |
[MERGE][REF] survey: refactor survey page transition in ajax
Purpose
=======
To have a better UX, the transition between questions in a survey should not be done by loading another page, but by loading next questions in AJAX.
Specifications
===========
Do the transition in ajax, no more page loading:
- During submit, load and display next questions in a smooth transition (fade in / fade out).
- Include start and end screen of the survey inside the survey form (same process, load next screen in smooth transition)
- Integrate timer and start only after start survey.
- Integrate breadcrumb and handle manually (at frontend) transition about clickable / active / inactive breadcrumb item. Make the survey breadcrumb a widget to ease the navigation transitions and updates.
- Validate questions at frontend before sending data for submit. (to avoid fading out then fading in the same questions with error messages)
Also include some improvements and fixes :
- Save questions on time limit reached, to take into account unsubmitted answer (if user does not have time to click on submit)
- Block submit if survey has been already completed by the user.
- Do not use previous id on one page mode (fix)
- Remove display mode for simple choice question : that will prepare the next redesign of survey and allow to handle simple choice in a more standard way for all kind of question types.
See sub commit for more detail.
Task ID : 2152223
closes odoo/odoo#42908
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions
