{% extends "base.html" %} {% block title %} Data for user {{ data.user.get_full_name.title }} {% endblock title %} {% block content %}
Name: {{ data.user.get_full_name.title }}
Username: {{ data.user.username }}
{% if data.profile %}
Roll number: {{ data.profile.roll_number }}
Position: {{ data.profile.position }}
Department: {{ data.profile.department }}
Institute: {{ data.profile.institute }}
{% endif %}
Email: {{ data.user.email }}
Date joined: {{ data.user.date_joined }}
Last login: {{ data.user.last_login }}
Questions correctly answered: {{ paper.get_answered_str }}
Total attempts at questions: {{ paper.answers.count }}
Marks obtained: {{ paper.get_total_marks }}
Start time: {{ paper.start_time }}
User IP address: {{ paper.user_ip }}
Question: {{ question.id }}. {{ question.summary }} (Points: {{ question.points }})
{% if question.type == "mcq" %}Choices: {% for option in question.options.strip.splitlines %} {{option}}, {% endfor %}
Student answer: {{ answers.0 }}
{% else %}{# non-mcq questions #}{% for answer in answers %}################################################################################ {{ answer.answer.strip }} # Autocheck: {{ answer.error }} {% endfor %}{% endif %} {% with answers|last as answer %}
Marks: {{answer.marks}}
{% endwith %} {% endfor %} {# for question, answers ... #}