Commit 6d0af139 by Vik Paruchuri

Fix respond to feedback

parent 3eb18a9e
...@@ -600,12 +600,16 @@ class CombinedOpenEndedV1Module(): ...@@ -600,12 +600,16 @@ class CombinedOpenEndedV1Module():
'rubric_html': rubric_html, 'rubric_html': rubric_html,
'grader_type': ri['grader_type'], 'grader_type': ri['grader_type'],
'feedback' : feedback, 'feedback' : feedback,
'grader_id' : ri['grader_ids'][i],
'submission_id' : ri['submission_ids'][i],
} }
context_list.append(context) context_list.append(context)
feedback_table = self.system.render_template('open_ended_result_table.html', { feedback_table = self.system.render_template('open_ended_result_table.html', {
'context_list' : context_list, 'context_list' : context_list,
'grader_type_image_dict' : GRADER_TYPE_IMAGE_DICT, 'grader_type_image_dict' : GRADER_TYPE_IMAGE_DICT,
'human_grader_types' : HUMAN_GRADER_TYPE, 'human_grader_types' : HUMAN_GRADER_TYPE,
'rows': 50,
'cols': 50,
}) })
context = { context = {
'results': feedback_table, 'results': feedback_table,
......
...@@ -137,9 +137,8 @@ div.result-container { ...@@ -137,9 +137,8 @@ div.result-container {
} }
.evaluation-response { .evaluation-response {
margin-bottom: 10px; margin-bottom: 2px;
header { header {
text-align: right;
a { a {
font-size: .85em; font-size: .85em;
} }
...@@ -253,11 +252,16 @@ div.result-container { ...@@ -253,11 +252,16 @@ div.result-container {
} }
} }
} }
.rubric-result-container {
.rubric-result { .rubric-result {
font-size: .9em; font-size: .9em;
padding: 2px; padding: 2px;
display: inline-table; display: inline-table;
} }
padding: 2px;
margin: 0px;
display : inline;
}
} }
......
<section class="rubric-template" id="inputtype_${id}"> <div class="rubric">
<div class="rubric">
% for i in range(len(categories)): % for i in range(len(categories)):
<% category = categories[i] %> <% category = categories[i] %>
<b class="rubric-category">${category['description']}</b> <br/> <b class="rubric-category">${category['description']}</b> <br/>
...@@ -25,5 +24,5 @@ ...@@ -25,5 +24,5 @@
% endfor % endfor
</ul> </ul>
% endfor % endfor
</div> </div>
</section>
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
% else: % else:
<% human_title = grader_type %> <% human_title = grader_type %>
% endif % endif
<section class="rubric-result-container">
<div class="rubric-result"> <div class="rubric-result">
<img src="${grader_image}" title="${human_title}"/> <img src="${grader_image}" title="${human_title}"/>
</div> </div>
...@@ -16,6 +17,33 @@ ...@@ -16,6 +17,33 @@
<div class="rubric-result"> <div class="rubric-result">
${co['feedback']} ${co['feedback']}
</div> </div>
%if grader_type!="SA":
<div class="rubric-result">
<input type="hidden" value="${co['grader_id']}" class="grader_id" />
<input type="hidden" value="${co['submission_id']}" class=submission_id" />
<div class="collapsible evaluation-response">
<header>
<a href="#">Respond to Feedback</a>
</header>
<section id="evaluation" class="evaluation">
<p>How accurate do you find this feedback?</p>
<div class="evaluation-scoring">
<ul class="scoring-list">
<li><input type="radio" name="evaluation-score" id="evaluation-score-5" value="5" /> <label for="evaluation-score-5"> Correct</label></li>
<li><input type="radio" name="evaluation-score" id="evaluation-score-4" value="4" /> <label for="evaluation-score-4"> Partially Correct</label></li>
<li><input type="radio" name="evaluation-score" id="evaluation-score-3" value="3" /> <label for="evaluation-score-3"> No Opinion</label></li>
<li><input type="radio" name="evaluation-score" id="evaluation-score-2" value="2" /> <label for="evaluation-score-2"> Partially Incorrect</label></li>
<li><input type="radio" name="evaluation-score" id="evaluation-score-1" value="1" /> <label for="evaluation-score-1"> Incorrect</label></li>
</ul>
</div>
<p>Additional comments:</p>
<textarea rows="${rows}" cols="${cols}" name="feedback" class="feedback-on-feedback" id="feedback"></textarea>
<input type="button" value="Submit Feedback" class="submit-evaluation-button" name="reset"/>
</section>
</div>
</div>
%endif
</section>
<br/> <br/>
%endif %endif
%endfor %endfor
\ No newline at end of file
<section class="rubric-template" id="inputtype_${id}"> <div class="rubric">
<div class="rubric">
% for i in range(len(categories)): % for i in range(len(categories)):
<% category = categories[i] %> <% category = categories[i] %>
% for j in range(len(category['options'])): % for j in range(len(category['options'])):
<% option = category['options'][j] %> <% option = category['options'][j] %>
% if option['selected']: % if option['selected']:
${category['description']} : ${option['points']} points | ${category['description']} : ${option['points']} |
% endif % endif
% endfor % endfor
% endfor % endfor
</div> </div>
</section>
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