summaryrefslogtreecommitdiff
path: root/yaksh/templates/yaksh/ajax_questions.html
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/templates/yaksh/ajax_questions.html')
-rw-r--r--yaksh/templates/yaksh/ajax_questions.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/yaksh/templates/yaksh/ajax_questions.html b/yaksh/templates/yaksh/ajax_questions.html
new file mode 100644
index 0000000..e343f9b
--- /dev/null
+++ b/yaksh/templates/yaksh/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>