diff options
author | maheshgudi | 2017-02-03 23:42:30 +0530 |
---|---|---|
committer | maheshgudi | 2017-03-02 20:38:41 +0530 |
commit | 321343d45bc1f4d20cd348773bd8b214d9c4d692 (patch) | |
tree | bae4022c3090cc78f4d421f4aa5afa40fd7beebd /yaksh/templates | |
parent | ddf3e13669f7232acf6019a0f2f33f397a6e6d51 (diff) | |
download | online_test-321343d45bc1f4d20cd348773bd8b214d9c4d692.tar.gz online_test-321343d45bc1f4d20cd348773bd8b214d9c4d692.tar.bz2 online_test-321343d45bc1f4d20cd348773bd8b214d9c4d692.zip |
added float based questions
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/yaksh/add_question.html | 1 | ||||
-rw-r--r-- | yaksh/templates/yaksh/question.html | 10 |
2 files changed, 10 insertions, 1 deletions
diff --git a/yaksh/templates/yaksh/add_question.html b/yaksh/templates/yaksh/add_question.html index de3ce56..6bd96d3 100644 --- a/yaksh/templates/yaksh/add_question.html +++ b/yaksh/templates/yaksh/add_question.html @@ -58,6 +58,7 @@ <option value="hooktestcase">Hook </option> <option value="integertestcase">Integer </option> <option value="stringtestcase"> String </option> + <option value="floattestcase"> Float </option> </select></p> <center> <button class="btn" type="submit" name="save_question">Save</button> diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index 13726c0..161db5a 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -153,6 +153,8 @@ function call_skip(url) (ANSWER IN INTEGER) {% elif question.type == "string" %} (ANSWER IN STRING) + {% elif question.type == "float" %} + (ANSWER IN DECIMAL) {% endif %} </u> <font class=pull-right>(Marks : {{ question.points }}) </font> @@ -175,7 +177,7 @@ function call_skip(url) {% if question.type == "integer" %} Enter Integer: <input name="answer" type="textbox" id="integer" /> - <br/> + <br/><br/> {% endif %} {% if question.type == "string" %} @@ -184,6 +186,12 @@ function call_skip(url) <br/><br/> {% endif %} + {% if question.type == "float" %} + Enter Decimal Value : + <input name="answer" type="textbox" id="float" /> + <br/><br/> + {% endif %} + {% if question.type == "mcc" %} {% for test_case in test_cases %} <input name="answer" type="checkbox" value="{{ test_case.options }}"> {{ test_case.options|safe }} |