summaryrefslogtreecommitdiff
path: root/addons/website_slides/static/src
AgeCommit message (Collapse)Author
2021-05-19[FIX] website_slides: close fullscreen mode when opening web editorAurélien Warnon
The web editor does not work well with the e-learning fullscreen view. It actually completely closes the fullscreen view and opens the edition on a blank page. To avoid this, we intercept the click on the 'edit' button and redirect to the non-fullscreen view of this slide with the editor enabled, whose layout is more suited to edit in-place anyway. A small testing tour was added to ensure this behavior is kept. Task-2507179 closes odoo/odoo#70606 X-original-commit: dcb6a3cea27f32d722d1a8dc87c34a846cf5ac23 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Signed-off-by: awa-odoo <awa-odoo@users.noreply.github.com>
2021-05-04[FIX] website_slides: correctly shows 0 XP on completed unpublished quizPhilémon van Helden
In 13.0 and above, when looking at a quiz that was completed while not published, it would incorrectly show 2 XP awarded, when 0 XP should be awarded. With this commit, we show instead the correct 0 XP awarded. opw-2480343 closes odoo/odoo#70333 X-original-commit: 26f047633b919bd8f2a260305bfd80e15bf259b6 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2020-12-29[FIX] website_slides: Complete courses with videoAchraf (abz)
What are the steps to reproduce your issue ? 1. Install ELearning 2. Create a course 3. Add a video from youtube 4. Attempt to do the course from a user that is invited What is currently happening ? You cannot complete a video (turn the checkmark green) if there is not a quiz. Therefore you cannot complete the course What are you expecting to happen ? Turn the checkmark green to signify that video is completed after watching the video and then have the ability to complete the course Why is this happening ? Because of this commit https://github.com/odoo/odoo/pull/61581/files that changes 'youtube.com' to 'youtube-nocookie.com' How to fix the bug ? Remove host opw-2418545 closes odoo/odoo#63871 X-original-commit: 484957caf89e0f324dffda6f2ac0a1ca543b969b Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by: Achraf <abz-odoo@users.noreply.github.com>
2020-12-03[IMP] website_slides: add zoom controls, and set default zoomNicolas Galler
- use a default scale when the viewer is shown, to fit the document to the available space - avoid using CSS scaling on the canvas, as this makes the output blurry - add some zoom controls in the viewer - fix CSS class for icon on the full-screen toggle (this toggle was previously not displayed because of it) - move download button left (to avoid overlapping with "Chat with Us" box on odoo.com) opw-2389716 closes odoo/odoo#62637 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2020-11-16[FIX] *: rephrase, correct typosMartin Trigaux
Courtesy of Transifex's translators for reporting bad/unclear sentences. closes odoo/odoo#61785 Related: odoo/enterprise#14751 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-11-02[FIX] mail: backport fix from the required field PRDidier (did)
https://github.com/odoo/enterprise/pull/13883 task-2323665 closes odoo/odoo#60948 Related: odoo/enterprise#14468 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-10-29[FIX] *: correct typos and bad EnglishMartin Trigaux
Courtesy of translators Reexport .pot of modified modules closes odoo/odoo#61002 Related: odoo/enterprise#14485 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-22[FIX] website_slides: correctly close subscription modal when savingAurélien Warnon
This commit fixes a small issue with the modal displayed when the user wants to manage his subscription to a course. When pressing the "Save" button, if no modification was made, the modal would not close and nothing would happen (which seems strange on a user POV). Now the modal correctly destroys itself and closes. Task 2363028 closes odoo/odoo#60504 X-original-commit: 32d0b1086b5db6c58c1e2891d8d77fafb9482de9 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-10-15[FIX] mail, website_slides: fix while accept the request from the new attendeeHiral Bhavsar
Before this commit: We have a new feature that if the course is private, and attendee make the request to access the course it will create an activity for 'course responsible'. Currently, after accepting the invitation request from the new user, it is still not considered the user as an attendee and not displaying like 'You're enrolled' to the respective users After this commit: The features of access invitation on courses will be workable. Task-2328389 closes odoo/odoo#59504 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-07[FIX] website_slides: fix concurrency tracebackSiddarth Gajjar
- Prior to this commit, slide content of type document or presentation is having src as '/slides/embed' and that controller tries to set slide as viewed. Along with this, for few slide types (including document and presentation) and for logged in user, it will try to set slide as completed once slide rendering is done with help of method `_setCompleted`, without waiting for the iframe to be loaded. This means, the controller called from the src of iFrame and the above method both tries to update same 'slide_slide' table at the same time, resulting into concurrency error. - This commit fixes the issue by marking the slide as completed (with help of method `_setCompleted`) only after the iFrame is loaded, avoiding the concurrent updation of 'slide.slide' table. TaskID 2265863 Closes https://github.com/odoo/odoo/pull/52918 closes odoo/odoo#59382 X-original-commit: c5f406c8cbf43c56939cee054f9b911fe3933b3b Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-09-23[FIX] website_slides: hide the website default header in fullscreenstd-odoo
Bug === You can enter in a fullscreen mode in the frontend, of the slide channel. In this view, the default website header should not be visible. To do that, we play with z-index, but since 0f2cab4aebcc33ca9e278c9395fed2cc8934ed38 , the z-index of the website header has been changed without changing the z-index of the fullscreen view. Task-2345016 closes odoo/odoo#58284 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-10[FIX] website: replacement linkedin share link by the 2020 versionFrancois (fge)
closes odoo/odoo#55044 Related: odoo/enterprise#12064 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-11[IMP] website_slides: add tour to ease the user with the elearning modulePatrick Hoste
2020-08-11[REF] website(_sale)_slides(_survey): improve course management and creationPatrick Hoste
PURPOSE Improve usability of course creation and management in frontend SPECIFICATIONS This commit improves various elements of the eLearning module: * the create 'new course' dialog has been improved with examples and improved placeholders; * allow to create tags directly from course creation modal. Using the add tag button after having created the course is not the only way of managing tags anymore; * the create 'new content' dialog has some explanations on the right side; * add a flag indicating which content has already been viewed in documentation; * changes the text/color of some buttons; LINKS Task ID-2241513 PR #55698
2020-08-11[REF] website_slides: improve course frontend pagePatrick Hoste
PURPOSE Improve onboarding and user experience and course frontend SPECIFICATIONS Overall improvements and onboarding : * new and improved default images for both course types; * preview / free preview badge update; * copy writing and spacing update; * allow to specifically choose a slide to promote. Display promoted slide is not optional anymore as configured in backend; * display a sample of lessons if no lesson in a course; LINKS Task ID-2241513 PR #55698
2020-08-06[REF] website_slides: remove unused templatePatrick Hoste
PURPOSE Remove an unused template that was never called. Let us clean it. LINKS Task ID-2241513 (eLearning onboarding and testing) PR #55567 closes odoo/odoo#55583 X-original-commit: 0f160586afdf139781049fd95c8c56e80c5522da Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-07-28[FIX] website_slides: Traceback when no link provided for videoNasreddin (bon)
Issue Traceback raised in case no link provided when content type is a video. Solution Format url only if provided. Note: also fix issue with scheme (embedCode src could start with //) Related fix : https://github.com/odoo/odoo/pull/54536 opw-2294344 closes odoo/odoo#55079 X-original-commit: 49a18eec21bad3d193804a3aa630e453b85318e9 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2020-07-22[FIX] website_slides: Google drive video not startingNasreddin (bon)
Issue - Install "eLearning" app - Add video to course - Open video course in fullscreen mode 1. Google drive error message 2. Video still loading Cause 1. The base google drive video url has no params, and when adding params, missing the "?" before them. 2. 'autoplay' param make crash the launcher. Solution 1. Use URL javascript library to append params. 2. Let "autoplay" param only for non google drive video. opw-2294344 closes odoo/odoo#54793 X-original-commit: 6da17c3ee1e0c63b0cace60da2f98cfc4fe8ac57 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>
2020-07-07[FIX] website_slides: fix video not loaded in fullscreen web contentjvm-odoo
Issue - Create a content in a course with type "web page" - Access it frontend and add a "text - image" block, edit the image as a video - save - The video is displayed correctly - Go into full-screen The video is not displayed at all. Cause The content is added after the page and page widgets are started Solution Trigger the widgets start method OPW-2290233 closes odoo/odoo#54190 X-original-commit: 0f93240e4979479ab281ca49e8703b325c4b83f0 Signed-off-by: Jason Van Malder (jvm) <jvm@odoo.com>
2020-06-15[REF] mail, *: refactor messaging with OWLSébastien Theys
This commit is a significant rewriting of client-side discuss, chatter, chat window, and messaging menu using OWL. The behavior should be broadly the same, with some slight functional changes here and there. From a technical standpoint, the code of messaging is mainly organized in 2 main groups of modules: - models, which are logical entities that depict the client-side state of messaging as a whole. - components, which are in charge of displaying information from models. This refactoring also introduces new JS guidelines regarding folder structure (/static) and naming rules for JS modules. Community PR: https://github.com/odoo/odoo/pull/39023 Enterprise PR: https://github.com/odoo/enterprise/pull/6249 Task-1914207 This PR is a collaborative work by Alexandre, Julien, Sébastien and Xavier, with the precious help of Lucas to speed it up towards the end. closes odoo/odoo#39023 Related: odoo/enterprise#6249 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Co-authored-by: Alexandre Kühn <aku@odoo.com> Co-authored-by: Julien Giannone <jgi@odoo.com> Co-authored-by: Lucas Perais <lpe@odoo.com> Co-authored-by: Sébastien Theys <seb@odoo.com> Co-authored-by: Xavier Dubuc <xdu@odoo.com>
2020-06-12[IMP] *: update notifications to optional titleJulien Mougenot
closes odoo/odoo#52826 Related: odoo/enterprise#11084 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-06-08[IMP] website_slides: add possibility to request access to private coursePatrick Hoste
PURPOSE Before this commit, a user could not contact a course responsible to ask him to join. With this commit he is be able to do it. SPECIFICATIONS Change the message 'Contact website administrator' to 'Contact Responsible'. Add the name of the course responsible in the course description panel. When clicking on its name it opens a modal to request access to the course. It creates an activity linked to the customer and assigned to the responsible. When hovering the 'You're enrolled' button the fa-check icon changes to a fa-times icon to show that you can unsubscribe when clicking. LINKS Task ID : 2127364 PR : #40708
2020-04-16[IMP] website_slides: force duration to be positive in upload slide widgetDavid Beguin
To avoid user to set a negative duration on slide they upload using the upload widget, a min=0 has been added to the duration input of that widget. Task ID 1981399 PR #43577
2020-04-16[IMP] website_slides: lint and clean slide upload widget and controller codeDavid Beguin
This commit prepares the next ones from same PR and only clean the code of slide upload widget + website_slides controller. Task ID 1981399 PR #43577
2020-04-10[FIX] website_slides: Fix course publisher tour testNasreddin (bon)
There was 2 problems that caused the Publisher tour to fail: 1. The pointer on the main menu was pointing to a link containg "New Course" as text instead of "Course". 2. After selecting a picture (by clicking on it), the picture is automatically added and so no need to click on add button; had to remove this extra step. Task ID 2228922 closes odoo/odoo#49390 X-original-commit: b2f2c5e4ecfd6bf39ce0b2b724827202629231f1 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-03-26[FIX] website_slides: fix empty section flag display in frontendQuentin Mourier
Before this commit, empty sections were not flagged correctly whenever a slide got archived or dragged to another section. This is due to the empty flag is not updated accordingly. Taskid: 2090927 X-original-commit: 43f05c0b92cf24812187490fb326fb6cfd9ca021
2020-03-12[IMP] website_[sale_]slides: allow users to take the slide quiz before ↵Florent Lejoly
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 PR #41972 Co-authored-by: Florent Lejolyn <fle@odoo.com> Co-authored-by: Aurélien Warnon <awa@odoo.com>
2020-03-12[REF] website_slides: rename 'channel_management.xml' to 'slide_course_join.xml'Aurélien Warnon
This commit simply renames a template file to better reflect its purpose and also align with its JS widget file naming. It is a preparation commit for pending changes. Task 2045571 PR #41972
2020-03-09[FIX] website_slides: completly leave a channelMartin Trigaux
When leaving a channel, remove the earned karma in addition of the slides. This way, the user goes back in the same state as before completing the course. Add a message to clarify to the user the impact of leaving a course. Add a test to answer questions opw-2199066 closes odoo/odoo#47166 X-original-commit: a5e66d681ccd760c0af7bd0b179b5e42c76577ba Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-03-05[IMP] website_slides: Add color to course tagsTiffany Chang (tic)
This commit allows assignment and visibility of colors to course tags. In order to reuse existing code, the colors offered are the same colors used for Kanban tags. Visibility of these tag colors has been added to: - slide channel form view - individual course website - courses (not-filtered) website - user profile "about" page Note that visibility was purposely not added to: - Kanban view for courses since "no color" assigned tags are not shown in the kanban view by pre-existing design. - Filtered courses website since selected tag filters are already color highlighted to make selected tag filter(s) more obvious. Supports Task: 2128166 PR #44365 Upgrade PR: odoo/upgrade#862
2020-03-05[IMP] website_slides: Add course tags creation to frontendTiffany Chang (tic)
This commit makes it possible for course tags to be added via the frontend. To support this, course tags were also made viewable in a specific course's website since previously these tags were only visible in the courses frontpage (i.e. within the course cards). "Add Tag" is placed after course page's tags. Note that due to the ability to make new tags within this "Add Tag" modal restricts addition to only 1 tag at a time since new tags require a "Tap Group" to be assigned and handling a mix of new/existing tags would get confusing and complicated. Supports Task: 2128166 PR #44365
2020-03-05[IMP] website_slides: Update "Course Tag" UXTiffany Chang (tic)
Minor UX updates for clearer wording, better visuals, and more intuitive interface. Specifically: - update slide.channel.tag.group form view and related menu item - update css so 2nd line of course tags on main course page are not cut off Supports Task: 2128166 PR #44365
2020-02-12[IMP] website_slides: upload document doesn't rewrite title everytimeJérémy Hennecart
Before when you uploaded a document, the title was set to the filename even when the field was set by the user before. Now, the field title is set to the filename only when it is empty. task-2161391
2020-01-27[FIX] website_slides: fix ui for quiz creation and update on mobileJérémy Hennecart
Before, the buttons to save, cancel or update quiz in eLearning frontend as well as icons weren't displayed correctly. Now, all elements are displayed correctly on mobile or on computer, more responsive and better displayed. Task 2153990 PR #42846 closes odoo/odoo#43328 X-original-commit: 4d986beb7192c34c133d8d5d02ff62bd159f202a Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-01-23[FIX] website_slides: use image_1920 instead of invalid 'image' fieldFlorent Lejoly
Since the renaming of image fields to image_resolution (image_1920 in our case) slide upload widget is using invalid field. This commit adapt the field name to use the new naming (image_1920) instead. Task id: 2179219 PR #43663 closes odoo/odoo#43816 X-original-commit: 5991eb5b3ba9c6fb9426db235da7c8eb3821f0e1 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-01-16[IMP] website_slides,portal_rating: update UXTiffany Chang (tic)
Minor updates to improve user useability of website_slides primarily with clearer wording and more intuitive displays/display interactions. Primary purpose is for onboarding wow. Related to: closes odoo/odoo#42030 Task: 2070662 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-01-07[IMP] website_slides: adapt pdfjs 2.2.228Mohammed Shekha
Use window.pdfjsLib instead of window.PDFJS. PDF returned through getDocument() has _pdfInfo variable instead of pdfInfo. task-2124443 closes odoo/odoo#40917 Related: odoo/enterprise#6900 Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
2019-12-24[IMP] website_slides: allow to download slide content and additional resourcesPatrick Hoste
PURPOSE Currently eLearning lacks feature of having downloadable resources on lessons. Indeed for example teachers would like to attach zip files or other resources linked to a given lesson. SPECIFICATIONS You can now allow the user to download the slide content for pdf and image slides. A new icon will be visible next to the fullscreen button on the pdf viewer. Course maintainers can also add additional resources to a slide which will be available to download for the user. Task ID 2066741 PR #39890 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-12-24[IMP] website_slides: add comments on answers showed after answering a quizPatrick Hoste
PURPOSE : A quiz after a course content is a good way to check if the user gets the previous lesson. Despite, the user/student may not understand why his answer was wrong/correct. In this task we'll allow the teacher to add a comment next to the asnwer of a quiz. SPECIFICATION : The quiz creator will now be able to comment the answers to inform the frontend user why his answer is wrong/correct. He will be able to add the comments both in backend and frontend. Task ID : 2072566 PR : #41188 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-12-18[MOV/REF] website_slides: move quiz finish modal to its own dialog widgetPatrick Hoste
This commit moves the finished quiz modal into a dedicated dialog widget. It will lessen the "slide_course_quiz.js" code length and simplify the dialog template. Task ID : 2126621 PR : #40801 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-12-13[FIX] website_slides: fix cancel of uploaded fileFlorent Lejoly
Steps to reproduce * connect as any user with right to edit website; * go to website and chose a course; * add content -> chose any of the possibilities; * click on choose file, select a file and open it; * click on choose file again, and then cancel You get a traceback. This is due to the right panel that displays a preview of the selected file. IN this commit we fix that issue by removing the preview panel. Task id 2146217 PR#40895 closes odoo/odoo#41837 X-original-commit: e59b86e6474ae994307952d53f4e5a7571ac1763 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-12-10[FIX] website_slides: image no more availableJulien Castiaux
[Nighly Runbot #730241](http://runbot.odoo.com/runbot/build/730241) closes odoo/odoo#41571 Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2019-12-10[FIX] website_slides: move tours under /static/Julien Castiaux
All assets have to be loadable directly from the browser, /tests/ is not accessible, /static/ is.
2019-12-09[REV] web: reverts update to fontawesome 5.11.2Kevin Baptiste
This reverts commit ff1c35513aecef5fbc30f7c2f3834450e719714e. closes odoo/odoo#41480 X-original-commit: 116057b26e71db4692280463669f3e80d813ddcc Related: odoo/enterprise#7110 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-12-02[MOV] website_rating: move to portal_ratingThibault Delavallée
PURPOSE Clean posting process and improve mail.message definition and comprehension. Move as much possible content from website_* modules to portal_* modules to ease their use in customer portal SPECIFICATIONS Now that publish feature is replaced by internal directly in mail and portal rating portal inclusion can be done safely in a portal_ratign module instead of website_rating. It allows to remove the dependency and give the rating feature of customer chatter directly in portal applications. LINKS Task ID 2071556 PR #38692
2019-11-29[FIX] website_slides: Fix traceback when creating content in mobileqmo-odoo
This commit fixes the traceback that happens when we try to create a question from the survey form in mobile mode. The problem was due to the context not being propagated to the "add record" button that appears in mobile mode. Therefore, as we use that context in our widget, it crashes. The solution to this is to just use the normal tree view behavior instead of our override when we are in a mobile environment. LINKS closes odoo/odoo#41143 Taskid: 2071342 Pr: #40694 X-original-commit: 0dc7d956c59dfbece1f05e475c227affd51ce435 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-11-29[IMP] website_slides: allow to create and update quizzes directly in frontendHoste Patrick
Purpose is to ease designing your courses by allowing to create and update slide quiz directly in frontend, within the slide display. With this commit you are able to * add a quiz to a slide or add a question to an existing quiz; * edit an existing question from a quiz: * change the title of the Question; * add, remove or update answers; * change the right answer; * delete an existing question; * reorder the questions from a quiz; * reset the quiz for the current user if he is a website designer, allowing to test the quiz and its answers; New frontend widgets are introduced allowing to manipulate quiz. Slide page now supports a readonly / taking quiz mode and an edit mode for quizzes used notably for website designers / course maintainers. Task ID : 1999636 PR : #35326 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-11-28[IMP] web: update to fontawesome 4.7.0 to 5.11.2Kevin Baptiste
FontAwesome 5 introduced new names for some icons as described on https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4#name-changes This commit replaces the old names to the new ones. closes odoo/odoo#35826 Taskid: 2050241 Related: odoo/enterprise#5180 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-11-21[IMP] website_slide: add a card description independent from short descriptionFlorimond Husquinet (fhu)
The Channel model contains the two following fields: `description` and `description_html`. The former is a short plain-text description that can be filled in the creation form. The latter is a long html-formatted description. Before this commit: The description displayed on the card of the course is the `description` field. After this commit: There is an additional `description_short` field, which is initialized to the same value as the `description` field. If the `description` field is modified the `description_short` reflects the modifications. This happens however only if the user didn't modify the `description_short` field manually. If it is modified to another value manually, the link is broken. Description short is now used only on the course page, below title, in the header. Description short is used in kanban card displayed in homepage. Html description is used as a long course description on course page. Beside, in the creation form of a course, the description textarea is now a one-line input field to reflect the fact that it's supposed to be a relatively short description. Task ID: 2026165 PR #39388 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-11-20[IMP] website_slides: indicate new content on courses to userslaa
Purpose of this commit is to help users knowing there is new content in a course by adding a visual insight. It is done through a new content arrow displayed in courses homepage. Regarding the file "website_slides_templates_homepage.xml", the choice to incorporate the t-call attribute into a 't' balise was necessary to display the customize option (part front) associated with the model course_card. Side dish usability improvements raised during development * display completed courses as last instead of first in "my courses"; * do not show promote strategy field for training courses as it has no use, only for documentation courses; TASK ID 2025186 Closes PR #36703 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>