From a067695f7139deb47c06d0b90fdad8ffe71bedf8 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Tue, 1 Oct 2024 15:43:45 +0530 Subject: [PATCH] fix: removed help article from course lesson --- .../doctype/course_lesson/course_lesson.js | 146 +----------------- lms/lms/doctype/lms_settings/lms_settings.py | 1 - 2 files changed, 1 insertion(+), 146 deletions(-) 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." - )} - -
    -
  • - ${__("Upload the video on youtube.")} -
  • -
  • - ${__( - "When you share a youtube video, it shows an option called Embed." - )} -
  • -
  • - ${__( - "On clicking it, it provides an iframe. Copy the source (src) of the iframe and paste it here." - )} -
  • -
-
- ${__("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")} -
- `); - }, -}); +frappe.ui.form.on("Course Lesson", {}); diff --git a/lms/lms/doctype/lms_settings/lms_settings.py b/lms/lms/doctype/lms_settings/lms_settings.py index a58c117c..3307f113 100644 --- a/lms/lms/doctype/lms_settings/lms_settings.py +++ b/lms/lms/doctype/lms_settings/lms_settings.py @@ -44,7 +44,6 @@ class LMSSettings(Document): @frappe.whitelist() def check_payments_app(): installed_apps = frappe.get_installed_apps() - print("payments" not in installed_apps) if "payments" not in installed_apps: return False else: