summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authoradityacp2017-01-13 09:47:05 +0530
committerGitHub2017-01-13 09:47:05 +0530
commit0e3e0cdbf322df9b5c8b7da0301cebe71eadcbe9 (patch)
tree8969f5db3aeb70350e089e97fb5e37bd0e4db1ab /yaksh/templates
parent7fb288ffd992c912a8e2288aa97d6c6ceeedf1a1 (diff)
parent57a5d99c7ed5aed498943686b2c951bdaba3852a (diff)
downloadonline_test-0e3e0cdbf322df9b5c8b7da0301cebe71eadcbe9.tar.gz
online_test-0e3e0cdbf322df9b5c8b7da0301cebe71eadcbe9.tar.bz2
online_test-0e3e0cdbf322df9b5c8b7da0301cebe71eadcbe9.zip
Merge pull request #179 from maheshgudi/mcq_bugfix
Fixed a bug which would mark all MCQ and MCC questions' answers as correct
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/question.html22
1 files changed, 0 insertions, 22 deletions
diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html
index 7cbca57..6473c2f 100644
--- a/yaksh/templates/yaksh/question.html
+++ b/yaksh/templates/yaksh/question.html
@@ -161,33 +161,11 @@ function call_skip(url)
</div>
<div class="panel-body">
{% if question.type == "mcq" %}
- {% if error_message %}
- <p>
- <div class="panel panel-danger">
- <div class="panel-heading">
- {% for err in error_message %}
- {{ err }}
- {% endfor %}
- </div>
- </div>
- </p>
- {% endif %}
{% for test_case in test_cases %}
<input name="answer" type="radio" value="{{ test_case.options }}" />{{ test_case.options|safe }} <br/>
{% endfor %}
{% endif %}
{% if question.type == "mcc" %}
- {% if error_message %}
- <p>
- <div class="panel panel-danger">
- <div class="panel-heading">
- {% for err in error_message %}
- {{ err }}
- {% endfor %}
- </div>
- </div>
- </p>
- {% endif %}
{% for test_case in test_cases %}
<input name="answer" type="checkbox" value="{{ test_case.options }}"> {{ test_case.options|safe }}
<br>