feat: added program and course pages
This commit is contained in:
11
erpnext/www/lms/course.py
Normal file
11
erpnext/www/lms/course.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from __future__ import unicode_literals
|
||||
import erpnext.education.utils as utils
|
||||
import frappe
|
||||
|
||||
no_cache = 1
|
||||
|
||||
def get_context(context):
|
||||
context.education_settings = frappe.get_single("Education Settings")
|
||||
course = frappe.get_doc('Course', frappe.form_dict['name'])
|
||||
context.course = course
|
||||
context.topics = course.get_topics()
|
||||
Reference in New Issue
Block a user