diff --git a/lms/lms/doctype/course_lesson/course_lesson.js b/lms/lms/doctype/course_lesson/course_lesson.js index 69d53d9a..cb2921b7 100644 --- a/lms/lms/doctype/course_lesson/course_lesson.js +++ b/lms/lms/doctype/course_lesson/course_lesson.js @@ -1,148 +1,4 @@ // 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) { - let quiz_link = ` ${__("Quiz List")} `; - let exercise_link = ` ${__( - "Exercise List" - )} `; - let file_link = ` ${__("File DocType")} `; - - 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")} - | -- ${__("Description")} - | -
|---|---|---|
| - ${__("YouTube Video")} - | -- {{ YouTubeVideo("unique_embed_id") }} - | -
-
- ${__(
- "Copy and paste the syntax in the editor. Replace 'embed_src' with the embed source that YouTube provides. To get the source, follow the steps mentioned below."
- )}
-
-
|
-
| - ${__("Quiz")} - | -- {{ Quiz("lms_quiz_id") }} - | -- ${__( - "Copy and paste the syntax in the editor. Replace 'lms_quiz_id' with the ID of the Quiz you want to add. You can get the ID of the quiz from the {0}.", - [quiz_link] - )} - | -
| - ${__("Video")} - | -- {{ Video("url_of_source") }} - | -- ${__( - "Upload a video from your local machine to the {0}. Copy and paste this syntax in the editor. Replace 'url_of_source' with the File URL field of the document you created in the File DocType.", - [file_link] - )} - | -
| - ${"Exercise"} - | -- {{ Exercise("exercise_id") }} - | -- ${__( - "Copy and paste the syntax in the editor. Replace 'exercise_id' with the ID of the Exercise you want to add. You can get the ID of the exercise from the {0}.", - [exercise_link] - )} - | -
| - ${__("Assignment")} - | -- {{ Assignment("id-filetype") }} - | -
| - ${__("Supported File Types for Assignment")} - | -- ${__("Syntax")} - | -
|---|---|
| - .doc, .docx, .xml - | - ${__("Document")} - | -
| - .pdf - | -- ${__("PDF")} - | -
| - .png, .jpg, .jpeg - | -- ${__("Image")} - | -