diff options
author | prathamesh | 2016-04-01 18:03:57 +0530 |
---|---|---|
committer | prathamesh | 2016-04-01 18:03:57 +0530 |
commit | c390fcc28c4499e0594b8ff49df283efc4043b26 (patch) | |
tree | e5df540af6cc44022a097ded249e671b04f7b1ba /yaksh/templates | |
parent | 561168145ef75c0182ab0ee7d54779973b739e6c (diff) | |
download | online_test-c390fcc28c4499e0594b8ff49df283efc4043b26.tar.gz online_test-c390fcc28c4499e0594b8ff49df283efc4043b26.tar.bz2 online_test-c390fcc28c4499e0594b8ff49df283efc4043b26.zip |
Resolved minor issues after rebase
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/yaksh/question.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index 8976fed..0c48167 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -90,11 +90,11 @@ function call_skip(url) form.action = url form.submit(); } - {% if question.type == 'code' and success == 'True'%} - {% if to_attempt|length != 0 %} + {% if question.type == 'code' and success == 'True'%} + {% if paper.questions_left %} window.setTimeout(function() { - {% for qid, num in questions.items %} + {% for qid in paper.questions.all %} location.href="{{ URL_ROOT }}/exam/{{ qid.id }}/{{ paper.attempt_number }}/{{ paper.question_paper.id }}/" {% endfor %} }, 1000); @@ -120,7 +120,7 @@ function call_skip(url) <li><h5><a> Hi {{ paper.user.first_name.title}} {{ paper.user.last_name.title}} </a></h5></li> </ul><br> <div class=time-div id="time_left"></div> - <h5 class=td1-class>You have {{ paper.questions_left }} question(s) left in {{ paper.question_paper.quiz.description }}</h5> + <h5>You have {{ paper.questions_left }} question(s) left in {{ paper.question_paper.quiz.description }}</h5> </div> </div> </div> |