summaryrefslogtreecommitdiff
path: root/yaksh/templates/yaksh/complete.html
blob: e4317feae94e069776dd6841d5d6054c518d7810 (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
{% extends "base.html" %}

{% block pagetitle %}<img src="{{ URL_ROOT }}/static/yaksh/images/yaksh_text.png"
width="80" alt="YAKSH"></img>{% endblock %}
{% block content %}
{% csrf_token %}
    {% if paper.questions_answered.all or paper.questions_unanswered.all %}
<center><table class="table table-bordered" >
        <caption> <center><h3>Submission Status</h3> </center></caption>
        <thead>
            <tr>
                <th> Question</th>
                <th> State </th>
            </tr>
        </thead>

        {% for question in paper.questions.all %}
            <tbody>
                {% if question in paper.questions_answered.all %}
                    <tr class="info">
                    <td> {{ question.summary }} </td>
                    <td> Attempted </td>
                {% else %}
                    <tr class="danger">
                    <td> {{ question }} </td>
                    <td> Not completed </td>
                {% endif %}
                </tr>
            </tbody>
        {% endfor %}
</table></center>
    {% endif %}
	<center><h3>{{message}}</h3></center>
    <center>
    <br>
    {% if not module_id %}
        <br><center><h4>You may now close the browser.</h4></center><br>
    {% endif %}
    <a href="{{URL_ROOT}}/exam/" id="home" class="btn btn-success"> Home </a>
    {% if module_id and not user == "moderator" %}
        {% if first_unit %}
            <a href="{{URL_ROOT}}/exam/next_unit/{{course_id}}/{{module_id}}/{{learning_unit.id}}/1" class="btn btn-info"> Next
                <span class="glyphicon glyphicon-chevron-right">
                </span>
            </a>
        {% else %}
            <a href="{{URL_ROOT}}/exam/next_unit/{{course_id}}/{{module_id}}/{{learning_unit.id}}" class="btn btn-info"> Next
                <span class="glyphicon glyphicon-chevron-right">
                </span>
            </a>
        {% endif %}
    {% endif %}
    </center>
{% endblock content %}