feat: batch creation
This commit is contained in:
@@ -154,6 +154,7 @@ def get_user_info():
|
||||
user["roles"] = frappe.get_roles(user.name)
|
||||
user.is_instructor = "Course Creator" in user.roles
|
||||
user.is_moderator = "Moderator" in user.roles
|
||||
user.is_evaluator = "Batch Evaluator" in user.roles
|
||||
return user
|
||||
|
||||
|
||||
|
||||
@@ -23,9 +23,11 @@
|
||||
"column_break_15",
|
||||
"file_type",
|
||||
"section_break_11",
|
||||
"body",
|
||||
"instructor_notes",
|
||||
"content",
|
||||
"body",
|
||||
"column_break_cjmf",
|
||||
"instructor_content",
|
||||
"instructor_notes",
|
||||
"help_section",
|
||||
"help"
|
||||
],
|
||||
@@ -143,11 +145,20 @@
|
||||
"fieldname": "content",
|
||||
"fieldtype": "Text",
|
||||
"label": "Content"
|
||||
},
|
||||
{
|
||||
"fieldname": "column_break_cjmf",
|
||||
"fieldtype": "Column Break"
|
||||
},
|
||||
{
|
||||
"fieldname": "instructor_content",
|
||||
"fieldtype": "Text",
|
||||
"label": "Instructor Content"
|
||||
}
|
||||
],
|
||||
"index_web_pages_for_search": 1,
|
||||
"links": [],
|
||||
"modified": "2024-03-04 19:40:57.359033",
|
||||
"modified": "2024-03-14 14:25:22.464111",
|
||||
"modified_by": "Administrator",
|
||||
"module": "LMS",
|
||||
"name": "Course Lesson",
|
||||
|
||||
@@ -1339,6 +1339,7 @@ def get_lesson(course, chapter, lesson):
|
||||
"instructor_notes",
|
||||
"course",
|
||||
"content",
|
||||
"instructor_content",
|
||||
],
|
||||
as_dict=True,
|
||||
)
|
||||
@@ -1761,7 +1762,15 @@ def get_lesson_creation_details(course, chapter, lesson):
|
||||
lesson_details = frappe.db.get_value(
|
||||
"Course Lesson",
|
||||
lesson_name,
|
||||
["name", "title", "include_in_preview", "body", "content", "instructor_notes"],
|
||||
[
|
||||
"name",
|
||||
"title",
|
||||
"include_in_preview",
|
||||
"body",
|
||||
"content",
|
||||
"instructor_notes",
|
||||
"instructor_content",
|
||||
],
|
||||
as_dict=1,
|
||||
)
|
||||
|
||||
|
||||
@@ -83,4 +83,5 @@ lms.patches.v1_0.create_batch_source
|
||||
lms.patches.v1_0.batch_tabs_settings
|
||||
execute:frappe.delete_doc("Notification", "Assignment Submission Notification")
|
||||
lms.patches.v1_0.change_jobs_url #19-01-2024
|
||||
lms.patches.v1_0.custom_perm_for_discussions #14-01-2024
|
||||
lms.patches.v1_0.custom_perm_for_discussions #14-01-2024
|
||||
lms.patches.v1_0.rename_evaluator_role
|
||||
6
lms/patches/v1_0/rename_evaluator_role.py
Normal file
6
lms/patches/v1_0/rename_evaluator_role.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import frappe
|
||||
|
||||
|
||||
def execute():
|
||||
if frappe.db.exists("Role", "Class Evaluator"):
|
||||
frappe.rename_doc("Role", "Class Evaluator", "Batch Evaluator")
|
||||
Reference in New Issue
Block a user