summaryrefslogtreecommitdiff
path: root/testapp/templates/exam/automatic_questionpaper.html
diff options
context:
space:
mode:
Diffstat (limited to 'testapp/templates/exam/automatic_questionpaper.html')
-rw-r--r--testapp/templates/exam/automatic_questionpaper.html18
1 files changed, 2 insertions, 16 deletions
diff --git a/testapp/templates/exam/automatic_questionpaper.html b/testapp/templates/exam/automatic_questionpaper.html
index 7a70748..1175f55 100644
--- a/testapp/templates/exam/automatic_questionpaper.html
+++ b/testapp/templates/exam/automatic_questionpaper.html
@@ -16,26 +16,12 @@ select
{% block script %}
<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>Automatic mode to design the Question Paper</center><br>
-
<form action="" method="post" name=frm>
{% csrf_token %}
<center>