{% extends 'base.html' %} {% load static %} {% load cbt_filters %} {% block content %}

Welcome back, {{ request.user.get_full_name|default:request.user.username }}!

Your Scholarship Assessment Dashboard

Completed

{{ completed_count }} / {{ total_assessments }}

Assessments
Success Rate

{{ success_rate }}%

Overall Performance
In Progress

{{ in_progress_attempts.count }}

Active Attempts
Total Score

{{ total_score }}

Points Earned

Review of submitted responses

See each completed assessment, your submitted answers, and the correct option(s) for quick review.

{{ completed_attempts|length }} reviewed
{% if completed_attempts %}
{% for attempt in completed_attempts %}

{% for answer in attempt.review_answers %} {% empty %} {% endfor %}
# Question Your answer Correct option(s) Status
{{ forloop.counter }} {{ answer.question.prompt }} {{ answer.given_answer|default:"— Not answered —" }} {% if answer.correct_options %} {% for option in answer.correct_options %} {{ option }} {% endfor %} {% else %} No answer key configured {% endif %} {% if answer.is_correct %} Correct {% else %} Review {% endif %}
No responses recorded for this attempt.
{% endfor %}
{% else %}
Once you complete an assessment, its answers and correct options will appear here.
{% endif %}

Recently Completed

{% if completed_attempts %} {% else %}
You haven't completed any assessments yet. Start your first one.
{% endif %}

Available Assessments

{% if assessments %}
{% for assessment in assessments %} {% with in_progress=in_progress_dict|get:assessment.pk completed=completed_dict|get:assessment.pk %}
{{ assessment.title }}

{{ assessment.description|truncatewords:25|default:"No description available." }}

⏱ {{ assessment.duration_minutes }} min
{% if assessment.subjects_list %}
{% for subject in assessment.subjects_list %}
{{ subject.name }}
{% if subject.passed %} Passed {% elif subject.attempted %} Attempted {% else %} Available {% endif %}
{{ subject.total_questions|default:0 }} question{{ subject.total_questions|default:0|pluralize }} {% if subject.passed or subject.attempted %} {% else %} Start Subject {% endif %}
{% endfor %}
{% else %}
No active subjects are available for this assessment yet.
{% endif %}
{% endwith %} {% endfor %}
{% else %}
No assessments are currently available.
{% endif %}
{% if in_progress_attempts %}

Continue Your Assessments

{% for attempt in in_progress_attempts %}
{{ attempt.assessment.title }}

Started {{ attempt.started_at|timesince }} ago

Resume Now
{% endfor %}
{% endif %}
{% endblock %}