summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authoradityacp2020-08-28 12:49:32 +0530
committeradityacp2020-08-28 12:49:32 +0530
commit348a6a5b0786ffc28cb988c1fcc62232a7e57fc2 (patch)
tree76e06c9cca9dd8e03170dddecbcd5c30bcaebde7 /yaksh/templates
parent052ac313e9f38e43cf16a3ae1f7f77cc58802529 (diff)
downloadonline_test-348a6a5b0786ffc28cb988c1fcc62232a7e57fc2.tar.gz
online_test-348a6a5b0786ffc28cb988c1fcc62232a7e57fc2.tar.bz2
online_test-348a6a5b0786ffc28cb988c1fcc62232a7e57fc2.zip
Release changes
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/question.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html
index 6489b38..3f7e67e 100644
--- a/yaksh/templates/yaksh/question.html
+++ b/yaksh/templates/yaksh/question.html
@@ -239,21 +239,21 @@ question_type = "{{ question.type }}";
<!-- Integer type question -->
{% if question.type == "integer" %}
Enter Integer:<br/>
- <input autofocus class="form-control" name="answer" type="number" id="integer" value="{{ last_attempt|safe }}" />
+ <input autofocus class="form-control" name="answer" type="number" id="integer" value="{{ last_attempt|to_integer }}" />
<br><br>
{% endif %}
<!-- String type question -->
{% if question.type == "string" %}
Enter Text:<br/>
- <textarea autofocus name="answer" id="string" class="form-control" style="width: 100%">{{ last_attempt|safe }}</textarea>
+ <textarea autofocus name="answer" id="string" class="form-control" style="width: 100%">{{ last_attempt|to_str }}</textarea>
<br/><br/>
{% endif %}
<!-- Float type question -->
{% if question.type == "float" %}
Enter Decimal Value :<br/>
- <input autofocus class="form-control" name="answer" type="number" step="any" id="float" value="{{ last_attempt|safe }}" />
+ <input autofocus class="form-control" name="answer" type="number" step="any" id="float" value="{{ last_attempt|to_float }}" />
<br/><br/>
{% endif %}