summaryrefslogtreecommitdiff
path: root/testapp/templates/exam/monitor.html
diff options
context:
space:
mode:
authorPrabhu Ramachandran2011-12-24 05:46:36 -0800
committerPrabhu Ramachandran2011-12-24 05:46:36 -0800
commit95e9ea0f60b21595fa0f6ffea12da13b33821018 (patch)
tree8114286da06869c7059d6dbb2322641f15202408 /testapp/templates/exam/monitor.html
parent7104f495d01fb934af11c8dfd09da087174c1b12 (diff)
parent7b819758d4d60822c19611845a44f8c5301a391c (diff)
downloadonline_test-95e9ea0f60b21595fa0f6ffea12da13b33821018.tar.gz
online_test-95e9ea0f60b21595fa0f6ffea12da13b33821018.tar.bz2
online_test-95e9ea0f60b21595fa0f6ffea12da13b33821018.zip
Merge pull request #2 from parth115/master
Changed to Buildout
Diffstat (limited to 'testapp/templates/exam/monitor.html')
-rw-r--r--testapp/templates/exam/monitor.html67
1 files changed, 67 insertions, 0 deletions
diff --git a/testapp/templates/exam/monitor.html b/testapp/templates/exam/monitor.html
new file mode 100644
index 0000000..fb6cb58
--- /dev/null
+++ b/testapp/templates/exam/monitor.html
@@ -0,0 +1,67 @@
+{% extends "base.html" %}
+
+{% block title %} Quiz results {% endblock title %}
+
+{% block meta %} <meta http-equiv="refresh" content="30"/> {% endblock meta %}
+
+{% block content %}
+
+{% if not quizzes and not quiz %}
+<h1> Quiz results </h1>
+
+<p> No quizzes available. </p>
+
+{% endif %}
+
+{# ############################################################### #}
+{# This is rendered when we are just viewing exam/monitor #}
+{% if quizzes %}
+<h1> Available quizzes </h1>
+
+<ul>
+{% for quiz in quizzes %}
+<li><a href="{{URL_ROOT}}/exam/monitor/{{quiz.id}}/">{{ quiz.description }}</a></li>
+{% endfor %}
+</ul>
+{% endif %}
+
+{# ############################################################### #}
+{# This is rendered when we are just viewing exam/monitor/quiz_num #}
+{% if quiz %}
+<h1> {{ quiz.description }} results </h1>
+{% if papers %}
+{# <p> Quiz: {{ quiz_name }}</p> #}
+<p>Number of papers: {{ papers|length }} </p>
+
+<table border="1" cellpadding="3">
+ <tr>
+ <th> Name </th>
+ <th> Username </th>
+ <th> Roll number </th>
+ <th> Institute </th>
+ <th> Questions answered </th>
+ <th> Total marks </th>
+ <th> Attempts </th>
+ </tr>
+ {% for paper in papers %}
+ <tr>
+ <td> <a href="{{URL_ROOT}}/exam/user_data/{{paper.user.username}}">
+ {{ paper.user.get_full_name.title }}</a> </td>
+ <td> <a href="{{URL_ROOT}}/exam/user_data/{{paper.user.username}}">
+ {{ paper.user.username }}</a> </td>
+ <td> {{ paper.profile.roll_number }} </td>
+ <td> {{ paper.profile.institute }} </td>
+ <td> {{ paper.get_answered_str }} </td>
+ <td> {{ paper.get_total_marks }} </td>
+ <td> {{ paper.answers.count }} </td>
+ </tr>
+ {% endfor %}
+</table>
+{% else %}
+<p> No answer papers so far. </p>
+{% endif %} {# if papers #}
+{% endif %}
+
+<a href="{{URL_ROOT}}/admin/">Admin</a>
+
+{% endblock content %}