Make a legend
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
<input type="button" value="Reset" class="reset-button" name="reset"/>
|
||||
<input type="button" value="Next Step" class="next-step-button" name="reset"/>
|
||||
</div>
|
||||
|
||||
<div class="combined-rubric-container">
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,20 +1,30 @@
|
||||
<div class="status-elements">
|
||||
<section id="combined-open-ended-status" class="combined-open-ended-status">
|
||||
%for i in xrange(0,len(status_list)):
|
||||
<%status=status_list[i]%>
|
||||
%if i==len(status_list)-1:
|
||||
<div class="statusitem statusitem-current" data-status-number="${i}">
|
||||
%else:
|
||||
<div class="statusitem" data-status-number="${i}">
|
||||
%endif
|
||||
%if status['grader_type'] in grader_type_image_dict:
|
||||
<% grader_image = grader_type_image_dict[status['grader_type']]%>
|
||||
<img src="${grader_image}" title=${status['human_grader_type']}>
|
||||
%else:
|
||||
${status['human_task']}
|
||||
%endif
|
||||
(${status['human_state']}) ${status['score']} / ${status['max_score']}
|
||||
</div>
|
||||
%endfor
|
||||
</section>
|
||||
<section name="legend-container">
|
||||
% for i in xrange(0,len(legend_list)):
|
||||
<%legend_title=legend_list[i]['name'] %>
|
||||
<%legend_image=legend_list[i]['image'] %>
|
||||
|
||||
<div class="legenditem">
|
||||
${legend_title}=<img src="${legend_image}" title=${legend_title}>
|
||||
</div>
|
||||
% endfor
|
||||
</section>
|
||||
<section id="combined-open-ended-status" class="combined-open-ended-status">
|
||||
%for i in xrange(0,len(status_list)):
|
||||
<%status=status_list[i]%>
|
||||
%if i==len(status_list)-1:
|
||||
<div class="statusitem statusitem-current" data-status-number="${i}">
|
||||
%else:
|
||||
<div class="statusitem" data-status-number="${i}">
|
||||
%endif
|
||||
%if status['grader_type'] in grader_type_image_dict:
|
||||
<% grader_image = grader_type_image_dict[status['grader_type']]%>
|
||||
<img src="${grader_image}" title=${status['human_grader_type']}>
|
||||
%else:
|
||||
${status['human_task']}
|
||||
%endif
|
||||
(${status['human_state']}) ${status['score']} / ${status['max_score']}
|
||||
</div>
|
||||
%endfor
|
||||
</section>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user