diff options
author | hardythe1 | 2012-04-02 18:04:43 +0530 |
---|---|---|
committer | hardythe1 | 2012-04-02 18:04:43 +0530 |
commit | c0fcc1181e209192f6d11f2ca521e55e33a4ead7 (patch) | |
tree | 576b100053a4ef35d4e686ce198f2882d98efbb2 /testapp/templates/exam/add_questionpaper.html | |
parent | 64b38d3365f1d65132942fce6e29fed7da076bba (diff) | |
download | online_test-c0fcc1181e209192f6d11f2ca521e55e33a4ead7.tar.gz online_test-c0fcc1181e209192f6d11f2ca521e55e33a4ead7.tar.bz2 online_test-c0fcc1181e209192f6d11f2ca521e55e33a4ead7.zip |
Question Paper generator changes
Diffstat (limited to 'testapp/templates/exam/add_questionpaper.html')
-rw-r--r-- | testapp/templates/exam/add_questionpaper.html | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/testapp/templates/exam/add_questionpaper.html b/testapp/templates/exam/add_questionpaper.html new file mode 100644 index 0000000..664093c --- /dev/null +++ b/testapp/templates/exam/add_questionpaper.html @@ -0,0 +1,54 @@ +{% extends "manage.html" %} + + +{% block subtitle %}Design Question Paper{% endblock %} + +{% block css %} +<link rel="stylesheet" href="{{ URL_ROOT }}/static/exam/css/question_quiz.css" type="text/css" /> +<link rel="stylesheet" media="all" type="text/css" href="{{ URL_ROOT }}/static/exam/css/autotaggit.css" /> +{% endblock %} +{% 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; + var pathArray = window.location.pathname.split( '/' ); + length = pathArray.length; + var digit = parseInt(pathArray[length-2]); + + if (! isNaN(digit) && value == 'Automatic') + { + window.location = "{{ URL_ROOT }}/exam/manage/designquestionpaper/automatic/" + digit; + } + else if(!isNaN(digit) && value == 'Manual') + { + window.location = "{{ URL_ROOT }}/exam/manage/designquestionpaper/manual/" + digit; + } + else if(value == 'Automatic') + { + window.location = "{{ URL_ROOT }}/exam/manage/designquestionpaper/automatic"; + } + else if( value == 'Manual') + { + window.location = "{{ URL_ROOT }}/exam/manage/designquestionpaper/manual"; + } +} +</script> +{% endblock %} + +{% block manage %} +<form> +{% csrf_token %} +Select mode to design Question Paper: +<select name='mode' id='mode' onChange='javascript:load_data();'> + <option>---------</option> + <option>Automatic</option> + <option>Manual</option> +</select> +</form> + + +{% endblock %} |