diff options
Diffstat (limited to 'testapp')
-rw-r--r-- | testapp/exam/views.py | 2 | ||||
-rw-r--r-- | testapp/templates/exam/question.html | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/testapp/exam/views.py b/testapp/exam/views.py index 06da6d6..e2ff763 100644 --- a/testapp/exam/views.py +++ b/testapp/exam/views.py @@ -810,6 +810,8 @@ def complete(request, reason=None, answerpaper_id=None): you answered all the questions correctly.\ You have been logged out successfully,\ Thank You !"} + logout(request) + return my_render_to_response('exam/complete.html',context) else: context = {'message': reason} logout(request) diff --git a/testapp/templates/exam/question.html b/testapp/templates/exam/question.html index 1282130..7260d15 100644 --- a/testapp/templates/exam/question.html +++ b/testapp/templates/exam/question.html @@ -92,7 +92,7 @@ function update_time() {% endfor %} {% else %} - <textarea tabindex=1 rows="3" style="width:750px;margin-bottom:15px;height:auto;" readonly=yes name="snippet" id="snippet" wrap="off">{% if last_attempt %}{{question.snippet}}{% else %}{% if question.type == "bash" %} #!/bin/bash{% else %} #To avoid errors use tabs for indentation for Python questions {{ question.snippet }}{% endif %}{% endif %}</textarea> + <textarea tabindex=1 rows="3" style="width:750px;margin-bottom:15px;height:auto;" readonly=yes name="snippet" id="snippet" wrap="off">{% if last_attempt %}{{ question.snippet }}{% else %}{% if question.type == "bash" %} #!/bin/bash {{ question.snippet }}{% else %}{{ question.snippet }}{% endif %}{% endif %}</textarea> <textarea tabindex=1 rows="10" style="width:750px;margin-bottom:10px;" name="answer" id="answer" wrap="off" onkeydown="return catchTab(this,event)">{% if last_attempt %}{{last_attempt}}{% else %}{% if question.type == "bash" %}{% else %}{% endif %}{% endif %}</textarea> <br> |