From c61396a219efb3b078094d028e41fe51bc857fe3 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Mon, 20 Feb 2012 20:28:51 +0530 Subject: new file to manage quiz --- testapp/templates/exam/show_quiz.html | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 testapp/templates/exam/show_quiz.html (limited to 'testapp/templates/exam/show_quiz.html') diff --git a/testapp/templates/exam/show_quiz.html b/testapp/templates/exam/show_quiz.html new file mode 100644 index 0000000..a113953 --- /dev/null +++ b/testapp/templates/exam/show_quiz.html @@ -0,0 +1,46 @@ +{% extends "manage.html" %} + +{% block title %} Quiz List {% endblock title %} + +{% block script %} + +{% endblock %} + +{% block manage %} +{% if not quizzes and not quiz %} +

Available Quiz

+ +
No quizzes available.
+ +{% endif %} + +{# ############################################################### #} +{# This is rendered when we are just viewing exam/monitor #} +{% if quizzes %} +

List of Quizzes

+
+{% csrf_token %} +{% for quiz in quizzes %} + +  {{ quiz.description }}
+{% endfor %} +

+   +
+{% endif %} +{% endblock %} -- cgit From 6b608e174fbd9367c9453f7933b69a35516811d2 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Tue, 21 Feb 2012 11:35:56 +0530 Subject: add docstrings to each view in views.py --- testapp/templates/exam/show_quiz.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'testapp/templates/exam/show_quiz.html') diff --git a/testapp/templates/exam/show_quiz.html b/testapp/templates/exam/show_quiz.html index a113953..bbea77f 100644 --- a/testapp/templates/exam/show_quiz.html +++ b/testapp/templates/exam/show_quiz.html @@ -23,16 +23,14 @@ function my_confirm(frm) {% block manage %} {% if not quizzes and not quiz %} -

Available Quiz

- +
Available Quiz
No quizzes available.
- {% endif %} {# ############################################################### #} {# This is rendered when we are just viewing exam/monitor #} {% if quizzes %} -

List of Quizzes

+

Quiz List

{% csrf_token %} {% for quiz in quizzes %} -- cgit From 2b6b595ca8652696ab9059add8ea54661cab5f31 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Tue, 21 Feb 2012 12:38:38 +0530 Subject: views for editing quiz and questions --- testapp/templates/exam/show_quiz.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testapp/templates/exam/show_quiz.html') diff --git a/testapp/templates/exam/show_quiz.html b/testapp/templates/exam/show_quiz.html index bbea77f..2e9059d 100644 --- a/testapp/templates/exam/show_quiz.html +++ b/testapp/templates/exam/show_quiz.html @@ -35,7 +35,7 @@ function my_confirm(frm) {% csrf_token %} {% for quiz in quizzes %} -  {{ quiz.description }}
+  {{ quiz.description }}
{% endfor %}

   -- cgit From f2d65592affd34bc60cf4a3a2c72de1d84c934c0 Mon Sep 17 00:00:00 2001 From: jayparikh111 Date: Wed, 22 Feb 2012 16:02:07 +0530 Subject: Changes related to Authentication of Moderator --- testapp/templates/exam/show_quiz.html | 1 + 1 file changed, 1 insertion(+) (limited to 'testapp/templates/exam/show_quiz.html') diff --git a/testapp/templates/exam/show_quiz.html b/testapp/templates/exam/show_quiz.html index 2e9059d..001b2fe 100644 --- a/testapp/templates/exam/show_quiz.html +++ b/testapp/templates/exam/show_quiz.html @@ -33,6 +33,7 @@ function my_confirm(frm)

Quiz List

{% csrf_token %} + {% for quiz in quizzes %}   {{ quiz.description }}
-- cgit 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/show_quiz.html | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'testapp/templates/exam/show_quiz.html') 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 %} -- 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/show_quiz.html | 39 +++++++++++++++++------------------ 1 file changed, 19 insertions(+), 20 deletions(-) (limited to 'testapp/templates/exam/show_quiz.html') diff --git a/testapp/templates/exam/show_quiz.html b/testapp/templates/exam/show_quiz.html index d546b06..e6aecd6 100644 --- a/testapp/templates/exam/show_quiz.html +++ b/testapp/templates/exam/show_quiz.html @@ -3,33 +3,31 @@ {% block title %} Quiz List {% endblock title %} {% block script %} - + } + {% endblock %} {% block manage %} @@ -46,13 +44,14 @@ function confirm_edit(frm) {% csrf_token %} {% for quiz in quizzes %} -   {{ quiz.description }}
{% endfor %} +

      {% endif %} + {% 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/show_quiz.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'testapp/templates/exam/show_quiz.html') diff --git a/testapp/templates/exam/show_quiz.html b/testapp/templates/exam/show_quiz.html index e6aecd6..684cfd2 100644 --- a/testapp/templates/exam/show_quiz.html +++ b/testapp/templates/exam/show_quiz.html @@ -27,19 +27,18 @@ if(n == frm.quiz.length) location.replace("{{URL_ROOT}}/exam/manage/showquiz"); } + {% endblock %} - +{% block subtitle %} Quiz List {% endblock %} {% block manage %} {% if not quizzes and not quiz %} -
Available Quiz
No quizzes available.
{% endif %} {# ############################################################### #} {# This is rendered when we are just viewing exam/monitor #} {% if quizzes %} -

Quiz List

{% csrf_token %} -- cgit From b1ba290f249d84989cb3cc38d018482794582a46 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Thu, 22 Mar 2012 16:56:22 +0530 Subject: Autocomplete tagging functionality --- testapp/templates/exam/show_quiz.html | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) (limited to 'testapp/templates/exam/show_quiz.html') diff --git a/testapp/templates/exam/show_quiz.html b/testapp/templates/exam/show_quiz.html index 684cfd2..1a4c289 100644 --- a/testapp/templates/exam/show_quiz.html +++ b/testapp/templates/exam/show_quiz.html @@ -3,33 +3,9 @@ {% block title %} Quiz List {% endblock title %} {% block script %} - + {% endblock %} + {% block subtitle %} Quiz List {% endblock %} {% block manage %} {% if not quizzes and not quiz %} -- cgit From 246478f4ef75ae713e96a64d210bd3710bed3df9 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Thu, 22 Mar 2012 17:50:34 +0530 Subject: Tagging functionality in quiz --- testapp/templates/exam/show_quiz.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testapp/templates/exam/show_quiz.html') diff --git a/testapp/templates/exam/show_quiz.html b/testapp/templates/exam/show_quiz.html index 1a4c289..886a696 100644 --- a/testapp/templates/exam/show_quiz.html +++ b/testapp/templates/exam/show_quiz.html @@ -24,8 +24,8 @@

   -   - +   +
{% endif %} -- cgit