<%page expression_filter="h"/> <%! from openedx.core.djangolib.markup import HTML import six %> <% def is_radio_input(choice_id): return input_type == 'radio' and ((isinstance(value, six.string_types) and (choice_id == value)) or ( not isinstance(value, six.string_types) and choice_id in value )) %>
% if response_data['label']: ${response_data['label']} % endif % for description_id, description_text in response_data['descriptions'].items():

${description_text}

% endfor % for choice_id, choice_label in choices: <% label_class = 'response-label field-label label-inline' input_class = 'field-input input-' + input_type input_checked = '' if is_radio_input(choice_id) or (input_type != 'radio' and choice_id in value): input_class += ' submitted' if status.classname and not show_correctness == 'never': label_class += ' choicegroup_' + status.classname %>
% endfor
% if show_correctness != 'never': <%include file="status_span.html" args="status=status, status_id=id"/> % else: <%include file="status_span.html" args="status=status, status_id=id, hide_correctness=True"/> % endif
% if show_correctness == "never" and (value or status not in ['unsubmitted']):
${submitted_message}
%endif % if msg: ${HTML(msg)} % endif