summaryrefslogtreecommitdiff
path: root/addons/website_slides/static/src
AgeCommit message (Collapse)Author
2019-08-20[FIX] website_slides: adapt youtube api widget to promiseLucas Perais (lpe)
Before this commit, the adaptation of Deferred to Promise was not well done Hence, the change in video playing status was not handled correclty i.e. When a video arrives to its end, the next slide or the questions should be displayed After this commit, when a video is finished, the next slides is displayed OPW 2052971 closes odoo/odoo#35863 Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-08-12[FIX] website_{portal, rating, slides): fix navigation tabs colormcm-odoo
Text colors were white on a white background which can be difficult to read in some extreme cases. Sort of. Task 2026846
2019-08-09[FIX] website_slides: fix quiz completion blocking users in fullscreenasa-odoo
Once a quiz is completed in elearning fullscreen view a pop-up is displayed. Due to z-index it makes a black overlay on full-screen, so that we can not click anywhere on the screen. In this commit we update z-index value fix the issue and make screen clickable. Website menu is also still clickable. Task: 2044221
2019-07-24[MERGE] Forward port of saas-12.2 to saas-12.3 up to 860ab5a1c28baMartin Trigaux
closes odoo/odoo#35119 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-23[FIX] website_slides: fix webiste menu being not clickable in lesson fullscreenJuhil Somaiya
Before this commit, the navigation menu was not clickable because of higher z-index of the slides fullscreen menu. This commit fixes that by correctly setting z-index, using the standard variable to avoid custom values. task-2036877 closes odoo/odoo#35107 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-07-12[MERGE] Forwardport of saas-12.2 to saas-12.3 up to 01365a3f625c9e7Martin Trigaux
closes odoo/odoo#34747 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-11[FIX] website_slides: Display button when not in fullscreenLucas Lefèvre
When answering a quiz, the button "Check your answers" is not displayed when not in fullscreen. JS error: `def.resolve is not a function` because an already instantiated Promise does not have a resolve function. A promise cannot be resolved from outside its callback scope. closes odoo/odoo#34762 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-07-09[FIX] website_slides: fix typo in enroll attributeJulien Castiaux
opw-2032459 closes odoo/odoo#34686 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-06-27[MERGE] forward port branch saas-12.2 up to 465909f0fdeChristophe Simonis
2019-06-24[IMP] website(_sale)_slides: Add login,join,buy button on quizqmo-odoo
This commit improves the elearning onboarding on the quizzes If the user is not logged in, a log in button will show up under the quiz If he is logged in but not a member of the course and the course is public, a join button will appear under the quiz If the course needs to be bought, a buy button will appear under the quiz. If the course is on invite only, a message under the quiz will inform the user about it TaskID: 2003986 PR: #33861 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-06-21[MERGE] forward port branch saas-12.2 up to 8747d72f1efChristophe Simonis
2019-06-18[FIX] website_slides: fix various issues to eLearning platformPatrick Hoste
Including * change h4 to h1 on the slide page; * add the rel='canonical' link header on the fullscreen view in order to improve SEO and links; * add space between quiz questions; * remove social share statistics as they are broken and not really useful; * moved tabs before the Quiz on the slide page; * allow to modify slide in backend by removing some readonly attributes; Linked to task ID 2010024 Related to PR #34176 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-06-17[FIX] website_slides: don't show sidebar, mobilesri-odoo
On mobile, don't show automatically the sidebar in order to avoid covering the lesson's content. The user will have to click on the toggle button to open it. part of: https://github.com/odoo/odoo/pull/34151
2019-06-14[MERGE] forward port branch saas-12.2 up to 498b4b4350dChristophe Simonis
2019-06-12[FIX] website_slides: design, questions marginssri-odoo
Slightly increase margins between questions in a test. closes odoo/odoo#34055 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-06-03[MERGE] forward port branch saas-12.2 up to 995aa1685eeChristophe Simonis
2019-05-13[MERGE] forward port branch saas-12.2 up to 243a4ae5cbcChristophe Simonis
2019-05-06[MERGE] forward port branch saas-12.2 up to 78b3b650b0dChristophe Simonis
2019-05-03[FIX] website_slides: fix various quiz issuesqmo-odoo
This commit fixes a few issues with quizz * change background-color to white in fullscreen mode; * prevent going up to the top of the page when selecting an answer; * highlight selected answers in fullscreen; * fix the display of already completed quizzes Commit linked to task ID 1978530 (fixes linked to internal testing). closes odoo/odoo#33140 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-05-03[FIX] website_slides: fix the end course buttonqmo-odoo
This commit fixes the "End Course" button displayed after successfully passing a quizz. Before this commit, the button didn't do anything, now, it redirects to the slides homepage. ommit linked to task ID 1978530 (fixes linked to internal testing). closes odoo/odoo#33133 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-05-03[FIX] website_slides: fix join course widget selectorqmo-odoo
This commit fixes the selector for the slide_course_join widget. This issue comes from the removal of the selector 'o_wslides_wrap' recently removed when cleaning the DOM [1]. Commit linked to task ID 1978530 (fixes linked to internal testing). [1] See e5c7e43c71aa2794831fc6d91430dca44a99ab1d
2019-05-29[FIX] website_slides: propose to signup instead of loginThibault Delavallée
When joining a course of liking a slide if the user is not logged there is a popover asking him to login. If auth signup allows user creation link instead redirects to signup instead of login to save a click and improve onboarding. closes odoo/odoo#33755 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-05-06[FIX] website_slides: Remove read access on slide.answerqmo-odoo
This commit removes the read access on slide.answer for all users except website_publisher and admin Task: #1947884 PR: #32083 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-05-06[FIX] website_slides: Fix displayed rewards on quizqmo-odoo
This commit fixes the amount of point gained in a quiz. The amount of point displayed on the quiz was the number you would gain on the next attempt instead of the actual amount you gained when passing it. This was due to the usage of the wrong variable. Task: #1947884 PR: #32083
2019-04-23[IMP] website_slides: reduce bootstrap customization and improve circular ↵sri-odoo
progress design Purpose: reduce some customization and ease eLearning link with themes. For that purpose use the body class name propagation recently added. Linked to task 1958372 Related to PR #32648
2019-03-21[FIX] website_slides: remove reference to google+ in lesson statistics updateThibault Delavallée
Let us consider this great social network is not necessary anymore. Commit linked to task ID 1941250 and PR #31977
2019-03-21[FIX] website_slides: fix various quiz-related issuesqmo-odoo
This commit provides a few fixes for quiz feature: * fix amount of karma won by the user in a quiz; * correctly display the fact that a subquiz was completed by the user instead of just looking like a non-completed quiz; * going on a previously completed quiz, good answers are hightlighted and inputs disabled; * effectively put the quiz in readonly mode if not a channel member. Commit linked to task ID 1941250 and PR #31977
2019-03-21[FIX] website_slides[_survey]: fix various fullscreen issuesqmo-odoo
This commit provides a few fixes for the fullscreen view: * make external links associated with a slide clickable again in fullscreen mode; * hide completion icons if not member: * add margin to subquiz icon in header; * add dedicated button to exit the fullscreen mode; * change "Pass certification" button to "Test Certification" if not member of the channel (for website publishers); Commit linked to task ID 1941250 and PR #31977
2019-03-21[FIX] websiste_slides: perform small tweaks on elearning homepagesri-odoo
In Top menu, replace 'My courses' with 'Search' and adapt responsivness for small devices. Truncate card's description and perform minors design tweaks. Also add some slides-specific layouting to email validation banner. Commit linked to task ID 1941250 and PR #31977
2019-03-21[FIX] website_slides: improve documentation course layout and not fullscreen ↵sri-odoo
lesson page Purpose of this commit is to perform a cleaning of * documentation course: add a new specific navigation for documentation course with a sort option and filters on slide types; clean overall layout of documentation course to have a better-looking result as this page was still not really updated; * lesson not fullscreen page: global layout and cleaning of not-fullscreen page to have a better-looking result. Notably related slides for documentation slide is set on right, and some UX bits are tweakes; Commit linked to task ID 1941250 and PR #31977
2019-03-21[FIX] website_slides: improve upload modal overall designsri-odoo
Commit linked to task ID 1941250 and PR #31977
2019-03-21[FIX] website_slides: improve quiz and its success modal layout and designsri-odoo
Commit linked to task ID 1941250 and PR #31977
2019-03-21[REF] website_slides: cleanup scss ordering, remove unused classes, add ↵Thibault Delavallée
placeholder images Commit linked to task ID 1941250 and PR #31977
2019-03-21[FIX] website_slides: improve course overall layout and training content listsri-odoo
Purpose of this commit is to improve the global look of course layout (notably banner, navigation, course / channel informations). Content list layout displayed in training (orderable) is also tweaked and improved. Commit linked to task ID 1941250 and PR #31977
2019-03-21[FIX] website_slides: fix course navigation designsri-odoo
Commit linked to task ID 1941250 and PR #31977
2019-03-21[FIX] website_slides: fix various fullscreen layout issuessri-odoo
Improve overall widget layout, perform some small tweaks. Also remove top title as it is not wanted. Commit linked to task ID 1941250 and PR #31977
2019-03-19[REF-FIX] website_slides : review and fix access, vote, comment and ratingDavid Beguin
Commit 5798ca28bfa1dc082fedff5e68ab3f7eb6236687 was assuming the vote and comment access on slide was related to is_preview mode and was, consequently, depending on each slide separately. In fact, it's not because a slide is in preview mode that the user has the right to vote for this slide. He must be course member to interact with this preview slide, even if he has the right to read it. So the vote and comment right are now computed at the level of the course, and apply to all the slides of this course. This commit also reviews and apply fixes on review - rating access. Here are the applied rules regarding vote, comment and rating on course and slides: A user can review a course: - If allow_comment is activated on the course AND - If the user is publisher OR - If the user has enough karma AND is member of the course. Note : if the rating is not allowed on the course, not only the button to review must be hidden but also the entire rating composer. A user can vote and comment a slide: - If allow_comment is activated on the course AND - If the user is publisher OR - If the user has enough karma AND is member of the course. Other fix applied is this commit : - Avoid crash when no promoted slide : When going on course homepage (documentation type), if no promoted slide, we got a internal server error. Task ID: 1941250 Partial revert of commit 5798ca28bfa1dc082fedff5e68ab3f7eb6236687 PR #31567
2019-03-15[FIX] website_slides: auto set done successfull quizzjem-odoo
For now, in no fullscreen mode, if the quiz is succeed, the user progress is not updated because the quiz is not set to done. This commit implements this call to mark slide as done and green the check bullet. We decided to unify the submit RPC call with the done one, so a quiz (or a slide with questions) can only be done when submitting answers. As consequence, we need to prevent some slide type to use the /set_completed route (quiz and certif). Task-1941250
2019-03-15[IMP] website_slides: embedded player restylingsri-odoo
The style and DOM structure of the embeded player (used to display PDF file) is old, and it needed a little refresh to be adapt to bootstrap4 and modern styling. Task-1941250
2019-03-15[FIX] website_slides: styling fullscreen modesri-odoo
Since the fullscreen widget has been revamped, it needed to be pixel perfect. This commit cleans the CSS and DOM structure in order to optimize and sublime it. Task-1941250
2019-03-15[IMP] website_slides : improve get slide access computationDavid Beguin
As slides are returned in sudo to the template, the user rights were checked via a can_access variable set in the template directly. In order to disable the vote for user that cannot get access to the course all the checks are now done in backend (also to avoid to get access to slides in sudo mode with rpc calls). We add now, for each slide on the course view, the access and vote rights to the template : can_access and can_vote. Those two are computed in backend, using the user's access right instead of admin's. But, as if the user is not member of the channel, he cannot get access to the course slides (expect for Free Peview ones), so the check on can_vote will crash. This is why we check the access rights before checking can_vote, for each slides (as free preview slides are still accessible, even if the user is not in channel members). The vote widget is disabled if user's can_access or can_vote = False, enabled otherwise. If user have access but have not enough karma, the controller will handle this case and return an error to the user telling him he has not enough karma to vote. If user can vote but cannot access, the controller will handle this case and return an error to the user telling him he has no access to the lesson. Task ID: 1943788 PR #31321
2019-03-15[IMP] website_slides : allow review, comment and vote only if enough karmaDavid Beguin
To avoid eLearning to be spammed, the comment, review and vote behaviours are now allowed only if the user has enough karma to do it. Here is the new behaviour on courses and slides rating / comment / vote -If allow_comment is checked on Course : - Review (rating) is allowed on Course only if enough karma - Comment is allowed on slides within the course only if enough karma and course type is 'training' - Vote is allowed on slides within the course only if enough karma and course type is 'documentation' -If allow_comment is not checked on Course : - Review (rating) is not allowed on Course - Comment is not allowed on slides within the course - Vote is not allowed on slides within the course - Rating is not allowed on slides within the course anymore Task ID : 1943788 PR #31321
2019-03-12[FIX] website_slides: no completion for public userqmo-odoo
When a slide is seen by user, it should be marked as completed (according to its type), and the user completion for the course is updated. But for public user, we don't want those RPC calls to be done, as completion for visitor makes no sense. This commit also hide progressbar when current user is public. Task-1942852 closes odoo/odoo#31700 Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
2019-03-12[REF] website_slides: revamp fullscreen widgetqmo-odoo
This commit makes the 'Fullscreen' page a complete odoo widgets. We decided to split it into some sub widget: - Fullscreen: will be the master piece, handle communication of components, displaying slide content, setting slide as completed, handling server RPC calls, .... - Sidebar: responsible for slide navigation, based on the table of content. (prev, next, keyboard naviguation, ...) - VideoPlayer: display content for Youtube video and handling player event to auto set as completed, ... The DOM of this page is still rendered serverside. DOM was cleaned in order to be less complex and less deep. CSS style was also reviewed to decrease line of code. Fullscreen is now completely using Quiz widget with events triggered. Task-1942852
2019-03-07[REF] website_slides: rework standard lesson page viewThibault Delavallée
Purpose of this commit is to perform a cleaning and upgrade of the lesson view in front-end when not using the fullscreen mode. This page had not been updated since eLearning addition. A method is added on slide model to have a protected method computing quiz related information on a given set of slides, notably potential karma gain, gained karma and number of attempts. It is mainly a code move from controllers now working in batch. Some linting is also done, notably a badly-named file. See original eLearning task for main specifications [1]. Commit linked to task ID 1941250 and PR #31657. [1] See task ID 1902304 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-03-07[REF] website_slides: redesign quiz widgetjem-odoo
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: Thibault Delavallee (tde) <tde@openerp.com>
2019-03-07[FIX] website_slides: correctly return deferred when calling slide routes in ↵Thibault Delavallée
fullscreen I promise to fix all deferred. Huk huk huk. Commit linked to task ID 1941250 and PR #31584.
2019-03-04[FIX] website_slides: fix display of lessons in training courseThibault Delavallée
Currently slides are displayed in a reorderable list, using current user access rights. This means external customers see only published and free lessons. However purpose of course page is to display all lessons, and display only available ones as clickable. Other one should be displayed as muted to tease people. Note that a specific lesson page does check for access rights. Here we just display all lessons names. A label for free preview is also added. Fetch of data when displaying a channel is therefore a bit modified as there are less differences between training and documentation channels. User progress is also updated to be easier to use in templates. Commit linked to task ID 1941250 and PR #31453
2019-03-04[IMP] website_slides: slightly improve homepageStefano Rigano
Purpose of this commit is to make a new design linting pass on homepage. Containing * various bs4 and responsive improvements; * footer banner improvements; Commit linked to task ID 1941250 and PR #31453
2019-03-04[REF] website_profile and dependencies: improve global layout and designsri-odoo
Purpose is to perform a cleaning pass on website_profile templates. It cleans the DOM, templates and CSS and proposes various improvements on general design and layouting. This includes notably * lessen custom CSS and use bootstrap 4 classes; * simplify layout when possible; * make is responsive and mobile friendly; No functional changes should occur with this commit. Sub modules are impacted as profile is extended in various other applications: eLearning, forum and certification. Commit linked to task ID 1941250 and PR #31453