diff options
author | maheshgudi | 2018-01-08 16:57:42 +0530 |
---|---|---|
committer | maheshgudi | 2018-01-08 16:57:42 +0530 |
commit | cc956355f8ddb13e9430f6e41ab183eebc848530 (patch) | |
tree | b2cbe5820a3c229b184bf1788f53427454d08cc7 /yaksh/templates/exam.html | |
parent | 01b4eaa6543c333a2a09748701301f286b14f50c (diff) | |
download | online_test-cc956355f8ddb13e9430f6e41ab183eebc848530.tar.gz online_test-cc956355f8ddb13e9430f6e41ab183eebc848530.tar.bz2 online_test-cc956355f8ddb13e9430f6e41ab183eebc848530.zip |
Allow access to previous completed questions in exercises
Diffstat (limited to 'yaksh/templates/exam.html')
-rw-r--r-- | yaksh/templates/exam.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/yaksh/templates/exam.html b/yaksh/templates/exam.html index ce1d3b8..012adbe 100644 --- a/yaksh/templates/exam.html +++ b/yaksh/templates/exam.html @@ -60,6 +60,10 @@ {% else %} {% if qid.id == question.id %} <li class="active"><a style="width:25%" data-toggle="tooltip" title="{{ qid.description|striptags }}">{{ forloop.counter }}</a></li> + {% elif qid in paper.get_questions_answered %} + <li><a style="background-color:#B4B8BA; width:25%" href="#" data-toggle="tooltip" + onclick="call_skip('{{ URL_ROOT }}/exam/{{ question.id }}/skip/{{ qid.id }}/{{ paper.attempt_number }}/{{ module.id }}/{{ paper.question_paper.id }}/{{course.id}}/')" + title="{{ qid.description }}">{{ forloop.counter }}</a></li> {% else %} <li class="disabled"><a style="width:25%" data-toggle="tooltip" title="{{ qid.description|striptags }}">{{ forloop.counter }}</a></li> {% endif %} |