${md_to_html_review(q['text'], q)}
% if q['type'] == 'radio':
% for opt in q['options']:
-
% if q['answer'] is not None and str(loop.index) == q['answer']:
${md_to_html_review(' ' + opt, q)}
% if q['correct'][loop.index] > 0:
% else:
% endif
% else:
${md_to_html_review(' ' + opt, q)}
% if q['correct'][loop.index] > 0:
% endif
% endif
% endfor
% elif q['type'] == 'checkbox':
% for opt in q['options']:
-
% if q['answer'] is not None and str(loop.index) in q['answer']:
${md_to_html_review(' ' + opt, q)}
% if q['correct'][loop.index] > 0:
% elif q['correct'][loop.index] < 0:
% endif
% else:
${md_to_html_review(' ' + opt, q)}
% if q['correct'][loop.index] > 0:
% elif q['correct'][loop.index] < 0:
% endif
% endif
% endfor
% elif q['type'] in ('text', 'text_regex', 'textarea'):
${q['answer'] if q['answer'] is not None else ''}
% endif
% if t['show_hints']:
% if 'hint' in q:
${md_to_html_review(q['hint'], q)}
% endif # hint
% endif
% if t['show_points']:
(Cotação: ${round(q['points'] / total_points * 20.0, 1)} pontos)
% endif
% if t['state'] == 'FINISHED':
% endif