summaryrefslogtreecommitdiff
path: root/testapp/templates/exam/manual_questionpaper.html
diff options
context:
space:
mode:
authorHardik Ghaghada2013-04-26 16:40:34 +0530
committerHardik Ghaghada2013-04-26 16:40:34 +0530
commitc8b68813ca80aee16261e5f02d541ed48712feae (patch)
tree85ee9038f09b7aab4fb1b57cbb444108736f708e /testapp/templates/exam/manual_questionpaper.html
parent1dd9573cfaa0587cd3217495847a0b456ceb6223 (diff)
downloadonline_test-c8b68813ca80aee16261e5f02d541ed48712feae.tar.gz
online_test-c8b68813ca80aee16261e5f02d541ed48712feae.tar.bz2
online_test-c8b68813ca80aee16261e5f02d541ed48712feae.zip
Dumped JS from HTML pages to separate JS files
Diffstat (limited to 'testapp/templates/exam/manual_questionpaper.html')
-rw-r--r--testapp/templates/exam/manual_questionpaper.html16
1 files changed, 2 insertions, 14 deletions
diff --git a/testapp/templates/exam/manual_questionpaper.html b/testapp/templates/exam/manual_questionpaper.html
index 47df1ed..1a1f95c 100644
--- a/testapp/templates/exam/manual_questionpaper.html
+++ b/testapp/templates/exam/manual_questionpaper.html
@@ -17,23 +17,11 @@ select
<script src="/static/taggit_autocomplete_modified/jquery.min.js" type="text/javascript"></script>
<script src="/static/taggit_autocomplete_modified/jquery.autocomplete.js" type="text/javascript"></script>
-<script>
-function load_data()
-{
- var value = document.getElementById('mode').value;
- if (value == 'Automatic')
- {
- window.location = "{{ URL_ROOT }}/exam/manage/designquestionpaper/automatic";
- }
- else if(value == "Manual")
- {
- window.location = "{{ URL_ROOT }}/exam/manage/designquestionpaper/manual";
- }
-}
-</script>
+<script src="{{ URL_ROOT }}/static/exam/js/add_questionpaper.js"></script>
{% endblock %}
{% block manage %}
+<input type=hidden id="url_root" value={{ URL_ROOT }}>
<center><b>Manual mode to design the Question Paper</center><br>
<form action="" method="post" name=frm>