feat: lesson assignment

This commit is contained in:
Jannat Patel
2021-12-22 22:13:33 +05:30
parent b822428d52
commit a6bdbd7cf1
10 changed files with 320 additions and 28 deletions

View File

@@ -121,6 +121,9 @@ def youtube_video_renderer(video_id):
def video_renderer(src):
return "<video controls width='100%'><source src={0} type='video/mp4'></video>".format(src)
def assignment_renderer(id):
return frappe.render_template("templates/assignment.html", {"id": id})
def show_custom_signup():
if frappe.db.get_single_value("LMS Settings", "terms_of_use"):
return "school/templates/signup-form.html"