diff --git a/common/lib/xmodule/xmodule/combined_open_ended_module.py b/common/lib/xmodule/xmodule/combined_open_ended_module.py index a73886c7e2..afa5f61b25 100644 --- a/common/lib/xmodule/xmodule/combined_open_ended_module.py +++ b/common/lib/xmodule/xmodule/combined_open_ended_module.py @@ -132,6 +132,8 @@ class CombinedOpenEndedModule(XModule): 'ajax_url': self.system.ajax_url, 'allow_reset': True, 'state' : self.state, + 'task_count' : len(self.task_xml), + 'task_number' : self.current_task_number, } html = self.system.render_template('combined_open_ended.html', context) diff --git a/lms/templates/combined_open_ended.html b/lms/templates/combined_open_ended.html index a00d5b042f..5b6823e809 100644 --- a/lms/templates/combined_open_ended.html +++ b/lms/templates/combined_open_ended.html @@ -1,4 +1,4 @@ -
+
% for item in items:
${item['content'] | n}