feat: limit questions in quiz
This commit is contained in:
@@ -91,17 +91,6 @@ class LiveCodeExtension(PageExtension):
|
||||
return frappe.render_template("templates/livecode/extension_footer.html", context)
|
||||
|
||||
|
||||
def set_mandatory_fields_for_profile():
|
||||
profile_form = frappe.get_doc("Web Form", "profile")
|
||||
profile_mandatory_fields = frappe.get_hooks("profile_mandatory_fields")
|
||||
for field in profile_form.web_form_fields:
|
||||
field.reqd = 0
|
||||
if field.fieldname in profile_mandatory_fields:
|
||||
field.reqd = 1
|
||||
|
||||
profile_form.save()
|
||||
|
||||
|
||||
def quiz_renderer(quiz_name):
|
||||
if frappe.session.user == "Guest":
|
||||
return " <div class='alert alert-info'>" + _(
|
||||
|
||||
Reference in New Issue
Block a user