summaryrefslogtreecommitdiff
path: root/testapp/templates/exam/quizzes_user.html
diff options
context:
space:
mode:
authorhardythe12014-06-30 14:52:37 +0530
committerhardythe12014-06-30 14:52:37 +0530
commitb9afb77607c9b05171a8d1abfd3c39201974f141 (patch)
treef8777d53f487c7fb16226bd69296da2e12297a15 /testapp/templates/exam/quizzes_user.html
parent3c1880ffc5edc2d58f890cc32d36f1717082395a (diff)
downloadonline_test-b9afb77607c9b05171a8d1abfd3c39201974f141.tar.gz
online_test-b9afb77607c9b05171a8d1abfd3c39201974f141.tar.bz2
online_test-b9afb77607c9b05171a8d1abfd3c39201974f141.zip
changes for user dashboard
Diffstat (limited to 'testapp/templates/exam/quizzes_user.html')
-rw-r--r--testapp/templates/exam/quizzes_user.html57
1 files changed, 54 insertions, 3 deletions
diff --git a/testapp/templates/exam/quizzes_user.html b/testapp/templates/exam/quizzes_user.html
index b55d3e5..a1204bd 100644
--- a/testapp/templates/exam/quizzes_user.html
+++ b/testapp/templates/exam/quizzes_user.html
@@ -1,18 +1,69 @@
{% extends "user.html" %}
-{% block subtitle %}Available Quizzes{% endblock %}
+{% block subtitle %}Hello {{ user.first_name }}, welcome to your dashboard !{% endblock %}
{% block css %}
<link rel="stylesheet" href="{{ URL_ROOT }}/static/exam/css/question_quiz.css" type="text/css" />
{% endblock %}
+{% block script %}
+<script src="{{ URL_ROOT }}/static/exam/js/bootstrap-alert.js"></script>
+<script src="{{ URL_ROOT }}/static/exam/js/quizzes_user.js"></script>
+{% endblock %}
+
+
{% block manage %}
+ {% if cannot_attempt %}
+ <p>You have not passed the prerequisite & hence you cannot take the quiz.</p>
+ {% endif %}
+ <h4>List of quizzes availbale for you</h4>
{% if not quizzes %}
- <center><h4>No active quizzes for you</h4></center>
+ <h5>No active quizzes for you</h5>
{% endif %}
+ <table>
+ <th>Quiz</th>
+ <th>Pre requisite quiz</th>
{% for paper in quizzes %}
- <a href="{{ URL_ROOT }}/exam/intro/{{paper.id}}">{{ paper.quiz.description }}</a><br>
+ <tr>
+ <td>
+ <a href="{{ URL_ROOT }}/exam/intro/{{paper.id}}">{{ paper.quiz.description }}</a><br>
+ </td>
+ <td>
+ {% if paper.quiz.prerequisite %}
+ You have to pass <a href="{{ URL_ROOT }}/exam/intro/{{paper.quiz.prerequisite.id}}">{{ paper.quiz.prerequisite.description }}</a> for taking <a href="{{ URL_ROOT }}/exam/intro/{{paper.id}}">{{ paper.quiz.description }}</a>
+ {% else %}
+ No pre requisites for {{ paper.quiz.description }}
+ {% endif %}
+ </td>
+ </tr>
{% endfor %}
+ </table>
+ <hr>
+ <h4>List of quizzes taken by you so far</h4>
+ {% if quizzes_taken %}
+ <table>
+ <th>Quiz</th>
+ <th>Result</th>
+ {% for paper in quizzes_taken %}
+ <tr>
+ <td>
+ {{ paper.question_paper.quiz.description }}
+ </td>
+ <td>
+ {% if paper.passed %}
+ <p>Pass</p>
+ {% else %}
+ <p>Fail</p>
+ {% endif %}
+ </td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% else %}
+ <p>You have not taken any quiz yet !!</p>
+ {% endif %}
+
+
{% endblock %}