Fixed undefined variable error in choicegroup.html

This commit is contained in:
Will Daly
2013-03-08 14:06:45 -05:00
parent d9b68e2de2
commit 607f27e715

View File

@@ -21,11 +21,15 @@
<%
if status == 'correct':
correctness = 'correct'
if status == 'incorrect':
elif status == 'incorrect':
correctness = 'incorrect'
else:
correctness = None
%>
% if correctness:
class="choicegroup_${correctness}"
% endif
% endif
>
<input type="${input_type}" name="input_${id}${name_array_suffix}" id="input_${id}_${choice_id}" value="${choice_id}"
% if choice_id in value: