summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authorankitjavalkar2017-03-08 10:34:12 +0530
committerankitjavalkar2017-03-08 10:52:33 +0530
commitf57cfacf41f8a1d72a56ea8c875f906e7db2a15e (patch)
tree3aba6618219a203a3bda5d4c85ef0ad1c229ab1d /yaksh/templates
parenta53df8040785cffaf46bfc1775c59eed7c4a15c3 (diff)
downloadonline_test-f57cfacf41f8a1d72a56ea8c875f906e7db2a15e.tar.gz
online_test-f57cfacf41f8a1d72a56ea8c875f906e7db2a15e.tar.bz2
online_test-f57cfacf41f8a1d72a56ea8c875f906e7db2a15e.zip
Hide/Disable submit in correct code questions
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/question.html4
1 files 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" %}
<br><button class="btn btn-primary" type="submit" name="check" id="check" onClick="return validate();">Upload</button>&nbsp;&nbsp;
{% else %}
- {% if notification == None %}
+ {% if question in paper.get_questions_unanswered %}
<button class="btn btn-primary" type="submit" name="check" id="check" onClick="submitCode();">Check Answer <span class="glyphicon glyphicon-cog"></span></button>&nbsp;&nbsp;
{% 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 %}
<button class="btn btn-primary" onclick="call_skip('{{ URL_ROOT }}/exam/{{ question.id }}/skip/{{ paper.attempt_number }}/{{ paper.question_paper.id }}/')" name="skip" id="skip">Attempt Later <span class="glyphicon glyphicon-arrow-right"></span></button>
{% endif %}
</div>