summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authorankitjavalkar2016-07-07 16:23:52 +0530
committerankitjavalkar2016-07-08 12:36:46 +0530
commit9800ef3dd309089c41e74cf2120f9b0f4eef6fa8 (patch)
tree22f0ea458c92a19d357d8f2f4f14fee21db4a378 /yaksh
parentc27d90bfa77fff2649ee203a14a3fd0d923e1e3d (diff)
downloadonline_test-9800ef3dd309089c41e74cf2120f9b0f4eef6fa8.tar.gz
online_test-9800ef3dd309089c41e74cf2120f9b0f4eef6fa8.tar.bz2
online_test-9800ef3dd309089c41e74cf2120f9b0f4eef6fa8.zip
Minor change: Display reset button only if it is code question
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/templates/yaksh/question.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html
index b8be99f..54fb30b 100644
--- a/yaksh/templates/yaksh/question.html
+++ b/yaksh/templates/yaksh/question.html
@@ -189,13 +189,14 @@ function call_skip(url)
<br><button class="btn" type="submit" name="check" id="check" onClick="return validate();">Upload</button>&nbsp;&nbsp;
{% else %}
<button class="btn" type="submit" name="check" id="check" onClick="submitCode();">Check Answer</button>&nbsp;&nbsp;
+ <button class="btn" type="button" onclick="reset_editor()" name="reset" id="reset">Reset Answer</button>
+
{% endif %}
{% if paper.unanswered.all|length != 1 %}
<button class="btn" onclick="call_skip('{{ URL_ROOT }}/exam/{{ question.id }}/skip/{{ paper.attempt_number }}/{{ paper.question_paper.id }}/')" name="skip" id="skip">Attempt Later</button>&nbsp;&nbsp;
{% endif %}
- <button class="btn" type="button" onclick="reset_editor()" name="reset" id="reset">Reset Answer</button>
</form>
-</div>
+</div>
<!-- Modal -->
<div class="modal fade " id="upload_alert" >