Commit a939c152 by Vik Paruchuri

Add in support for multiple rubrics

parent e2c4b501
......@@ -521,13 +521,11 @@ class CombinedOpenEndedV1Module():
grader_types, feedback_items)
contexts.append({
'result': rubric_html,
'task_name': 'Scored Rubric',
'class_name': 'combined-rubric-container'
'task_name': 'Scored Rubric'
})
context = {
'results': contexts,
'name' : 'name',
}
log.info(contexts)
......
% for (i,result) in enumerate(results):
<div class="${result['class_name']}">
<h4>${result['task_name']}<a class="rubric-collapse" href="#">(Hide)</a></h4>
% if 'task_name' in result and 'result' in result:
<div class="combined-rubric-container"
%if i>0:
status="shown">
% else:
status="hidden">
% endif
<h4>${result['task_name']} from grader ${i+1} <a class="rubric-collapse" href="#">(Hide)</a></h4>
${result['result'] | n}
</div>
%endif
% endfor
% if len(results)>1:
<a href="#" class="rubric-previous-button">Previous</a>
<a href="#" class="rubric-next-button">Next</a>
% endif
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