From dd3fd7b8c58d836baba24441e7d55c6d51858eab Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Thu, 23 Feb 2012 18:49:36 +0530 Subject: View for Editing Quiz --- testapp/templates/exam/edit_quiz.html | 31 +++++++++++++++++++++++++++++++ testapp/templates/exam/show_quiz.html | 15 ++++++++++++++- testapp/templates/exam/user_data.html | 28 ++++------------------------ 3 files changed, 49 insertions(+), 25 deletions(-) create mode 100644 testapp/templates/exam/edit_quiz.html (limited to 'testapp/templates/exam') diff --git a/testapp/templates/exam/edit_quiz.html b/testapp/templates/exam/edit_quiz.html new file mode 100644 index 0000000..7744623 --- /dev/null +++ b/testapp/templates/exam/edit_quiz.html @@ -0,0 +1,31 @@ +{% extends "manage.html" %} + + +{% block subtitle %} +Edit Quiz(zes) +{% endblock %} + +{% block manage %} + + +
+{% csrf_token %} +{% for form in forms %} +
+ +{{ form.as_table }} +
+
+
+{% endfor %} +
+
+
+{% endblock %} diff --git a/testapp/templates/exam/show_quiz.html b/testapp/templates/exam/show_quiz.html index 001b2fe..d546b06 100644 --- a/testapp/templates/exam/show_quiz.html +++ b/testapp/templates/exam/show_quiz.html @@ -17,6 +17,17 @@ function my_confirm(frm) } } +function confirm_edit(frm) +{ + var n = 0; + for (var i =0;i {% endblock %} @@ -39,7 +50,9 @@ function my_confirm(frm)   {{ quiz.description }}
{% endfor %}

-   +   +   + {% endif %} {% endblock %} diff --git a/testapp/templates/exam/user_data.html b/testapp/templates/exam/user_data.html index c835f61..943dfe8 100644 --- a/testapp/templates/exam/user_data.html +++ b/testapp/templates/exam/user_data.html @@ -1,20 +1,11 @@ -{% extends "base.html" %} +{% extends "manage.html" %} {% block title %} Data for user {{ data.user.get_full_name.title }} {% endblock title %} -{% block content %} +{% block manage %} -
-
- -
-
-

Data for user {{ data.user.get_full_name.title }}


+{% block subtitle %}Data for user {{ data.user.get_full_name.title }}{% endblock %}
- -

Name: {{ data.user.get_full_name.title }}
Username: {{ data.user.username }}
@@ -87,16 +78,5 @@ User IP address: {{ paper.user_ip }} Monitor quiz {% endwith %} {% endif %} -
-Admin - -

-
-
-
-

© FOSSEE group, IIT Bombay

-
- -
-{% endblock content %} +{% endblock %} -- cgit