fix: checkbox for terms of use

This commit is contained in:
Jannat Patel
2021-12-21 15:41:32 +05:30
parent 7d9b60c16a
commit 6188c698e3
10 changed files with 170 additions and 87 deletions

View File

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