summaryrefslogtreecommitdiff
path: root/testapp/templates/exam
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
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')
-rw-r--r--testapp/templates/exam/add_question.html1
-rw-r--r--testapp/templates/exam/edit_question.html1
-rw-r--r--testapp/templates/exam/question.html2
3 files changed, 3 insertions, 1 deletions
diff --git a/testapp/templates/exam/add_question.html b/testapp/templates/exam/add_question.html
index 9651600..e3ba17a 100644
--- a/testapp/templates/exam/add_question.html
+++ b/testapp/templates/exam/add_question.html
@@ -26,6 +26,7 @@
<tr><td><strong>Rendered: </strong><td><p id='my'></p>
<tr><td>Description: <td>{{ form.description}} {{form.description.errors}}
<tr><td>Test: <td>{{ form.test }}{{form.test.errors}}
+ <tr><td>Snippet: <td>{{ form.snippet }}{{ form.snippet.errors }}</td></tD></td></tr>
<tr><td>Tags: <td>{{ form.tags }}
<tr><td id='label_option'>Options: <td>{{ form.options }} {{form.options.errors}}
diff --git a/testapp/templates/exam/edit_question.html b/testapp/templates/exam/edit_question.html
index 0a41326..96502f1 100644
--- a/testapp/templates/exam/edit_question.html
+++ b/testapp/templates/exam/edit_question.html
@@ -36,6 +36,7 @@
<tr><td><strong>Rendered: </strong><td><p id='my{{forloop.counter}}'></p>
<tr><td><b>Description: <td>{{ form.description }} {{form.description.errors}}
<tr><td><b>Test: <td>{{ form.test }}{{form.test.errors}}
+ <tr><td><b>Snippet: <td>{{ form.snippet }}{{ form.snippet.errors }}</td></b></td></tr>
<tr><td>Tags: <td>{{ form.tags }}
<tr><td id='label_option{{forloop.counter}}'><b>Options: <td>{{ form.options }} {{form.options.errors}} {{form.options.helptext}}
</table></center>
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">