Skip to content
Snippets Groups Projects
Commit 3393dd00 authored by Jérome Maes's avatar Jérome Maes Committed by Thibault Delavallée
Browse files

[REF] website_slides: redesign quiz widget


This commit makes the quiz widget a real odoo widget that triggers up some
events. The widget is now only responsible of

 * fetching quiz data (if not given)
 * decorating the anwsers according to the result
 * displaying message (error or modal)

To do so, some code move/rewrite was needed

 * extract and factorize some template
 * add 'sudo' on technical model to avoid access rights error
 * factorize some python method from controller to model
 * remove some CSS classes to lighten the code
 * fixing access model error
 * make quiz widget handle the display of error message
 * give browse record for template rendering, rather than slug
 * cleaning some spaghetti code in Fullscreen widget
 * ...

Commit linked to task ID 1941250 and PR #31584.

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent f029bf71
No related branches found
No related tags found
No related merge requests found
Showing
with 694 additions and 652 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment