summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/add_question.html1
-rw-r--r--yaksh/templates/yaksh/question.html11
2 files changed, 10 insertions, 2 deletions
diff --git a/yaksh/templates/yaksh/add_question.html b/yaksh/templates/yaksh/add_question.html
index a1b5e90..de3ce56 100644
--- a/yaksh/templates/yaksh/add_question.html
+++ b/yaksh/templates/yaksh/add_question.html
@@ -57,6 +57,7 @@
<option value="mcqtestcase">MCQ/MCC </option>
<option value="hooktestcase">Hook </option>
<option value="integertestcase">Integer </option>
+ <option value="stringtestcase"> String </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 35c8052..13726c0 100644
--- a/yaksh/templates/yaksh/question.html
+++ b/yaksh/templates/yaksh/question.html
@@ -142,15 +142,17 @@ function call_skip(url)
<div class="panel-heading">
<h4><u> {{ question.summary }}
{% if question.type == "mcq" %}
- (Single Correct Choice)
+ (SINGLE CORRECT CHOICE)
{% elif question.type == "mcc" %}
- (Multiple Correct Choices)
+ (MULTIPLE CORRECT CHOICES)
{% elif question.type == "code" %}
(PROGRAMMING)
{% elif question.type == "upload" %}
(ASSIGNMENT UPLOAD)
{% elif question.type == "integer" %}
(ANSWER IN INTEGER)
+ {% elif question.type == "string" %}
+ (ANSWER IN STRING)
{% endif %}
</u>
<font class=pull-right>(Marks : {{ question.points }}) </font>
@@ -176,6 +178,11 @@ function call_skip(url)
<br/>
{% endif %}
+ {% if question.type == "string" %}
+ Enter Text:<br/>
+ <textarea name="answer" id="string"></textarea>
+ <br/><br/>
+ {% endif %}
{% if question.type == "mcc" %}
{% for test_case in test_cases %}