summaryrefslogtreecommitdiff
path: root/testapp/templates
diff options
context:
space:
mode:
authorPrabhu Ramachandran2014-07-02 13:58:21 +0530
committerPrabhu Ramachandran2014-07-02 13:58:21 +0530
commitba6308eb5dfe391305f5466fba00be46a4755f7e (patch)
treee29e4e5d3cd6c4a275b1421af6551cc37efc550e /testapp/templates
parentf077e3c60174884ec837dae7d58c01de49d0a2a6 (diff)
parent2e1a56c7d485b17dbeadf7458332c2e33a84f00e (diff)
downloadonline_test-ba6308eb5dfe391305f5466fba00be46a4755f7e.tar.gz
online_test-ba6308eb5dfe391305f5466fba00be46a4755f7e.tar.bz2
online_test-ba6308eb5dfe391305f5466fba00be46a4755f7e.zip
Merge pull request #31 from hardythe1/User-Dashboard
User dashboard
Diffstat (limited to 'testapp/templates')
-rw-r--r--testapp/templates/exam/quizzes_user.html69
1 files changed, 66 insertions, 3 deletions
diff --git a/testapp/templates/exam/quizzes_user.html b/testapp/templates/exam/quizzes_user.html
index b55d3e5..914b6b4 100644
--- a/testapp/templates/exam/quizzes_user.html
+++ b/testapp/templates/exam/quizzes_user.html
@@ -1,18 +1,81 @@
{% 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 {{ paper.quiz.prerequisite.description }} for taking {{ paper.quiz.description }}
+ {% 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 class="bordered-table zebra-striped">
+ <th>Quiz</th>
+ <th>Result</th>
+ <th>Mraks Obtained</th>
+ <th>Total Marks</th>
+ <th>Percentage</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>
+ <td>
+ {{ paper.marks_obtained }}
+ </td>
+ <td>
+ {{ paper.question_paper.total_marks }}
+ </td>
+ <td>
+ {{ paper.percent }}
+ </td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% else %}
+ <p>You have not taken any quiz yet !!</p>
+ {% endif %}
+
+
{% endblock %}