blob: c2e8014a282c36fe344c9f1ea074f48e42223fa3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{% extends "base.html" %}
{% block title %} Data for user {{ user_data.name.title }} {% endblock title %}
{% block content %}
<h1> Data for user {{ user_data.name.title }} </h1>
<p>
Name: {{ user_data.name.title }} <br/>
Username: {{ user_data.username }} <br/>
Roll number: {{ user_data.rollno }} <br/>
Email: {{ user_data.email }} <br/>
Position: {{ user_data.position }} <br/>
Department: {{ user_data.department }} <br/>
Institute: {{ user_data.institute }} <br/>
Date joined: {{ user_data.date_joined }} <br/>
Last login: {{ user_data.last_login }}
</p>
{% if user_data.papers %}
{% for paper in user_data.papers %}
<h2> Quiz: {{ paper.name }} </h2>
<p>
Answered questions: {{ paper.answered }} <br/>
Total attempts at questions: {{ paper.attempts }} <br/>
Total marks: {{ paper.total }} <br/>
Start time: {{ paper.start_time }} <br/>
User IP address: {{ paper.user_ip }}
</p>
{% if paper.answers %}
<h3> Answers </h3>
{% for question, answer in paper.answers.items %}
<p><strong> Question: {{ question }} </strong> </p>
<pre>
{{ answer|safe }}
</pre>
{% endfor %}
{% endif %} {# if paper.answers #}
{% endfor %} {# for paper in user_data.papers #}
{% endif %} {# if user_data.papers #}
{% endblock content %}
|