Commit bc97a507 by Vik Paruchuri

Next step logic

parent adcbfbb6
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment