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 %} +Quiz | +Pre requisite quiz | {% for paper in quizzes %} - {{ paper.quiz.description }}
---|---|
+ {{ 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 %} + | +
Quiz | +Result | + {% for paper in quizzes_taken %} +
---|---|
+ {{ paper.question_paper.quiz.description }} + | +
+ {% if paper.passed %}
+ Pass + {% else %} +Fail + {% endif %} + |
+
You have not taken any quiz yet !!
+ {% endif %} + + {% endblock %} -- cgit