Clean up results display
This commit is contained in:
@@ -511,7 +511,7 @@ class CombinedOpenEndedV1Module():
|
||||
task_number = int(get['task_number'])
|
||||
self.update_task_states()
|
||||
response_dict = self.get_last_response(task_number)
|
||||
context = {'results': response_dict['post_assessment'], 'task_number': task_number + 1}
|
||||
context = {'results': response_dict['post_assessment'], '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}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ section.combined-open-ended-status {
|
||||
color: #2C2C2C;
|
||||
background-color : #d4d4d4;
|
||||
font-size: .9em;
|
||||
padding: 0px;
|
||||
padding: 2px;
|
||||
display: inline;
|
||||
width: 20%;
|
||||
.show-results {
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<section id="combined-open-ended" class="combined-open-ended" data-ajax-url="${ajax_url}" data-allow_reset="${allow_reset}" data-state="${state}" data-task-count="${task_count}" data-task-number="${task_number}" data-accept-file-upload = "${accept_file_upload}">
|
||||
|
||||
<h2>${display_name}</h2>
|
||||
<div class="status-container">
|
||||
${status | n}
|
||||
</div>
|
||||
|
||||
<h2>${display_name}</h2>
|
||||
|
||||
<div class="item-container">
|
||||
<h4>Prompt <a href="#" class="question-header">(Hide)</a> </h4>
|
||||
<div class="problem-container">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class="result-container">
|
||||
<h4>Results from Step ${task_number}</h4>
|
||||
<h4>Results from ${task_name}</h4>
|
||||
${results | n}
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
%if status_list[0]['state'] != 'initial':
|
||||
<div class="status-elements">
|
||||
<section id="combined-open-ended-status" class="combined-open-ended-status">
|
||||
%for i in xrange(0,len(status_list)):
|
||||
@@ -17,4 +16,3 @@
|
||||
%endfor
|
||||
</section>
|
||||
</div>
|
||||
%endif
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="prompt">
|
||||
${prompt|n}
|
||||
</div>
|
||||
<h4>Answer</h4>
|
||||
<h4>Response</h4>
|
||||
<textarea rows="${rows}" cols="${cols}" name="answer" class="answer short-form-response" id="input_${id}">${previous_answer|h}</textarea>
|
||||
|
||||
<div class="message-wrapper"></div>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
${prompt}
|
||||
</div>
|
||||
|
||||
<h4>Answer</h4>
|
||||
<h4>Response</h4>
|
||||
<div>
|
||||
<textarea name="answer" class="answer short-form-response" cols="70" rows="20">${previous_answer|n}</textarea>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user