Next step logic
This commit is contained in:
@@ -326,7 +326,7 @@ class CombinedOpenEndedModule(XModule):
|
||||
|
||||
def next_problem(self, get):
|
||||
self.update_task_states()
|
||||
return {'success' : True, 'html' : self.get_html_nonsystem()}
|
||||
return {'success' : True, 'html' : self.get_html_nonsystem(), 'allow_reset' : self.allow_reset}
|
||||
|
||||
def reset(self, get):
|
||||
"""
|
||||
|
||||
@@ -218,7 +218,10 @@ class @CombinedOpenEnded
|
||||
@reinitialize(@element)
|
||||
@rebind()
|
||||
@next_problem_button.hide()
|
||||
@gentle_alert "Moved to next step."
|
||||
if response.allow_reset=="False"
|
||||
@gentle_alert "Moved to next step."
|
||||
else
|
||||
@gentle_alert "Your score did not meet the criteria to move to the next step."
|
||||
else
|
||||
@errors_area.html(response.error)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user