fix some combinedopenended ui and data routing
This commit is contained in:
@@ -108,6 +108,12 @@ section.combined-open-ended-status {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-caret-right {
|
||||
display: inline-block;
|
||||
vertical-align: baseline;
|
||||
margin-right: ($baseline/4);
|
||||
}
|
||||
}
|
||||
|
||||
div.combined-rubric-container {
|
||||
|
||||
@@ -41,7 +41,7 @@ class PeerGradingService(GradingService):
|
||||
return self.try_to_decode(self._render_rubric(response))
|
||||
|
||||
def save_grade(self, location, grader_id, submission_id, score, feedback, submission_key, rubric_scores,
|
||||
submission_flagged):
|
||||
submission_flagged, answer_unknown):
|
||||
data = {'grader_id': grader_id,
|
||||
'submission_id': submission_id,
|
||||
'score': score,
|
||||
@@ -50,7 +50,9 @@ class PeerGradingService(GradingService):
|
||||
'location': location,
|
||||
'rubric_scores': rubric_scores,
|
||||
'rubric_scores_complete': True,
|
||||
'submission_flagged': submission_flagged}
|
||||
'submission_flagged': submission_flagged,
|
||||
'answer_unknown' : answer_unknown,
|
||||
}
|
||||
return self.try_to_decode(self.post(self.save_grade_url, data))
|
||||
|
||||
def is_student_calibrated(self, problem_location, grader_id):
|
||||
|
||||
@@ -310,10 +310,11 @@ class PeerGradingModule(PeerGradingFields, XModule):
|
||||
submission_key = data.get('submission_key')
|
||||
rubric_scores = data.getlist('rubric_scores[]')
|
||||
submission_flagged = data.get('submission_flagged')
|
||||
answer_unknown = data.get('answer_unknown', False)
|
||||
|
||||
try:
|
||||
response = self.peer_gs.save_grade(location, grader_id, submission_id,
|
||||
score, feedback, submission_key, rubric_scores, submission_flagged)
|
||||
score, feedback, submission_key, rubric_scores, submission_flagged, answer_unknown)
|
||||
return response
|
||||
except GradingServiceError:
|
||||
# This is a dev_facing_error
|
||||
|
||||
@@ -8,7 +8,11 @@
|
||||
<div class="statusitem" data-status-number="${i}">
|
||||
%endif
|
||||
${status['human_task']}
|
||||
|
||||
</div>
|
||||
%if i<len(status_list)-1:
|
||||
<i class="icon-caret-right"></i>
|
||||
%endif
|
||||
%endfor
|
||||
</section>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user