diff options
author | Prabhu Ramachandran | 2015-04-13 00:55:01 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2015-04-13 00:55:01 +0530 |
commit | 7acbd64bff389a838f049234e78889a2b94a4f94 (patch) | |
tree | b5646fa2d68373310bbf55e75cf15bb8f3b2e333 /testapp/exam/templates | |
parent | 7f52ecfdbf27d3e2bf6f481c3f48a52f1a1a639a (diff) | |
parent | bcfaf246852cb90a519aab3d0cea21599fd1fd55 (diff) | |
download | online_test-7acbd64bff389a838f049234e78889a2b94a4f94.tar.gz online_test-7acbd64bff389a838f049234e78889a2b94a4f94.tar.bz2 online_test-7acbd64bff389a838f049234e78889a2b94a4f94.zip |
Merge pull request #43 from prathamesh920/question_navigator
Question navigator
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 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"> |