diff options
author | hardythe1 | 2012-02-24 16:16:38 +0530 |
---|---|---|
committer | hardythe1 | 2012-02-24 16:16:38 +0530 |
commit | b1fbf5b02280de5b78b0249e777a179e34b50b98 (patch) | |
tree | f133bd5e556d4d0e8bbc94c9ffbac22bcc46bb31 /testapp/templates/exam/showquestions.html | |
parent | dd3fd7b8c58d836baba24441e7d55c6d51858eab (diff) | |
download | online_test-b1fbf5b02280de5b78b0249e777a179e34b50b98.tar.gz online_test-b1fbf5b02280de5b78b0249e777a179e34b50b98.tar.bz2 online_test-b1fbf5b02280de5b78b0249e777a179e34b50b98.zip |
formating and identation
Diffstat (limited to 'testapp/templates/exam/showquestions.html')
-rw-r--r-- | testapp/templates/exam/showquestions.html | 40 |
1 files changed, 18 insertions, 22 deletions
diff --git a/testapp/templates/exam/showquestions.html b/testapp/templates/exam/showquestions.html index edcba6f..116e747 100644 --- a/testapp/templates/exam/showquestions.html +++ b/testapp/templates/exam/showquestions.html @@ -1,37 +1,34 @@ {% extends "manage.html" %} -{% block subtitle %} -List of Questions -{% endblock %} +{% block subtitle %}List of Questions {% endblock %} {% block script %} -<script type='text/javascript'> -function confirm_delete(frm) -{ - var r = confirm("Are you Sure ?"); - if(r==false) - { + <script type='text/javascript'> + function confirm_delete(frm) + { + var r = confirm("Are you Sure ?"); + if(r==false) + { for(i=0;i<frm.question.length;i++) { frm.question[i].checked=false; } location.replace("{{URL_ROOT}}/exam/manage/showquestion"); - } -} -function confirm_edit(frm) -{ - var n = 0; - for(i=0;i<frm.question.length;i++) - { + } + } + function confirm_edit(frm) + { + var n = 0; + for(i=0;i<frm.question.length;i++) + { if(frm.question[i].checked==true) n = n+1; - } - if(n==0) + } + if(n==0) location.replace("{{URL_ROOT}}/exam/manage/showquestion"); - -} -</script> + } + </script> {% endblock %} {% block manage %} @@ -44,6 +41,5 @@ function confirm_edit(frm) <button class="btn" type="button" onclick='location.replace("{{URL_ROOT}}/exam/manage/addquestion/");'>Add Question</button> <button class="btn" type="submit" name='edit' value='edit' onClick="confirm_edit(frm);">Edit Selected</button> <button class="btn" type="submit" onClick="confirm_delete(frm);" name='delete' value='delete'>Delete Selected</button> - </form> {% endblock %} |