Commit 9a752f51 by Vik Paruchuri

Fix rubric return, add in score field

parent 7febe2c2
......@@ -606,7 +606,7 @@ class OpenEndedModule(openendedchild.OpenEndedChild):
def render_rubric(self, rubric_xml):
rubric_categories = OpenEndedModule.extract_rubric_categories(rubric_xml)
html = render_to_string('open_ended_rubric.html', rubric_categories)
html = render_to_string('open_ended_rubric.html', {'rubric_categories' : rubric_categories})
return html
@staticmethod
......
<table class="rubric">
% for i in range(len(categories)):
<% category = categories[i] %>
% for i in range(len(rubric_categories)):
<% category = rubric_categories[i] %>
<tr>
<th>${category['description']}</th>
<td>${category['score']}</td>
% for j in range(len(category['options'])):
<% option = category['options'][j] %>
<td>
......
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