summaryrefslogtreecommitdiff
path: root/testapp/exam/templates
diff options
context:
space:
mode:
authorprathamesh2015-04-07 15:33:23 +0530
committerprathamesh2015-04-07 15:33:23 +0530
commitbcfaf246852cb90a519aab3d0cea21599fd1fd55 (patch)
treeb5646fa2d68373310bbf55e75cf15bb8f3b2e333 /testapp/exam/templates
parent1e26be51bc269fc3884d75ace33bfd6c4627547f (diff)
parentb0551e3cb8dc59fb83ea622375c9e53003fcb489 (diff)
downloadonline_test-bcfaf246852cb90a519aab3d0cea21599fd1fd55.tar.gz
online_test-bcfaf246852cb90a519aab3d0cea21599fd1fd55.tar.bz2
online_test-bcfaf246852cb90a519aab3d0cea21599fd1fd55.zip
Question navigator implemented
Diffstat (limited to 'testapp/exam/templates')
-rw-r--r--testapp/exam/templates/exam/question.html24
1 files changed, 22 insertions, 2 deletions
diff --git a/testapp/exam/templates/exam/question.html b/testapp/exam/templates/exam/question.html
index 977b388..57bfd53 100644
--- a/testapp/exam/templates/exam/question.html
+++ b/testapp/exam/templates/exam/question.html
@@ -97,9 +97,29 @@ function validate(){
</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">