diff options
author | prathamesh | 2015-02-24 09:29:35 +0530 |
---|---|---|
committer | prathamesh | 2015-02-24 09:29:35 +0530 |
commit | caf153bcaa8b9a0096a4653b562198f2ba2cef9a (patch) | |
tree | 39f4fcd32d3936375a25caba7ca54c5654fac170 /testapp/exam/templates | |
parent | 8350eedd62176d2756aef06c13b363e552337109 (diff) | |
download | online_test-caf153bcaa8b9a0096a4653b562198f2ba2cef9a.tar.gz online_test-caf153bcaa8b9a0096a4653b562198f2ba2cef9a.tar.bz2 online_test-caf153bcaa8b9a0096a4653b562198f2ba2cef9a.zip |
Question navigator implemented
Students can now move from one question to another through
the navigator window.
Also, the questions attempted will have different color then
the ones which are not attempted.
Diffstat (limited to 'testapp/exam/templates')
-rw-r--r-- | testapp/exam/templates/exam/question.html | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/testapp/exam/templates/exam/question.html b/testapp/exam/templates/exam/question.html index 03284ce..96e7bd6 100644 --- a/testapp/exam/templates/exam/question.html +++ b/testapp/exam/templates/exam/question.html @@ -82,9 +82,29 @@ function setSnippetHeight() </div> </div> </div> +<div class = container> +<div class="sidebar"> + <p>Question Navigator </p> + <div class="pagination"> + <ul> + {% for qid, num in questions.items %} + {% if qid in to_attempt %} + {% if qid == question.id|slugify %} + <li class="active"><a href="{{ URL_ROOT }}/exam/{{ qid }}/{{ paper.attempt_number }}/{{ paper.question_paper.id }}/">{{ num }}</a></li> + {% else %} + <li><a href="{{ URL_ROOT }}/exam/{{ qid }}/{{ paper.attempt_number }}/{{ paper.question_paper.id }}/">{{ num }}</a></li> + {% endif %} + {% endif %} + {% if qid in submitted %} + <li class="done"><a href="#">{{ num }}</a></li> + {% endif %} + {% endfor %} + </ul> + </div> +</div> +</div> - - <h4><u> {{ question.summary }} </u><font class=pull-right>(Marks : {{ question.points }}) </font></h4><br> + <h4><u> {{ question.summary }} </u><font class=pull-right>(Marks : {{ question.points }}) </font></h4><br> <font size=3 face=arial> {{ question.description|safe }} </font> {% if error_message %} <div class="alert alert-error"> |