diff options
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 %} |