blob: 8bccb665fa3bffd6dc9bfe67ff7ec4ad42a53da1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{% extends "manage.html" %}
{% 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" 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 %}
|