Commit 9fa16b07 by Vik Paruchuri

Remove ability to manually get results

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