summaryrefslogtreecommitdiff
path: root/testapp/templates/exam/monitor.html
blob: 0b59f7686860931f1ab2830c1a4a7c5872c68016 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{% extends "base.html" %}

<html lang="en">

{% block title %} Quiz results {% endblock title %}

{% block meta %} <meta http-equiv="refresh" content="30"/> {% endblock meta %}


  <body>
{% block content %}
    <div class="container">
     <div class="content">
<div class="page-header">

{% if not quizzes and not quiz %}
<h1><center> Quiz results </center></h1>
</div>
  <div class=row>
         <div class=span14>

<center><h5> No quizzes available. </h5></center>

{% endif %}

{# ############################################################### #}
{# This is rendered when we are just viewing exam/monitor #}
{% if quizzes %}
<center><h1> Available quizzes </h1></center>
</div>
  <div class=row>
         <div class=span14>

<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 %}
<center><h1> {{ quiz.description }} results  </h1></center>
</div>
  <div class=row>
         <div class=span14>

{% if papers %}
{# <p> Quiz: {{ quiz_name }}</p> #}
<p>Number of papers: {{ papers|length }} </p>
<style type="text/css">
table td {
  vertical-align: top;
  border-top: 1px solid #ddd;
}
table tbody th {
 border-top: 1px solid #ddd;
  vertical-align: top;
}
</style>
<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>
</div></div></div>


<footer>
        <p>&copy; FOSSEE group, IIT Bombay</p>
      </footer>
</div>
{% endblock content %}