Updated template to correctly handle checkbox values

This commit is contained in:
Will Daly
2013-03-25 15:12:06 -04:00
parent 1df35507a3
commit 3084361042

View File

@@ -32,8 +32,10 @@
% endif
>
<input type="${input_type}" name="input_${id}${name_array_suffix}" id="input_${id}_${choice_id}" value="${choice_id}"
% if choice_id == value:
% if input_type == 'radio' and choice_id == value:
checked="true"
% elif input_type != 'radio' and choice_id in value:
checked="true"
% endif
/> ${choice_description} </label>