From 9acff5f2cf9f9ae3d2fc097e1fcd84712d3199d0 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Thu, 23 Feb 2012 16:30:36 +0530 Subject: more changes to edit multiple questions at a time --- testapp/templates/exam/edit_question.html | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 testapp/templates/exam/edit_question.html (limited to 'testapp/templates/exam/edit_question.html') diff --git a/testapp/templates/exam/edit_question.html b/testapp/templates/exam/edit_question.html new file mode 100644 index 0000000..04217ab --- /dev/null +++ b/testapp/templates/exam/edit_question.html @@ -0,0 +1,29 @@ +{% extends "manage.html" %} + +{% block subtitle %} +Edit Question +{% endblock %} + + +{% block manage %} + + +
+{% csrf_token %} +{% for form in forms %} + +{{ form.as_table }} +
+
+{% endfor %} +
+
+
+{% endblock %} -- cgit From b1fbf5b02280de5b78b0249e777a179e34b50b98 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Fri, 24 Feb 2012 16:16:38 +0530 Subject: formating and identation --- testapp/templates/exam/edit_question.html | 38 +++++++++++++++---------------- 1 file changed, 18 insertions(+), 20 deletions(-) (limited to 'testapp/templates/exam/edit_question.html') diff --git a/testapp/templates/exam/edit_question.html b/testapp/templates/exam/edit_question.html index 04217ab..7613cc6 100644 --- a/testapp/templates/exam/edit_question.html +++ b/testapp/templates/exam/edit_question.html @@ -1,29 +1,27 @@ {% extends "manage.html" %} -{% block subtitle %} -Edit Question -{% endblock %} +{% block subtitle %}Edit Question{% endblock %} {% block manage %} - +
-{% csrf_token %} -{% for form in forms %} - -{{ form.as_table }} -
-
-{% endfor %} -
-
+ {% csrf_token %} + {% for form in forms %} + + {{ form.as_table }} +
+
+ {% endfor %} +
+
{% endblock %} -- cgit From b7ad768a6cc4fe5c8a05e20b1968f13a678c22cc Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Tue, 28 Feb 2012 12:09:28 +0530 Subject: changes to remove the inline css from every page --- testapp/templates/exam/edit_question.html | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'testapp/templates/exam/edit_question.html') diff --git a/testapp/templates/exam/edit_question.html b/testapp/templates/exam/edit_question.html index 7613cc6..6a4f1ec 100644 --- a/testapp/templates/exam/edit_question.html +++ b/testapp/templates/exam/edit_question.html @@ -2,21 +2,15 @@ {% block subtitle %}Edit Question{% endblock %} +{% block css %} + +{% endblock %} {% block manage %} - -
{% csrf_token %} {% for form in forms %} - +
{{ form.as_table }}

-- cgit From 87862b8c8d7822a4578b5cb5f413bedb37454bd2 Mon Sep 17 00:00:00 2001 From: jayparikh111 Date: Wed, 29 Feb 2012 13:14:00 +0530 Subject: minor changes for rendering question(s) --- testapp/templates/exam/edit_question.html | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'testapp/templates/exam/edit_question.html') diff --git a/testapp/templates/exam/edit_question.html b/testapp/templates/exam/edit_question.html index 6a4f1ec..a189ac5 100644 --- a/testapp/templates/exam/edit_question.html +++ b/testapp/templates/exam/edit_question.html @@ -5,11 +5,25 @@ {% block css %} {% endblock %} - +{% block script %} + +{% endblock %} {% block manage %} - + {% csrf_token %} + {% for form in forms %} +Look of Question in HTML Format : +

{{ form.as_table }}
@@ -19,3 +33,4 @@
{% endblock %} + -- cgit From a7c84a478789e9e835dcbb3ea41b1d519ba69b4d Mon Sep 17 00:00:00 2001 From: jayparikh111 Date: Tue, 13 Mar 2012 18:44:01 +0530 Subject: minor changes for UI --- testapp/templates/exam/edit_question.html | 40 +++++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) (limited to 'testapp/templates/exam/edit_question.html') diff --git a/testapp/templates/exam/edit_question.html b/testapp/templates/exam/edit_question.html index a189ac5..b1395e9 100644 --- a/testapp/templates/exam/edit_question.html +++ b/testapp/templates/exam/edit_question.html @@ -15,15 +15,49 @@ function my_render(frm) } } +function load_form() +{ + +} + +function data(showContent,showHideDiv) +{ + var con = document.getElementById(showContent); + var ele=document.getElementById(showHideDiv); + if (ele.style.display=="block") + { + con.style.display = "none" + ele.style.display = "none"; + } + else + { + con.style.display = "block"; + ele.style.display = "block"; + } +} {% endblock %} +{% block onload %} onload='javascript:load_form();' {% endblock %} {% block manage %}
{% csrf_token %} - {% for form in forms %} -Look of Question in HTML Format : + {% for form in forms %} + + {{ form.summary.value }}Show
+ Look of Question in HTML Format :

+
+ +
+
+ {% endfor %} + + {% for form in forms %} + {{ form.as_table }}
@@ -32,5 +66,7 @@ function my_render(frm)
+ + {% endblock %} -- cgit From 480fc524eaffa99bbcec65b0829f6116ccace673 Mon Sep 17 00:00:00 2001 From: jayparikh111 Date: Thu, 15 Mar 2012 18:12:49 +0530 Subject: minor UI changes --- testapp/templates/exam/edit_question.html | 217 ++++++++++++++++++++++++------ 1 file changed, 177 insertions(+), 40 deletions(-) (limited to 'testapp/templates/exam/edit_question.html') diff --git a/testapp/templates/exam/edit_question.html b/testapp/templates/exam/edit_question.html index b1395e9..2ab3c7a 100644 --- a/testapp/templates/exam/edit_question.html +++ b/testapp/templates/exam/edit_question.html @@ -3,70 +3,207 @@ {% block subtitle %}Edit Question{% endblock %} {% block css %} - + {% endblock %} {% block script %} {% endblock %} -{% block onload %} onload='javascript:load_form();' {% endblock %} + +{% block onload %} onload = 'javascript:textareaformat();' {% endblock %} + {% block manage %} -
+ {% csrf_token %} - - {% for form in forms %} - - {{ form.summary.value }}Show
- Look of Question in HTML Format : -

-
-
{% endfor %} -- cgit From 56bd985701bee1e4c9ed8a694c5b2ff1258e2aad Mon Sep 17 00:00:00 2001 From: jayparikh111 Date: Thu, 1 Nov 2012 13:43:21 +0530 Subject: Removed Global variables for Quiz & Questions --- testapp/templates/exam/edit_question.html | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'testapp/templates/exam/edit_question.html') 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 @@
{% csrf_token %}

Click on the Question links to edit the question.

+ {% for form in forms %} @@ -42,6 +43,10 @@ {% endfor %}
+{% for i in data %} + +{% endfor %} +
-- cgit From c12f20984aa75751af89a0d6213bc35924bc593b Mon Sep 17 00:00:00 2001 From: Jay Parikh Date: Mon, 18 Mar 2013 15:11:15 +0530 Subject: Added code snippets for questions --- testapp/templates/exam/edit_question.html | 1 + 1 file changed, 1 insertion(+) (limited to 'testapp/templates/exam/edit_question.html') diff --git a/testapp/templates/exam/edit_question.html b/testapp/templates/exam/edit_question.html index 0a41326..96502f1 100644 --- a/testapp/templates/exam/edit_question.html +++ b/testapp/templates/exam/edit_question.html @@ -36,6 +36,7 @@ Rendered:

Description: {{ form.description }} {{form.description.errors}} Test: {{ form.test }}{{form.test.errors}} + Snippet: {{ form.snippet }}{{ form.snippet.errors }} Tags: {{ form.tags }} Options: {{ form.options }} {{form.options.errors}} {{form.options.helptext}} -- cgit