Remove ability to manually get results
This commit is contained in:
@@ -513,7 +513,7 @@ class CombinedOpenEndedV1Module():
|
||||
pass
|
||||
return return_html
|
||||
|
||||
def get_results(self, get):
|
||||
def get_rubric(self, get):
|
||||
"""
|
||||
Gets the results of a given grader via ajax.
|
||||
Input: AJAX get dictionary
|
||||
@@ -531,11 +531,12 @@ class CombinedOpenEndedV1Module():
|
||||
rubric_html = self.rubric_renderer.render_combined_rubric(stringify_children(self.static_data['rubric']), rubric_scores,
|
||||
grader_types, feedback_items)
|
||||
|
||||
response_dict = all_responses[-1]
|
||||
context = {'results': rubric_html, 'task_number': task_number + 1, 'task_name' : response_dict['human_task']}
|
||||
html = self.system.render_template('combined_open_ended_results.html', context)
|
||||
return {'html': html, 'success': True}
|
||||
|
||||
def get_results_old(self, get):
|
||||
def get_results(self, get):
|
||||
"""
|
||||
Gets the results of a given grader via ajax.
|
||||
Input: AJAX get dictionary
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
.rubric {
|
||||
margin: 0px 0px;
|
||||
color: #3C3C3C;
|
||||
tr {
|
||||
margin:0px 0px;
|
||||
height: 100%;
|
||||
|
||||
@@ -18,7 +18,9 @@
|
||||
<input type="button" value="Next Step" class="next-step-button" name="reset"/>
|
||||
</div>
|
||||
|
||||
<a name="results" />
|
||||
<div class="combined-rubric-container">
|
||||
</div>
|
||||
|
||||
<div class="result-container">
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -9,9 +9,6 @@
|
||||
%endif
|
||||
|
||||
${status['human_task']} (${status['human_state']}) ${status['score']} / ${status['max_score']}
|
||||
%if status['type']=="openended" and status['state'] in ['done', 'post_assessment']:
|
||||
<a href="#results" class="show-results-button"> Show results</a>
|
||||
%endif
|
||||
</div>
|
||||
%endfor
|
||||
</section>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
</div>
|
||||
% elif combined_rubric == True:
|
||||
<div class="rubric-label">
|
||||
%for grader_type in category['grader_types'][j]:
|
||||
%for grader_type in category['options'][j]['grader_types']:
|
||||
${grader_type}
|
||||
%endfor
|
||||
${option['points']} points : ${option['text']}
|
||||
|
||||
Reference in New Issue
Block a user