summaryrefslogtreecommitdiff
path: root/testapp/yaksh_app/templates
diff options
context:
space:
mode:
Diffstat (limited to 'testapp/yaksh_app/templates')
-rw-r--r--testapp/yaksh_app/templates/yaksh_app/ajax_question_filter.html15
-rw-r--r--testapp/yaksh_app/templates/yaksh_app/design_questionpaper.html2
-rw-r--r--testapp/yaksh_app/templates/yaksh_app/manual_questionpaper.html3
-rw-r--r--testapp/yaksh_app/templates/yaksh_app/question.html2
4 files changed, 18 insertions, 4 deletions
diff --git a/testapp/yaksh_app/templates/yaksh_app/ajax_question_filter.html b/testapp/yaksh_app/templates/yaksh_app/ajax_question_filter.html
new file mode 100644
index 0000000..11bf660
--- /dev/null
+++ b/testapp/yaksh_app/templates/yaksh_app/ajax_question_filter.html
@@ -0,0 +1,15 @@
+<div id="questions">
+ {% if questions %}
+ <h5 class="highlight"><input type="checkbox" id="checkall" class="ignore"> Select All </h5>
+ {% endif %}
+ <ul class="inputs-list">
+
+ {% for question in questions %}
+ <li>
+ <label>
+ <input type="checkbox" name="question" data-qid="{{question.id}}">&nbsp;&nbsp;<a href="{{URL_ROOT}}/exam/manage/addquestion/{{ question.id }}">{{ question }}</a><br>
+ </label>
+ </li>
+ {% endfor %}
+ </ul>
+</div>
diff --git a/testapp/yaksh_app/templates/yaksh_app/design_questionpaper.html b/testapp/yaksh_app/templates/yaksh_app/design_questionpaper.html
index 4e24e09..f999cb1 100644
--- a/testapp/yaksh_app/templates/yaksh_app/design_questionpaper.html
+++ b/testapp/yaksh_app/templates/yaksh_app/design_questionpaper.html
@@ -15,7 +15,7 @@ select
</style>
{% endblock %}
{% block script %}
-<script src="/static/exam/js/jquery-1.4.2.min.js" type="text/javascript"></script>
+<script src="{{ URL_ROOT }}/static/yaksh_app/js/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="{{ URL_ROOT }}/static/yaksh_app/js/bootstrap-tabs.js"></script>
<script src="{{ URL_ROOT }}/static/yaksh_app/js/add_questionpaper.js"></script>
diff --git a/testapp/yaksh_app/templates/yaksh_app/manual_questionpaper.html b/testapp/yaksh_app/templates/yaksh_app/manual_questionpaper.html
index 66c83ed..9e2a082 100644
--- a/testapp/yaksh_app/templates/yaksh_app/manual_questionpaper.html
+++ b/testapp/yaksh_app/templates/yaksh_app/manual_questionpaper.html
@@ -14,8 +14,7 @@ select
</style>
{% endblock %}
{% block script %}
-<script src="/static/exam/js/jquery-1.4.2.min.js" type="text/javascript"></script>
-
+<script src="{{ URL_ROOT }}/static/yaksh_app/js/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="{{ URL_ROOT }}/static/yaksh_app/js/add_questionpaper.js"></script>
{% endblock %}
diff --git a/testapp/yaksh_app/templates/yaksh_app/question.html b/testapp/yaksh_app/templates/yaksh_app/question.html
index 8b43fff..594693c 100644
--- a/testapp/yaksh_app/templates/yaksh_app/question.html
+++ b/testapp/yaksh_app/templates/yaksh_app/question.html
@@ -10,7 +10,7 @@
{% endblock %}
{% block script %}
-<script src="/static/yaksh_app/js/jquery-1.4.2.min.js" type="text/javascript"></script>
+<script src="{{ URL_ROOT }}/static/yaksh_app/js/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="{{ URL_ROOT }}/static/yaksh_app/js/question.js"></script>
<script src="{{ URL_ROOT }}/static/yaksh_app/js/bootstrap-modal.js"></script>