Commit 17fce100 by Vik Paruchuri

Add in ban actions to table

parent b248a095
......@@ -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']}
......
......@@ -289,6 +289,8 @@ if settings.COURSEWARE_ENABLED:
# 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'),
# Cohorts management
url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/cohorts$',
......
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