summaryrefslogtreecommitdiff
path: root/testapp/templates/exam/question.html
diff options
context:
space:
mode:
authorJay Parikh2013-03-18 15:11:15 +0530
committerJay Parikh2013-03-18 15:11:15 +0530
commitc12f20984aa75751af89a0d6213bc35924bc593b (patch)
tree4608e7b6088a7fb81fc5f9e2e1c021df45eddad4 /testapp/templates/exam/question.html
parent65d4498ff96090fecc569440f0cd1499ae0f6b69 (diff)
downloadonline_test-c12f20984aa75751af89a0d6213bc35924bc593b.tar.gz
online_test-c12f20984aa75751af89a0d6213bc35924bc593b.tar.bz2
online_test-c12f20984aa75751af89a0d6213bc35924bc593b.zip
Added code snippets for questions
Diffstat (limited to 'testapp/templates/exam/question.html')
-rw-r--r--testapp/templates/exam/question.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/testapp/templates/exam/question.html b/testapp/templates/exam/question.html
index b2f5816..aaf7270 100644
--- a/testapp/templates/exam/question.html
+++ b/testapp/templates/exam/question.html
@@ -208,7 +208,7 @@ function catchTab(item,e){
{% endfor %}
{% else %}
- <textarea tabindex=1 rows="15" style="width:750px;margin-bottom:10px;" name="answer" id="answer" wrap="off" onkeydown="return catchTab(this,event)">{% if last_attempt %}{{last_attempt.strip}}{% else %}{% if question.type == "bash" %} #!/bin/bash{% else %}# Enter your answer here.{% endif %}{% endif %}</textarea>
+ <textarea tabindex=1 rows="15" style="width:750px;margin-bottom:10px;" name="answer" id="answer" wrap="off" onkeydown="return catchTab(this,event)">{% if last_attempt %}{{last_attempt.strip}}{% else %}{% if question.type == "bash" %} #!/bin/bash{% else %}{{ question.snippet }}{% endif %}{% endif %}</textarea>
<br>
<script type="text/javascript">