From 1d5cd5253b125eb6406dd67e9f267c208658bcfc Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Fri, 3 Feb 2017 14:40:50 +0530 Subject: renamed quiz model attribute from can_skip_questions to allow_skip --- yaksh/templates/exam.html | 12 ++++++++---- yaksh/templates/yaksh/question.html | 4 +--- 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/exam.html b/yaksh/templates/exam.html index 00633a3..dfcaf2d 100644 --- a/yaksh/templates/exam.html +++ b/yaksh/templates/exam.html @@ -31,8 +31,8 @@

Question Navigator

diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index 8fea8b3..6218b18 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -199,8 +199,7 @@ function call_skip(url) {% else %}    {% endif %} - {% if paper.question_paper.quiz.can_skip_questions %} - {% if paper.unanswered.all|length != 1 %} + {% if paper.question_paper.quiz.allow_skip and not paper.get_questions_unanswered|length_is:"1" %} @@ -208,7 +207,6 @@ function call_skip(url) {% endif %} - {% endif %}