summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authorankitjavalkar2016-07-07 16:23:52 +0530
committerankitjavalkar2016-07-07 16:23:52 +0530
commit25c24f0eed60d3d5af81afe8218aa226e075176a (patch)
treee275d36d681712d58dc6d6f36808061f28b033c8 /yaksh/templates
parentd67c2f3933db20d9d68c826e3a2964947163d97a (diff)
downloadonline_test-25c24f0eed60d3d5af81afe8218aa226e075176a.tar.gz
online_test-25c24f0eed60d3d5af81afe8218aa226e075176a.tar.bz2
online_test-25c24f0eed60d3d5af81afe8218aa226e075176a.zip
Minor change: Display reset button only if it is code question
Diffstat (limited to 'yaksh/templates')
-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" >