summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrabhu Ramachandran2016-07-07 09:29:24 -0500
committerGitHub2016-07-07 09:29:24 -0500
commit67f77a6a05ed722609ec2fc74e2ba10751c70e08 (patch)
tree22f0ea458c92a19d357d8f2f4f14fee21db4a378
parentb420da2862ea4363c7a757acf415fbd78a7549df (diff)
parent25c24f0eed60d3d5af81afe8218aa226e075176a (diff)
downloadonline_test-67f77a6a05ed722609ec2fc74e2ba10751c70e08.tar.gz
online_test-67f77a6a05ed722609ec2fc74e2ba10751c70e08.tar.bz2
online_test-67f77a6a05ed722609ec2fc74e2ba10751c70e08.zip
Merge pull request #111 from ankitjavalkar/reset-button-fix
Display reset button only if it is code question
-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" >