diff options
author | hardythe1 | 2012-02-21 12:38:38 +0530 |
---|---|---|
committer | hardythe1 | 2012-02-21 12:38:38 +0530 |
commit | 2b6b595ca8652696ab9059add8ea54661cab5f31 (patch) | |
tree | 39906c360056c2cafc65e088e7cc6115954b01df /testapp/templates | |
parent | 6b608e174fbd9367c9453f7933b69a35516811d2 (diff) | |
download | online_test-2b6b595ca8652696ab9059add8ea54661cab5f31.tar.gz online_test-2b6b595ca8652696ab9059add8ea54661cab5f31.tar.bz2 online_test-2b6b595ca8652696ab9059add8ea54661cab5f31.zip |
views for editing quiz and questions
Diffstat (limited to 'testapp/templates')
-rw-r--r-- | testapp/templates/exam/show_quiz.html | 2 | ||||
-rw-r--r-- | testapp/templates/exam/showquestions.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/testapp/templates/exam/show_quiz.html b/testapp/templates/exam/show_quiz.html index bbea77f..2e9059d 100644 --- a/testapp/templates/exam/show_quiz.html +++ b/testapp/templates/exam/show_quiz.html @@ -35,7 +35,7 @@ function my_confirm(frm) {% csrf_token %} {% for quiz in quizzes %} -<input type=checkbox name='quiz' value={{quiz.id}} /> <a href="{{URL_ROOT}}/exam/manage/monitor/{{quiz.id}}/">{{ quiz.description }}</a><br> +<input type=checkbox name='quiz' value={{quiz.id}} /> <a href="{{URL_ROOT}}/exam/manage/addquiz/{{quiz.id}}/">{{ quiz.description }}</a><br> {% endfor %} <br><br> <button class="btn" type="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/addquiz");'>Add New Quiz</button> <button class="btn" type="submit" name="delete" onClick="my_confirm(frm);">Delete</button> diff --git a/testapp/templates/exam/showquestions.html b/testapp/templates/exam/showquestions.html index 38d4bcc..994ca26 100644 --- a/testapp/templates/exam/showquestions.html +++ b/testapp/templates/exam/showquestions.html @@ -26,7 +26,7 @@ function my_confirm(frm) <form name=frm action="" method="post"> {% csrf_token %} {% for i in questions %} -<input type="checkbox" name="question" value="{{ i.id }}"> <a href="{{URL_ROOT}}/exam/manage/showquestions/{{ i.id }}">{{ i }}</a><br> +<input type="checkbox" name="question" value="{{ i.id }}"> <a href="{{URL_ROOT}}/exam/manage/addquestion/{{ i.id }}">{{ i }}</a><br> {% endfor %} <br> <button class="btn" type="button" onclick='location.replace("{{URL_ROOT}}/exam/manage/addquestion/");'>Add Question</button> |