summaryrefslogtreecommitdiff
path: root/testapp/templates/exam/question.html
diff options
context:
space:
mode:
authorHardik Ghaghada2013-07-01 13:03:42 +0530
committerHardik Ghaghada2013-07-01 13:03:42 +0530
commit1ab56ae99e06500fe89aeb571f05527d745cf9bd (patch)
tree4c0f0b7a3271e2f95c47d2bdb6e16a89859e1292 /testapp/templates/exam/question.html
parent2e2123067d2477602d5e05fab02b7d36396f2d1f (diff)
parent77321c3590301a8550b8b351b6e8bbb382dc8947 (diff)
downloadonline_test-1ab56ae99e06500fe89aeb571f05527d745cf9bd.tar.gz
online_test-1ab56ae99e06500fe89aeb571f05527d745cf9bd.tar.bz2
online_test-1ab56ae99e06500fe89aeb571f05527d745cf9bd.zip
resolved conflicts
Diffstat (limited to 'testapp/templates/exam/question.html')
-rw-r--r--testapp/templates/exam/question.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/testapp/templates/exam/question.html b/testapp/templates/exam/question.html
index 4f65b64..1d801b0 100644
--- a/testapp/templates/exam/question.html
+++ b/testapp/templates/exam/question.html
@@ -87,12 +87,15 @@ function update_time()
{% 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 %}{{ question.snippet }}{% endif %}{% endif %}</textarea>
+ <textarea tabindex=1 rows="3" style="width:750px;margin-bottom:15px;height:auto;" readonly=yes name="snippet" id="snippet" wrap="off">{% if last_attempt %}{% else %}{% if question.type == "bash" %} #!/bin/bash{% else %} #To avoid errors use tabs for indentation for Python questions &#13;&#10; {{ question.snippet }}{% endif %}{% endif %}</textarea>
+
+ <textarea tabindex=1 rows="10" 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" %}{% else %}{% endif %}{% endif %}</textarea>
<br>
<script type="text/javascript">
- createTextAreaWithLines('answer');
+ addLineNumbers('answer');
</script>
+ <script>addLineNumbers('snippet');</Script>
{% endif %}
{% if question.type == "mcq" %}