diff options
Diffstat (limited to 'testapp/templates')
-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> |