41 lines
1.8 KiB
HTML
41 lines
1.8 KiB
HTML
<form class="rubric-template" id="inputtype_${id}" xmlns="http://www.w3.org/1999/html">
|
|
% if view_only and has_score:
|
|
<p></p>
|
|
% elif view_only:
|
|
<p>Use the below rubric to rate this submission.</p>
|
|
% else:
|
|
<h3>Rubric</h3>
|
|
<p>Select the criteria you feel best represents this submission in each category.</p>
|
|
% endif
|
|
<div class="rubric">
|
|
% for i in range(len(categories)):
|
|
<% category = categories[i] %>
|
|
<b class="rubric-category">${category['description']}</b><br/>
|
|
<ul class="rubric-list">
|
|
% for j in range(len(category['options'])):
|
|
<% option = category['options'][j] %>
|
|
%if option['selected'] and not view_only:
|
|
<li class="selected-grade rubric-list-item">
|
|
%else:
|
|
<li class="rubric-list-item">
|
|
% endif
|
|
% if view_only:
|
|
% if option['selected']:
|
|
## if this is the selected rubric block, show it highlighted
|
|
<div class="rubric-label">
|
|
${option['points']} points : ${option['text']}
|
|
</div>
|
|
% endif
|
|
% else:
|
|
<label class="rubric-label" for="score-${i}-${j}">
|
|
<input type="radio" class="score-selection" name="score-selection-${i}" id="score-${i}-${j}" value="${option['points']}"/>
|
|
<span class="wrappable"> ${option['points']} points : ${option['text']}</span>
|
|
</label>
|
|
% endif
|
|
</li>
|
|
% endfor
|
|
</ul>
|
|
% endfor
|
|
</div>
|
|
</form>
|