summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorOdoo's Mergebot <xmo+roboto@odoo.com>2020-03-12 10:24:33 +0100
committerGitHub <noreply@github.com>2020-03-12 10:24:33 +0100
commit616c3fdb8ce6a202fc84b99bcc2a20999d26da8d (patch)
treeeceded78ce73a37ed5a54c818d05c6c722fd5ec1 /addons/web/static/src
parentcd4b50de6f5a6bfa063b2d8268cb8bc58c6a74f6 (diff)
parent3aaefe74a16979506c991c97de1a9f91315c3389 (diff)
[MERGE][IMP] website_[sale_]slides: allow users to take the slide quiz before joining the course
PURPOSE When previewing a slide of type 'quiz', users are tempted to answer the questions even if they are not member of the course yet. This commit will allow users to answer the quiz without being a member of the course, and offer a smart redirection to join / buy based on the enroll type of the channel. SPECIFICATIONS We introduce a "CourseJoinWidget" that will handle the display and the behavior of the "join" button based on the user (public or not) and the enroll type (public course or based on a payment). When the user answers questions and he's not a member yet, we store the answers temporarily in the session object. When he comes back on the quiz page after having completed his membership, we fill in the quiz based on his previously entered answers and clean the session. LINKS Task 2045571 closes odoo/odoo#41972 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions