{% load i18n %} {% load static %} {% with element_checked=False %} {% for choice_id, _ in choices %} {% if choice_id in value %} {% with element_checked=True %}{% endwith %} {% endif %} {% endfor %}
{% for choice_id, choice_description in choices %}
{% for content_node in choice_description %} {% if content_node.type == 'text' %} {{ content_node.contents }} {% else %} {% with my_id=content_node.contents|default:'' %} {% with my_val=value.my_id|default:'' %} {% endwith %} {% endwith %} {% endif %} {{ content_node.tail_text }} {% endfor %}

{% endfor %}
{% if input_type == 'checkbox' or not value or status.classname == 'incomplete' or status.classname == 'unsubmitted' or status.classname == 'unanswered' %} {% include "status_span.html" with status=status status_id=id %} {% endif %}
{% if show_correctness == "never" %} {% if value or status != "unsubmitted" %}
{{ submitted_message }}
{% endif %} {% endif %} {% if msg %}{{ msg|safe }}{% endif %}
{% endwith %}