{% extends "base.html" %} {% block content %}

{{ assessment.name }}

{{ assessment.description }}

{# Conditionally render tabbed view or simple list view #} {% if assessment.show_domain_wise %}
{% for domain, questions_in_domain in questions_by_domain %}
{# Add some padding to the top of the tab content #} {% for question in questions_in_domain %}
{{ loop.index }}. {{ question.text }}
{% if question.question_type == 'blank' %}
{% else %} {% for choice in question.choices_unique %}
{% endfor %} {% endif %}
{% endfor %} {% if loop.last and 'cbcl' in assessment.name.lower() %}
Therapist Notes
{% endif %}
{% if not loop.first %} {% else %} {% endif %} {% if not loop.last %} {% else %} {% endif %}
{% endfor %} {% else %} {% for domain, questions_in_domain in questions_by_domain %} {% for question in questions_in_domain %}
{{ loop.index }}. {{ question.text }}
{% if question.domain %}

Domain: {{ question.domain }}

{% endif %} {% if question.question_type == 'blank' %}
{% else %} {% for choice in question.choices_unique %}
{% endfor %} {% endif %}
{% endfor %} {% endfor %} {% if 'cbcl' in assessment.name.lower() %}
Therapist Notes
{% endif %} {% endif %}
{% endblock %} {% block scripts %} {% endblock %}