summaryrefslogtreecommitdiff
path: root/addons/website_slides_survey
diff options
context:
space:
mode:
authorPatrick Hoste <pko@odoo.com>2020-08-11 09:44:55 +0000
committerThibault Delavallée <tde@odoo.com>2020-08-11 10:22:23 +0000
commitb39f4b6307e00f9f959d6f3bf36041344d13ace6 (patch)
treea44c230cd3d9eaeb38abf3c064bca73c827dc053 /addons/website_slides_survey
parent8d30e343b15eea4c2010bbb7491cbc61b0636952 (diff)
[REF] website(_sale)_slides(_survey): improve course management and creation
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
Diffstat (limited to 'addons/website_slides_survey')
-rw-r--r--addons/website_slides_survey/controllers/slides.py1
-rw-r--r--addons/website_slides_survey/static/src/xml/website_slide_upload.xml17
2 files changed, 7 insertions, 11 deletions
diff --git a/addons/website_slides_survey/controllers/slides.py b/addons/website_slides_survey/controllers/slides.py
index a810f878ba8..7653d8c229a 100644
--- a/addons/website_slides_survey/controllers/slides.py
+++ b/addons/website_slides_survey/controllers/slides.py
@@ -54,7 +54,6 @@ class WebsiteSlidesSurvey(WebsiteSlides):
# Create survey first as certification slide needs a survey_id (constraint)
post['survey_id'] = request.env['survey.survey'].create({
'title': post['survey']['title'],
- 'background_image': post['image_1920'],
'questions_layout': 'page_per_question',
'is_attempts_limited': True,
'attempts_limit': 1,
diff --git a/addons/website_slides_survey/static/src/xml/website_slide_upload.xml b/addons/website_slides_survey/static/src/xml/website_slide_upload.xml
index 073a16277c3..c34a0811132 100644
--- a/addons/website_slides_survey/static/src/xml/website_slide_upload.xml
+++ b/addons/website_slides_survey/static/src/xml/website_slide_upload.xml
@@ -4,23 +4,20 @@
<div>
<form class="clearfix">
<div class="row">
- <div class="col" id="o_wslides_js_slide_upload_left_column">
+ <div id="o_wslides_js_slide_upload_left_column" class="col-md-6">
<div class="form-group">
- <label for="certification_id" class="col-form-label col-md-3">Certification</label>
+ <label for="certification_id" class="col-form-label">Certification</label>
<input class="form-control" id="certification_id" required="required"/>
</div>
- <div class="form-group">
- <label for="upload" class="col-form-label">Choose an Image</label>
- <input id="upload" class="form-control" data-prevent-onchange='true' name="file" accept="image/*" type="file" required="required"/>
- </div>
<t t-call="website.slide.upload.modal.common"/>
<canvas id="data_canvas" class="d-none"></canvas>
</div>
- <div id="o_wslides_js_slide_upload_preview_column" class="col-md-6 d-none">
- <div class="img-thumbnail">
- <div class="o_slide_preview">
- <img src="/website_slides/static/src/img/document.png" id="slide-image" title="Content Preview" alt="Content Preview" class="img-fluid"/>
+ <div id="o_wslides_js_slide_upload_preview_column" class="col-md-6">
+ <div class="img-thumbnail h-100">
+ <div class="o_slide_tutorial p-3">
+ <div class="h5">How to upload a certification on your course?</div>
+ <div class="mx-3 my-4">You can create your certification from here or use an existing one. Once your certification is created, you can still edit it in backend.</div>
</div>
</div>
</div>