').addClass('o_wslide_fs_webpage_content bg-white block w-100 overflow-auto');
+ } else if (slide.category === 'article'){
+ var $wpContainer = $('
').addClass('o_wslide_fs_article_content bg-white block w-100 overflow-auto');
$(slide.htmlContent).appendTo($wpContainer);
$content.append($wpContainer);
this.trigger_up('widgets_start_request', {
diff --git a/addons/website_slides/static/src/js/slides_upload.js b/addons/website_slides/static/src/js/slides_upload.js
index afb1f74c686..f7f901c82cc 100644
--- a/addons/website_slides/static/src/js/slides_upload.js
+++ b/addons/website_slides/static/src/js/slides_upload.js
@@ -134,7 +134,7 @@ var SlideUploadDialog = Dialog.extend({
*/
_formValidateGetValues: async function (forcePublished) {
var slideCategory = 'document';
- // default slide_category (for webpage for instance)
+ // default slide_category (for article for instance)
if (_.contains(this.slide_category_data), this.get('state')) {
slideCategory = this.get('state');
}
@@ -165,7 +165,7 @@ var SlideUploadDialog = Dialog.extend({
'slide_category': 'document',
'binary_content': this.file.data
});
- } else if (values['slide_category'] === 'webpage') {
+ } else if (values['slide_category'] === 'article') {
_.extend(values, {
'image_1920': this.file.type === 'image/svg+xml' ? await this._svgToPng() : this.file.data,
});
@@ -345,10 +345,10 @@ var SlideUploadDialog = Dialog.extend({
label: _t('Image'),
template: 'website.slide.upload.modal.infographic',
},
- webpage: {
+ article: {
icon: 'fa-file-text',
- label: _t('Web Page'),
- template: 'website.slide.upload.modal.webpage',
+ label: _t('Article'),
+ template: 'website.slide.upload.modal.article',
},
video: {
icon: 'fa-file-video-o',
diff --git a/addons/website_slides/static/src/js/tours/slides_tour.js b/addons/website_slides/static/src/js/tours/slides_tour.js
index dab72c581ad..b31ca9acd55 100644
--- a/addons/website_slides/static/src/js/tours/slides_tour.js
+++ b/addons/website_slides/static/src/js/tours/slides_tour.js
@@ -42,7 +42,7 @@ tour.register('slides_tour', {
width: 260,
}, {
trigger: 'a.btn-primary.o_wslides_js_slide_upload',
- content: Markup(_t("Your first section is created, now it's time to add lessons to your course. Click on Add Content to upload a document, create a web page or link a video.")),
+ content: Markup(_t("Your first section is created, now it's time to add lessons to your course. Click on Add Content to upload a document, create an article or link a video.")),
position: 'bottom',
}, {
trigger: 'a[data-slide-category="document"]',
diff --git a/addons/website_slides/static/src/tests/tours/slides_tour_tools.js b/addons/website_slides/static/src/tests/tours/slides_tour_tools.js
index 62f7f4b334d..bc579154516 100644
--- a/addons/website_slides/static/src/tests/tours/slides_tour_tools.js
+++ b/addons/website_slides/static/src/tests/tours/slides_tour_tools.js
@@ -56,16 +56,16 @@ var addVideoToSection = function (sectionName, saveAsDraft) {
return base_steps;
};
-var addWebPageToSection = function (sectionName, pageName) {
+var addArticleToSection = function (sectionName, pageName) {
return [
{
content: 'eLearning: add content to section',
trigger: 'div.o_wslides_slide_list_category_header:contains("' + sectionName + '") a:contains("Add Content")',
}, {
- content: 'eLearning: click on webpage',
- trigger: 'a[data-slide-category=webpage]',
+ content: 'eLearning: click on article',
+ trigger: 'a[data-slide-category=article]',
}, {
- content: 'eLearning: fill webpage title',
+ content: 'eLearning: fill article title',
trigger: 'input[name=name]',
run: 'text ' + pageName,
}, {
@@ -76,7 +76,7 @@ var addWebPageToSection = function (sectionName, pageName) {
trigger: 'div.select2-result-label:contains("Theory")',
in_modal: false,
}, {
- content: 'eLearning: fill webpage completion time',
+ content: 'eLearning: fill article completion time',
trigger: 'input[name=duration]',
run: 'text 4',
}];
@@ -132,7 +132,7 @@ var addNewCourseTag = function (courseTagName) {
export default {
addSection: addSection,
addVideoToSection: addVideoToSection,
- addWebPageToSection: addWebPageToSection,
+ addArticleToSection: addArticleToSection,
addExistingCourseTag: addExistingCourseTag,
addNewCourseTag: addNewCourseTag,
};
diff --git a/addons/website_slides/static/src/xml/website_slides_upload.xml b/addons/website_slides/static/src/xml/website_slides_upload.xml
index 3a2af6c904e..f5874a0fa5b 100644
--- a/addons/website_slides/static/src/xml/website_slides_upload.xml
+++ b/addons/website_slides/static/src/xml/website_slides_upload.xml
@@ -213,7 +213,7 @@
-
+