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

{% block pagetitle %}
<div class="yakshnav fixed-top" style=" padding-top: 0.5%;padding-bottom: 0.5%;">
    <a class="navbar-brand" href="{{ URL_ROOT }}/exam/"  >
    <img src="{{ URL_ROOT }}/static/yaksh/images/yaksh_banner.png" alt="YAKSH">
    </img>
    </a> 
</div>
{% endblock %}

{% block content %}
{% if module_id and not paper.question_paper.quiz.is_trial %}
<center>
    <div class="alert alert-info">
        Note:- Please Click on the Next button to submit the quiz. Please do not close the browser without clicking Next.
    </div>
</center>
{% endif %}
{% csrf_token %}
    {% if paper.questions_answered.all or paper.questions_unanswered.all %}
        <center>
        <div class="alert alert-info col-md-8 animated flash">
         Note:- Please Click on the Next button to submit the quiz. Please do not close the browser without clicking Next. 
        </div>
        <div class="col-md-8 yakshwell">
            <h3>Submission Status</h3>
            <table class="table table-bordered table-responsive-sm" >
                <thead>
                    <tr class="yakshred text-center">
                        <th> Question</th>
                        <th> Status </th>
                    </tr>
                </thead>

                {% for question in paper.questions.all %}
                    <tbody>
                        {% if question in paper.questions_answered.all %}
                            <tr class="table-success">
                            <td> {{ question.summary }} </td>
                            <td> Attempted </td>
                        {% else %}
                            <tr class="table-danger">
                            <td> {{ question }} </td>
                            <td> Not completed </td>
                        {% endif %}
                        </tr>
                    </tbody>
                {% endfor %}
            </table>
        </div>
        </center>
    {% endif %}
	<center class="yakshwell container-fluid"><h5 class="yakshwell"><span class="alert alert-success animated flash">{{message}}</span></h5></center>
    <center>
    <br>
    {% if module_id and not paper.question_paper.quiz.is_trial %}
        {% if first_unit %}
            <a href="{{URL_ROOT}}/exam/next_unit/{{course_id}}/{{module_id}}/{{learning_unit.id}}/1" class="btn btn-info" id="Next"> Next
                <span class="fa fa-step-forward">
                </span>
            </a>
        {% else %}
            <a href="{{URL_ROOT}}/exam/next_unit/{{course_id}}/{{module_id}}/{{learning_unit.id}}" class="btn btn-info" id="Next"> Next
                <span class="fa fa-step-forward">
                </span>
            </a>
        {% endif %}
    {% else %}
        <a href="{{URL_ROOT}}/exam/" id="home" class="btn btn-success"> Home </a>
    {% endif %}
    </center>
{% endblock content %}