diff options
author | jayparikh111 | 2012-11-01 13:43:21 +0530 |
---|---|---|
committer | jayparikh111 | 2012-11-01 13:43:21 +0530 |
commit | 56bd985701bee1e4c9ed8a694c5b2ff1258e2aad (patch) | |
tree | d69abb58318e41cf38d4cb3d11f99e32c1a8c8c9 /testapp/templates/exam | |
parent | cad1366b66a4079a22eb3a6f0b41c2705a6e0a0b (diff) | |
download | online_test-56bd985701bee1e4c9ed8a694c5b2ff1258e2aad.tar.gz online_test-56bd985701bee1e4c9ed8a694c5b2ff1258e2aad.tar.bz2 online_test-56bd985701bee1e4c9ed8a694c5b2ff1258e2aad.zip |
Removed Global variables for Quiz & Questions
Diffstat (limited to 'testapp/templates/exam')
-rw-r--r-- | testapp/templates/exam/edit_question.html | 5 | ||||
-rw-r--r-- | testapp/templates/exam/edit_quiz.html | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/testapp/templates/exam/edit_question.html b/testapp/templates/exam/edit_question.html index 8ede7f0..0a41326 100644 --- a/testapp/templates/exam/edit_question.html +++ b/testapp/templates/exam/edit_question.html @@ -18,6 +18,7 @@ <form name='frm' action="{{URL_ROOT}}/exam/manage/editquestion/" method="post" onSubmit="return autosubmit()" onKeyPress='javascript:render_question(frm);'> {% csrf_token %} <center><p>Click on the Question links to edit the question.</p></center> + <table> {% for form in forms %} @@ -42,6 +43,10 @@ </div> {% endfor %} </table></center> +{% for i in data %} + <input type=hidden name='questions' value="{{ i }}" /> +{% endfor %} + <center><button class="btn" type="submit" name="savequestion">Save</button> <button class="btn" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/questions/");'>Cancel</button> </center> </form> diff --git a/testapp/templates/exam/edit_quiz.html b/testapp/templates/exam/edit_quiz.html index 8e4917d..0ea4aae 100644 --- a/testapp/templates/exam/edit_quiz.html +++ b/testapp/templates/exam/edit_quiz.html @@ -31,6 +31,9 @@ {% endfor %} </table> </center> +{% for i in data %} + <input type=hidden name='quizzes' value="{{ i }}" /> +{% endfor %} <center><button class="btn" type="submit" name="save">Save</button> <button class="btn" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/showquiz/");'>Cancel</button> </center> </form> |