diff --git a/community/lms/doctype/course_lesson/course_lesson.js b/community/lms/doctype/course_lesson/course_lesson.js
index 0ff38a3c..bb4fa5a6 100644
--- a/community/lms/doctype/course_lesson/course_lesson.js
+++ b/community/lms/doctype/course_lesson/course_lesson.js
@@ -1,57 +1,57 @@
// Copyright (c) 2021, FOSS United and contributors
// For license information, please see license.txt
-frappe.ui.form.on('Course Lesson', {
- setup: function (frm) {
- frm.trigger('setup_help');
- },
- setup_help(frm) {
- frm.get_field('help').html(`
-
You can add some more additional content to the lesson using a special syntax. The table below mentions all types of dynamic content that you can add to the lessons and the syntax for the same.
-
-
- Content Type
-
-
- Syntax
-
+frappe.ui.form.on('Lesson', {
+ setup: function (frm) {
+ frm.trigger('setup_help');
+ },
+ setup_help(frm) {
+ frm.get_field('help').html(`
+
You can add some more additional content to the lesson using a special syntax. The table below mentions all types of dynamic content that you can add to the lessons and the syntax for the same.
+
+
+ Content Type
+
+ Syntax
+
+
-
-
- Video
-
-
- {{ Video("url_of_source") }}
-
+
+
+ Video
+
+ {{ Video("url_of_source") }}
+
+
-
-
- YouTube Video
-
-
- {{ YouTubeVideo("unique_embed_id") }}
-
+
+
+ YouTube Video
+
+ {{ YouTubeVideo("unique_embed_id") }}
+
+
-
-
- Exercise
-
-
- {{ Exercise("exercise_name") }}
-
+
+
+ Exercise
+
+ {{ Exercise("exercise_name") }}
+
+
-
-
- Quiz
-
-
- {{ Quiz("lms_quiz_name") }}
-
+
+
+ Quiz
- `);
- }
- });
+
+ {{ Quiz("lms_quiz_name") }}
+
+
+`);
+ }
+});
diff --git a/community/lms/doctype/lesson/lesson.py b/community/lms/doctype/lesson/lesson.py
index cc315a91..75f00576 100644
--- a/community/lms/doctype/lesson/lesson.py
+++ b/community/lms/doctype/lesson/lesson.py
@@ -44,7 +44,6 @@ class Lesson(Document):
ex.save()
def render_html(self):
- print(self.body)
return markdown_to_html(self.body)
def get_exercises(self):
diff --git a/community/patches.txt b/community/patches.txt
index 8f7cf33c..e6d2fcb5 100644
--- a/community/patches.txt
+++ b/community/patches.txt
@@ -6,8 +6,10 @@ community.patches.replace_member_with_user_in_batch_membership
community.patches.replace_member_with_user_in_course_mentor_mapping
community.patches.replace_member_with_user_in_lms_message
community.patches.replace_member_with_user_in_mentor_request
+community.patches.v0_0.chapter_lesson_index_table
execute:frappe.delete_doc("DocType", "LMS Message")
community.patches.v0_0.course_instructor_update
execute:frappe.delete_doc("DocType", "Discussion Message")
execute:frappe.delete_doc("DocType", "Discussion Thread")
+community.patches.v0_0.rename_chapters_and_lessons_doctype
community.patches.v0_0.rename_chapter_and_lesson_doctype #29-09-2021