{% extends "base.html" %} {% block title %} Data for user {{ user_data.name.title }} {% endblock title %} {% block content %}

Data for user {{ user_data.name.title }}

Name: {{ user_data.name.title }}
Username: {{ user_data.username }}
Roll number: {{ user_data.rollno }}
Email: {{ user_data.email }}
Position: {{ user_data.position }}
Department: {{ user_data.department }}
Institute: {{ user_data.institute }}
Date joined: {{ user_data.date_joined }}
Last login: {{ user_data.last_login }}

{% if user_data.papers %} {% for paper in user_data.papers %}

Quiz: {{ paper.name }}

Answered questions: {{ paper.answered }}
Total attempts at questions: {{ paper.attempts }}
Total marks: {{ paper.total }}
Start time: {{ paper.start_time }}
User IP address: {{ paper.user_ip }}

{% if paper.answers %}

Answers

{% for question, answer in paper.answers.items %}

Question: {{ question }}

 
{{ answer|safe }}
{% endfor %} {% endif %} {# if paper.answers #} {% endfor %} {# for paper in user_data.papers #} {% endif %} {# if user_data.papers #} {% endblock content %}