From da7014b32635f47d0fd66931ce5961e54f82ae94 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Tue, 24 Feb 2015 14:13:38 +0530 Subject: Answer is now saved from the question navigator as well --- testapp/exam/templates/exam/question.html | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'testapp/exam/templates') diff --git a/testapp/exam/templates/exam/question.html b/testapp/exam/templates/exam/question.html index 96e7bd6..5d03b37 100644 --- a/testapp/exam/templates/exam/question.html +++ b/testapp/exam/templates/exam/question.html @@ -48,7 +48,12 @@ function setSnippetHeight() ta.style.height = height; autoresize(); } - +function call_skip(url) +{ + form = document.forms["code"] + form.action = url + form.submit(); +} {% endblock script %} @@ -82,17 +87,18 @@ function setSnippetHeight() +
-

{{ question.summary }} (Marks : {{ question.points }})


@@ -117,7 +123,9 @@ function setSnippetHeight()

- {% csrf_token %} + {% csrf_token %} + + {% if question.type == "mcq" %} {% for option in question.options.strip.splitlines %} {{option}}
-- cgit