-
- Downloads
[MERGE] website_slides: apply various fixes
PURPOSE Purpose of this merge is to provide fixes and usability fixes or improvements in eLearning. SPECIFICATIONS Improve "New content" modal: upload new course content should be revamped ------------------------------------------------------------------------- * general layout: https://drive.google.com/a/odoo.com/file/d/1zbNO0Vg1262ijkXA6pwSuenMI0h4NsPm/view?usp=drivesdk * remove picture tab; * display as two column with preview on right on change of picture or document; Do not put odoobot responsible of demo courses ---------------------------------------------- Do not crash if there is any issue loading quiz ----------------------------------------------- Do not allow fullscreen to bypass ACLs -------------------------------------- Currently fullscreen takes all information from categorized slides to display its menu. In order to avoid calls to server some information is prepared in DOM to speedup loading. It means slide information is available even when not being member of a course which leads to some content leak. This merge fixes that by correctly checking that a slide can be accessed before allowing to have access to its information and embedded code. Access of a slide is either member of a course, either course publisher. Correctly set sequence of newly added content --------------------------------------------- Purpose of this commit is to add new content at last position in frontend. Indeed backend uses last position in embedded list view, frontend should do the same. Moreover when having a lot of content, having everything at the bottom of the screen at the same position of Add content / section buttons makes sens. Specifications * when adding a new category: add it as last category; * when adding a new slide in a category: add it as last slide of the category; Specific case of slide without category * when adding a new slide without category: add it as last slide of the channel (display it as last) but keep it on top in backend view (display as first); Improve content list display in frontend of eLearning * contents without section are now at the bottom; * fixed alignment of buttons icon (Add Content and Add Section) * fixed broken design because of title too long LINKS Task 2049640 (website slides back2basics and fiximp) Task 2058595 (eLearning v13 testing) Task 2064112 (fullscreen bug report) Task 2061672 (new content bug report) Improve backend UI, views and user actions ------------------------------------------ Containing * channel kanban view tweaking; * channel form view: some spacing and renaming improvements. Also set advanced field (new content email, share template) as group no one; * slide kanban view tweaking; * removed sections from kanban and list view for contents; * contents form view: various improvements, with notably * removed field website_url; * set publishded date is now readonly, tracked and in group_no_one as it is automatically set when publishing the lesson, and people should not update it manually; * removed the sum "Content" and replaced it by a stat button * reword quiz constraint error messages; * rating views improvements: * revamped the kanban view of rating that were a bit broken; * added a pivot view in Reporting/Reviews; * updated graph view in Reporting/Reviews; This commit also provides some usability fixes * prevent sending email if new content is category; * email: Prevent displaying an image if there is no image; Fixes some display issues in eLearning frontend ----------------------------------------------- * fix the share button in documentation. It was not working as model was not correctly placed; * fix top3 users banners broken in mobile; * fix left menu of fullscreen being behind content on mobile (image, video); * removed upload button in training channel aside as there are already buttons available for that purpose; Revamp "New Course" menu ------------------------ Purpose of this commit is to change the modal to make it more mobile friendly. Notably remove the two columns. Allow website publisher to create forum --------------------------------------- Security file was buggy and not imported. closes odoo/odoo#36348 Signed-off-by:Thibault Delavallee (tde) <tde@openerp.com>
Showing
- addons/website_sale_slides/models/slide_channel.py 2 additions, 1 deletionaddons/website_sale_slides/models/slide_channel.py
- addons/website_sale_slides/views/slide_channel_views.xml 2 additions, 1 deletionaddons/website_sale_slides/views/slide_channel_views.xml
- addons/website_slides/controllers/main.py 3 additions, 0 deletionsaddons/website_slides/controllers/main.py
- addons/website_slides/data/mail_data.xml 2 additions, 0 deletionsaddons/website_slides/data/mail_data.xml
- addons/website_slides/data/slide_channel_demo.xml 7 additions, 0 deletionsaddons/website_slides/data/slide_channel_demo.xml
- addons/website_slides/models/slide_channel.py 16 additions, 16 deletionsaddons/website_slides/models/slide_channel.py
- addons/website_slides/models/slide_question.py 3 additions, 3 deletionsaddons/website_slides/models/slide_question.py
- addons/website_slides/models/slide_slide.py 12 additions, 6 deletionsaddons/website_slides/models/slide_slide.py
- addons/website_slides/static/src/js/slides_course_fullscreen_player.js 7 additions, 5 deletions...e_slides/static/src/js/slides_course_fullscreen_player.js
- addons/website_slides/static/src/js/slides_course_quiz.js 7 additions, 6 deletionsaddons/website_slides/static/src/js/slides_course_quiz.js
- addons/website_slides/static/src/js/slides_upload.js 16 additions, 2 deletionsaddons/website_slides/static/src/js/slides_upload.js
- addons/website_slides/static/src/scss/rating_rating_views.scss 4 additions, 0 deletions...s/website_slides/static/src/scss/rating_rating_views.scss
- addons/website_slides/static/src/scss/slide_channel_views.scss 0 additions, 7 deletions...s/website_slides/static/src/scss/slide_channel_views.scss
- addons/website_slides/static/src/scss/slide_views.scss 9 additions, 1 deletionaddons/website_slides/static/src/scss/slide_views.scss
- addons/website_slides/static/src/scss/slides_slide_fullscreen.scss 1 addition, 0 deletions...bsite_slides/static/src/scss/slides_slide_fullscreen.scss
- addons/website_slides/static/src/xml/website_slides_channel.xml 25 additions, 35 deletions.../website_slides/static/src/xml/website_slides_channel.xml
- addons/website_slides/static/src/xml/website_slides_upload.xml 45 additions, 60 deletions...s/website_slides/static/src/xml/website_slides_upload.xml
- addons/website_slides/tests/tours/slides_tour_tools.js 2 additions, 2 deletionsaddons/website_slides/tests/tours/slides_tour_tools.js
- addons/website_slides/views/assets.xml 1 addition, 2 deletionsaddons/website_slides/views/assets.xml
- addons/website_slides/views/rating_rating_views.xml 47 additions, 17 deletionsaddons/website_slides/views/rating_rating_views.xml
Loading
Please register or sign in to comment