feat: added program and course pages

This commit is contained in:
Shivam Mishra
2019-05-20 11:55:17 +05:30
parent 823c79588b
commit d7e8298a5f
3 changed files with 99 additions and 14 deletions

11
erpnext/www/lms/course.py Normal file
View 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()