summaryrefslogtreecommitdiff
path: root/testapp/templates/exam/question.html
diff options
context:
space:
mode:
authorhardythe12012-04-18 01:56:51 +0530
committerhardythe12012-04-18 01:56:51 +0530
commit6c0d75e784b87ed05e4c138110f987e88a37701b (patch)
tree6673608e0513a37b1766dedbad109fc4f73530ff /testapp/templates/exam/question.html
parent9d0a737afdb23a50b28237055c87bfa72197d99b (diff)
downloadonline_test-6c0d75e784b87ed05e4c138110f987e88a37701b.tar.gz
online_test-6c0d75e784b87ed05e4c138110f987e88a37701b.tar.bz2
online_test-6c0d75e784b87ed05e4c138110f987e88a37701b.zip
changes for student interface
Diffstat (limited to 'testapp/templates/exam/question.html')
-rw-r--r--testapp/templates/exam/question.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/testapp/templates/exam/question.html b/testapp/templates/exam/question.html
index 87ed40d..584ab72 100644
--- a/testapp/templates/exam/question.html
+++ b/testapp/templates/exam/question.html
@@ -70,9 +70,9 @@
<ul>
<li> <h5><a> Hi {{user.first_name.title}} {{user.last_name.title}} </a></h5>
</ul>
- <form id="logout" action="{{URL_ROOT}}/exam/quit/" method="post" class="pull-right">
+ <form id="logout" action="{{URL_ROOT}}/exam/quit/{{ paper.question_paper.id }}/" method="post" class="pull-right">
{% csrf_token %}
- <button class="btn" type="submit" name="quit">Quit Exam and Logout</button> </li>
+ <button class="btn" type="submit" name="quit">Quit Exam</button> </li>
</form>
</div>
@@ -85,7 +85,7 @@
{% if error_message %}<h5>ERROR:</h5><div class="alert alert-error">{{ error_message }}</div>{% endif %}
<p id="status"></p>
- <form id="code" action="{{URL_ROOT}}/exam/{{ question.id }}/check/" method="post">
+ <form id="code" action="{{URL_ROOT}}/exam/{{ question.id }}/check/{{ paper.question_paper.id }}/" method="post">
{% csrf_token %}
{% if question.type == "mcq" %}
{% for option in question.options.strip.splitlines %}