From f57cfacf41f8a1d72a56ea8c875f906e7db2a15e Mon Sep 17 00:00:00 2001
From: ankitjavalkar
Date: Wed, 8 Mar 2017 10:34:12 +0530
Subject: Hide/Disable submit in correct code questions
---
yaksh/templates/yaksh/question.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html
index 5b5326d..9dd0de5 100644
--- a/yaksh/templates/yaksh/question.html
+++ b/yaksh/templates/yaksh/question.html
@@ -210,13 +210,13 @@ function call_skip(url)
{% elif question.type == "upload" %}
{% else %}
- {% if notification == None %}
+ {% if question in paper.get_questions_unanswered %}
{% endif %}
{% endif %}
{% if paper.question_paper.quiz.allow_skip and not paper.get_questions_unanswered|length_is:"1" %}
- {% if notification == None %}
+ {% if question in paper.get_questions_unanswered %}
{% endif %}
--
cgit