From b9afb77607c9b05171a8d1abfd3c39201974f141 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Mon, 30 Jun 2014 14:52:37 +0530 Subject: changes for user dashboard --- testapp/templates/exam/quizzes_user.html | 57 ++++++++++++++++++++++++++++++-- 1 file changed, 54 insertions(+), 3 deletions(-) (limited to 'testapp/templates') 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 %} {% endblock %} +{% block script %} + + +{% endblock %} + + {% block manage %} + {% if cannot_attempt %} +

You have not passed the prerequisite & hence you cannot take the quiz.

+ {% endif %} +

List of quizzes availbale for you

{% if not quizzes %} -

No active quizzes for you

+
No active quizzes for you
{% endif %} + + + {% for paper in quizzes %} - {{ paper.quiz.description }}
+ + + + {% endfor %} +
QuizPre requisite quiz
+ {{ paper.quiz.description }}
+
+ {% 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 %} +
+
+

List of quizzes taken by you so far

+ {% if quizzes_taken %} + + + + {% for paper in quizzes_taken %} + + + + + {% endfor %} +
QuizResult
+ {{ paper.question_paper.quiz.description }} + + {% if paper.passed %} +

Pass

+ {% else %} +

Fail

+ {% endif %} +
+ {% else %} +

You have not taken any quiz yet !!

+ {% endif %} + + {% endblock %} -- cgit From 87c791a8600033e197d53346a8e2be873bfaa884 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Mon, 30 Jun 2014 15:06:56 +0530 Subject: adding marks obtained & percentage --- testapp/templates/exam/quizzes_user.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'testapp/templates') diff --git a/testapp/templates/exam/quizzes_user.html b/testapp/templates/exam/quizzes_user.html index a1204bd..c284b87 100644 --- a/testapp/templates/exam/quizzes_user.html +++ b/testapp/templates/exam/quizzes_user.html @@ -45,6 +45,9 @@ + + + {% for paper in quizzes_taken %} + + + {% endfor %}
Quiz ResultMraks ObtainedTotal MarksPercentage
@@ -57,6 +60,15 @@

Fail

{% endif %}
+ {{ paper.marks_obtained }} + + {{ paper.question_paper.total_marks }} + + {{ paper.percent }} +
-- cgit From ad4a695e16dc5de2bba4851bbc3329bcdaab76cf Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Mon, 30 Jun 2014 15:09:45 +0530 Subject: adding table designing --- testapp/templates/exam/quizzes_user.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testapp/templates') diff --git a/testapp/templates/exam/quizzes_user.html b/testapp/templates/exam/quizzes_user.html index c284b87..9a49df7 100644 --- a/testapp/templates/exam/quizzes_user.html +++ b/testapp/templates/exam/quizzes_user.html @@ -42,7 +42,7 @@

List of quizzes taken by you so far

{% if quizzes_taken %} - +
-- cgit From 3e9626308098bf412ca4f228f7667526ad52bbdd Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Wed, 2 Jul 2014 13:12:19 +0530 Subject: removing links --- testapp/templates/exam/quizzes_user.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testapp/templates') diff --git a/testapp/templates/exam/quizzes_user.html b/testapp/templates/exam/quizzes_user.html index 9a49df7..914b6b4 100644 --- a/testapp/templates/exam/quizzes_user.html +++ b/testapp/templates/exam/quizzes_user.html @@ -31,7 +31,7 @@
Quiz Result Mraks Obtained {% if paper.quiz.prerequisite %} - You have to pass {{ paper.quiz.prerequisite.description }} for taking {{ paper.quiz.description }} + You have to pass {{ paper.quiz.prerequisite.description }} for taking {{ paper.quiz.description }} {% else %} No pre requisites for {{ paper.quiz.description }} {% endif %} -- cgit