summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authormahesh2017-08-17 15:56:04 +0530
committermahesh2017-08-17 15:56:04 +0530
commit66fc59e724a2a92a8f0b372e64514f42695e66bf (patch)
treed038cf7fc327f0b5ac372b054f921bcb4e0faf53 /yaksh
parent67f3119a2e27673694db907d21f501bc8247fce1 (diff)
downloadonline_test-66fc59e724a2a92a8f0b372e64514f42695e66bf.tar.gz
online_test-66fc59e724a2a92a8f0b372e64514f42695e66bf.tar.bz2
online_test-66fc59e724a2a92a8f0b372e64514f42695e66bf.zip
Fixes in question template, submit buttons properly rendered in w.r.t. question type
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/templates/yaksh/question.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html
index ee33523..74dd8c3 100644
--- a/yaksh/templates/yaksh/question.html
+++ b/yaksh/templates/yaksh/question.html
@@ -238,8 +238,8 @@ function call_skip(url)
{% endif %}
<div class="from-group">
- {% if question.type == "mcq" or "mcc" or "integer" or "float" or "string" %}
- <br><button class="btn btn-primary" type="submit" name="check" id="check">Submit Answer</button>&nbsp;&nbsp;<br/>
+ {% if question.type == "mcq" or question.type == "mcc" or question.type == "integer" or question.type == "float" or question.type == "string" %}
+ <br><button class="btn btn-primary" type="submit" name="check" id="check">Submit Answer</button>&nbsp;&nbsp;
{% elif question.type == "upload" %}
<br><button class="btn btn-primary" type="submit" name="check" id="check" onClick="return validate();">Upload</button>&nbsp;&nbsp;