summaryrefslogtreecommitdiff
path: root/testapp/templates/exam/ajax_questions.html
diff options
context:
space:
mode:
authorPrabhu Ramachandran2014-07-03 18:06:26 +0530
committerPrabhu Ramachandran2014-07-03 18:06:26 +0530
commitbefad018f2e59389e92eaa109c6968bea30d06f9 (patch)
treedf02d9de7fdd1596c0be1268bdd9148a2f0f15cb /testapp/templates/exam/ajax_questions.html
parentba6308eb5dfe391305f5466fba00be46a4755f7e (diff)
parent2d04f8cce5c5cf610b401ed37f796bd2034c07e9 (diff)
downloadonline_test-befad018f2e59389e92eaa109c6968bea30d06f9.tar.gz
online_test-befad018f2e59389e92eaa109c6968bea30d06f9.tar.bz2
online_test-befad018f2e59389e92eaa109c6968bea30d06f9.zip
Merge pull request #32 from prathamesh920/question_paper_creation_interface
Question paper creation interface
Diffstat (limited to 'testapp/templates/exam/ajax_questions.html')
-rw-r--r--testapp/templates/exam/ajax_questions.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/testapp/templates/exam/ajax_questions.html b/testapp/templates/exam/ajax_questions.html
new file mode 100644
index 0000000..e343f9b
--- /dev/null
+++ b/testapp/templates/exam/ajax_questions.html
@@ -0,0 +1,31 @@
+<div id="questions">
+ {% if questions %}
+ <input type="checkbox" id="checkall" class="ignore">
+ <span><b> <font size="3"> Select All </font></b></span>
+ {% endif %}
+ <ul class="inputs-list">
+
+ {% for question in questions %}
+ <li>
+ <label>
+ <input type="checkbox" name="questions" data-qid="{{question.id}}">
+ <span> {{ question.summary }} </span>
+ </label>
+ </li>
+ {% endfor %}
+ </ul>
+</div>
+
+<div id="num">
+ <select id="numbers">
+ <option value="">Number of questions to be picked from the pool</option>
+ {% for q in questions %}
+ {% if forloop.counter0 != 0 %}
+ <option value={{forloop.counter0}}>{{ forloop.counter0}}</option>
+ {% endif %}
+ {% if questions|length == 1%}
+ <option value=1>1</option>
+ {% endif %}
+ {% endfor %}
+ </select>
+</div>