diff options
author | Prabhu Ramachandran | 2011-11-21 02:41:27 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2011-11-21 02:41:27 +0530 |
commit | c2185243e9e3e8a66a2a4c7a549d9bc00fd9f2fa (patch) | |
tree | 6109a8f027139e8d86d58bc0cb6f147b29c31d9c /templates/exam/user_data.html | |
parent | 8f7b25c5639dbe7912df35ea94dfb665d74d0107 (diff) | |
download | online_test-c2185243e9e3e8a66a2a4c7a549d9bc00fd9f2fa.tar.gz online_test-c2185243e9e3e8a66a2a4c7a549d9bc00fd9f2fa.tar.bz2 online_test-c2185243e9e3e8a66a2a4c7a549d9bc00fd9f2fa.zip |
ENH: Better monitor reporting and user_data info
This checkin adds the following:
- /exam/monitor displays all available quizzes.
- /exam/monitor/quiz_id displays results for the specified quiz.
- /exam/user_data/username displays the users data including answers.
- A link is provided in monitor output to see user data.
- More monitor data like number of attempts.
- The monitor and user data are only shown for a user who is
authenticated and is staff.
Diffstat (limited to 'templates/exam/user_data.html')
-rw-r--r-- | templates/exam/user_data.html | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/templates/exam/user_data.html b/templates/exam/user_data.html new file mode 100644 index 0000000..7560903 --- /dev/null +++ b/templates/exam/user_data.html @@ -0,0 +1,38 @@ +{% extends "base.html" %} + +{% block title %} Data for user {{ user_data.name }} {% endblock title %} + +{% block content %} + +<h1> Data for user {{ user_data.name }} </h1> + +<p> Name: {{ user_data.name }} </p> +<p> Username: {{ user_data.username }} </p> +<p> Roll number: {{ user_data.rollno }} </p> +<p> Email: {{ user_data.email }} </p> + +{% if user_data.papers %} + +{% for paper in user_data.papers %} + +<h2> Quiz: {{ paper.name }} </h2> + +<p> Answered questions: {{ paper.answered }} </p> +<p> Total attempts at questions: {{ paper.attempts }} </p> +<p> Total marks: {{ paper.total }} </p> + +{% if paper.answers %} +<h3> Answers </h3> +{% for question, answer in paper.answers.items %} +<h4> Question summary: {{ question }} </h4> +<pre> +{{ answer|safe }} +</pre> +{% endfor %} +{% endif %} {# if paper.answers #} + +{% endfor %} {# for paper in user_data.papers #} + +{% endif %} {# if user_data.papers #} + +{% endblock content %} |