diff options
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 }} |