diff options
author | jayparikh111 | 2012-02-29 13:14:00 +0530 |
---|---|---|
committer | jayparikh111 | 2012-02-29 13:14:00 +0530 |
commit | 87862b8c8d7822a4578b5cb5f413bedb37454bd2 (patch) | |
tree | e6af84fb02fd5e2dc3321150dc1234d450847575 /testapp/templates/exam/add_question.html | |
parent | 7660073c5c83534a869f685b27c0fe0152b9983c (diff) | |
download | online_test-87862b8c8d7822a4578b5cb5f413bedb37454bd2.tar.gz online_test-87862b8c8d7822a4578b5cb5f413bedb37454bd2.tar.bz2 online_test-87862b8c8d7822a4578b5cb5f413bedb37454bd2.zip |
minor changes for rendering question(s)
Diffstat (limited to 'testapp/templates/exam/add_question.html')
-rw-r--r-- | testapp/templates/exam/add_question.html | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/testapp/templates/exam/add_question.html b/testapp/templates/exam/add_question.html index 59a1d64..8bccb66 100644 --- a/testapp/templates/exam/add_question.html +++ b/testapp/templates/exam/add_question.html @@ -2,18 +2,31 @@ {% block subtitle %}Add Question{% endblock %} +{% block script %} +<script type='text/javascript'> +function my_render(frm) +{ + document.getElementById('my').innerHTML = frm.description.value; + +} +</script> +{% endblock %} {% block css %} <link rel="stylesheet" href="{{ URL_ROOT }}/static/exam/css/question_quiz.css" type="text/css" /> {% endblock %} {% block manage %} -<form action="" method="post"> +<form action="" method="post" name="frm" onKeyPress='javascript:my_render(frm);'> {% csrf_token %} +<b>Look of Question in HTML Format :</b> +<p id='my' ></p> + <center><table class=span1> {{ form.as_table }} </table> + <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> -{% endblock %} +{% endblock %} |