Commit d910395c by Vik Paruchuri

Task count tracking

parent dabc2e0c
...@@ -132,6 +132,8 @@ class CombinedOpenEndedModule(XModule): ...@@ -132,6 +132,8 @@ class CombinedOpenEndedModule(XModule):
'ajax_url': self.system.ajax_url, 'ajax_url': self.system.ajax_url,
'allow_reset': True, 'allow_reset': True,
'state' : self.state, '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) html = self.system.render_template('combined_open_ended.html', context)
......
<section id="combined-open-ended" class="combined-open-ended" data-ajax-url="${ajax_url}" data-allow_reset="${allow_reset}" data-state="${state}"> <section id="combined-open-ended" class="combined-open-ended" data-ajax-url="${ajax_url}" data-allow_reset="${allow_reset}" data-state="${state}" data-task-count="${task_count}" data-task-number="${task_number}">
% for item in items: % for item in items:
<div class="item">${item['content'] | n}</div> <div class="item">${item['content'] | n}</div>
......
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