summaryrefslogtreecommitdiff
path: root/testapp/templates/exam/add_quiz.html
blob: 2667c0cbf092011edb99eba7540d719361bc0a14 (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
33
34
35
36
37
38
{% extends "manage.html" %}


{% block subtitle %}Add Quiz{% endblock %}

{% block css %}
<link rel="stylesheet" href="{{ URL_ROOT }}/static/exam/css/question_quiz.css" type="text/css" /> 
<link rel="stylesheet" media="all" type="text/css" href="{{ URL_ROOT }}/static/exam/css/autotaggit.css" />
{% endblock %}
{% block script %}
<script src="/static/taggit_autocomplete_modified/jquery.min.js" type="text/javascript"></script>
<script src="/static/taggit_autocomplete_modified/jquery.autocomplete.js" type="text/javascript"></script>
<script type='text/javascript'>
	function test()
	{
        
		if (document.getElementById("id_description").value != "")
        {
            document.getElementById("submit").innerHTML = "Save";
        }
	}

</script>
{% endblock %}
{% block onload %} onload="javascript:test();"  {% endblock %}
{% block manage %}
<form name=frm id=frm action="" method="post" >
  {% csrf_token %}
  <center>
  <table class=span1>
  {{ form.as_table }}
  </table>
  </center>
    
  <center><button class="btn" type="submit" id="submit" name="questionpaper">Design Question Paper</button>
  <button class="btn" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/showquiz/");'>Cancel</button> </center>
</form>
{% endblock %}