Add in ban actions to table
This commit is contained in:
@@ -309,7 +309,7 @@ def take_action_on_flags(request, course_id):
|
||||
|
||||
try:
|
||||
controller_qs = ControllerQueryService()
|
||||
response = controller_qs.save_calibration_essay(course_id, student_id, course_id, action_type)
|
||||
response = controller_qs.take_action_on_flags(course_id, student_id, course_id, action_type)
|
||||
return HttpResponse(response, mimetype="application/json")
|
||||
except GradingServiceError:
|
||||
log.exception("Error saving calibration grade, location: {0}, submission_id: {1}, submission_key: {2}, grader_id: {3}".format(location, submission_id, submission_key, grader_id))
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Response</th>
|
||||
<th>Unflag</th>
|
||||
<th>Ban</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
%for problem in problem_list:
|
||||
<tr>
|
||||
@@ -38,10 +38,10 @@
|
||||
${problem['student_response']}
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<a href="#unflag" class="unflag-button action-button">Unflag</a>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<a href="#ban" class="ban-button action-button">Ban</a>
|
||||
</td>
|
||||
<td style="display:none;">
|
||||
${problem['submission_id']}
|
||||
|
||||
@@ -287,6 +287,8 @@ if settings.COURSEWARE_ENABLED:
|
||||
'open_ended_grading.views.student_problem_list', name='open_ended_problems'),
|
||||
|
||||
# Open Ended flagged problem list
|
||||
url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/open_ended_flagged_problems$',
|
||||
'open_ended_grading.views.flagged_problem_list', name='open_ended_flagged_problems'),
|
||||
url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/open_ended_flagged_problems$',
|
||||
'open_ended_grading.views.flagged_problem_list', name='open_ended_flagged_problems'),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user