Display message to student when they cannot see their peer grading feedback yet.
This commit is contained in:
@@ -250,6 +250,9 @@ class @CombinedOpenEnded
|
||||
@hide_rubrics()
|
||||
@$(@previous_rubric_sel).click @previous_rubric
|
||||
@$(@next_rubric_sel).click @next_rubric
|
||||
if response.hide_reset
|
||||
@reset_button.hide()
|
||||
|
||||
|
||||
show_status_current: () =>
|
||||
data = {}
|
||||
|
||||
@@ -506,10 +506,13 @@ class CombinedOpenEndedV1Module():
|
||||
student_id = self.system.anonymous_student_id
|
||||
success = False
|
||||
allowed_to_submit = True
|
||||
error_string = ("You need to peer grade {0} more in order to make another submission. "
|
||||
"You have graded {1}, and {2} are required. You have made {3} successful peer grading submissions.")
|
||||
error_string = ("<h4>Feedback not available yet</h4>"
|
||||
"<p>You need to peer grade {0} more submissions in order to see your feedback.</p>"
|
||||
"<p>You have graded responses from {1} students, and {2} students have graded your submissions. </p>"
|
||||
"<p>You have made {3} submissions.</p>")
|
||||
try:
|
||||
response = self.peer_gs.get_data_for_location(self.location, student_id)
|
||||
response = self.peer_gs.get_data_for_location(self.location.url(), student_id)
|
||||
log.info(response)
|
||||
count_graded = response['count_graded']
|
||||
count_required = response['count_required']
|
||||
student_sub_count = response['student_sub_count']
|
||||
@@ -539,7 +542,7 @@ class CombinedOpenEndedV1Module():
|
||||
all_responses = []
|
||||
success, can_see_rubric, error = self.check_if_student_has_done_needed_grading()
|
||||
if not can_see_rubric:
|
||||
return {'html' : error, 'success' : False}
|
||||
return {'html' : self.system.render_template('{0}/combined_open_ended_hidden_results.html'.format(self.TEMPLATE_DIR), {'error' : error}), 'success' : True, 'hide_reset' : True}
|
||||
|
||||
loop_up_to_task = self.current_task_number + 1
|
||||
contexts = []
|
||||
@@ -565,7 +568,7 @@ class CombinedOpenEndedV1Module():
|
||||
'results': contexts,
|
||||
}
|
||||
html = self.system.render_template('{0}/combined_open_ended_results.html'.format(self.TEMPLATE_DIR), context)
|
||||
return {'html': html, 'success': True}
|
||||
return {'html': html, 'success': True, 'hide_reset' : False}
|
||||
|
||||
def get_legend(self, _data):
|
||||
"""
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<div class="combined-rubric-container" data-status="shown" data-number="1">
|
||||
<div class="visibility-control visibility-control-rubric">
|
||||
<div class="inner">
|
||||
</div>
|
||||
<span class="section-header section-header-rubric">Submitted Rubric</span>
|
||||
</div>
|
||||
<div class="written-feedback">
|
||||
${error}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user