<%! from capa.util import remove_markup from django.utils.translation import ugettext as _ from openedx.core.djangolib.markup import HTML %> <% element_checked = False %> % for choice_id, _ in choices: <% choice_id = choice_id %> %if choice_id in value: <% element_checked = True %> %endif % endfor
% for choice_id, choice_description in choices: <% choice_id = choice_id %>
% for content_node in choice_description: % if content_node['type'] == 'text': ${content_node['contents']} % else: <% my_id = content_node.get('contents','') %> <% my_val = value.get(my_id,'') %> %endif ${content_node['tail_text']} % endfor

% endfor
% if input_type == 'checkbox' or not element_checked: <%include file="status_span.html" args="status=status, status_id=id"/> % endif
% if show_correctness == "never" and (value or status not in ['unsubmitted']):
${_(submitted_message)}
%endif % if msg: ${HTML(msg)} % endif