summaryrefslogtreecommitdiff
path: root/templates/exam
diff options
context:
space:
mode:
authorPrabhu Ramachandran2011-11-10 15:13:55 +0530
committerPrabhu Ramachandran2011-11-10 15:13:55 +0530
commitd5cd760142772eb91d3c9ce01b3ae8ea86d160da (patch)
tree0a0b778f3748aba0966ccb4823ad459f287b1dff /templates/exam
parent812f79bd79c54b3b362ef616c121fb500b0b8a11 (diff)
downloadonline_test-d5cd760142772eb91d3c9ce01b3ae8ea86d160da.tar.gz
online_test-d5cd760142772eb91d3c9ce01b3ae8ea86d160da.tar.bz2
online_test-d5cd760142772eb91d3c9ce01b3ae8ea86d160da.zip
ENH: Cleaning up test code add rollno to monitor
Adding a rollnumber to monitor table and cleaning up the test code to be a separate function. This should be more reusable as we could technically run this in a separate process with an unpriviledged user.
Diffstat (limited to 'templates/exam')
-rw-r--r--templates/exam/monitor.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/templates/exam/monitor.html b/templates/exam/monitor.html
index 21618e9..12360a2 100644
--- a/templates/exam/monitor.html
+++ b/templates/exam/monitor.html
@@ -3,14 +3,15 @@
<meta http-equiv="refresh" content="30"/>
{% if quiz_list %}
-<table border="1">
+<table border="1" cellpadding="3">
<tr>
- <th>Student </th> <th>Questions answered</th> <th>Total marks</th>
+ <th>Student </th> <th> Roll number </th> <th>Questions answered</th> <th>Total marks</th>
</tr>
{% for paper in quiz_list %}
<tr>
- <td>{{ paper.username }} </td>
- <td>{{ paper.answered }} </td>
+ <td> {{ paper.username }} </td>
+ <td> {{ paper.rollno }} </td>
+ <td> {{ paper.answered }} </td>
<td> {{ paper.total }} </td>
</tr>