From c0fcc1181e209192f6d11f2ca521e55e33a4ead7 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Mon, 2 Apr 2012 18:04:43 +0530 Subject: Question Paper generator changes --- testapp/templates/exam/add_questionpaper.html | 54 +++++++++++ testapp/templates/exam/add_quiz.html | 3 +- .../templates/exam/automatic_questionpaper.html | 101 +++++++++++++++++++++ testapp/templates/exam/editquestionpaper.html | 21 +++++ testapp/templates/exam/manual_questionpaper.html | 42 +++++++++ testapp/templates/exam/showquestionpapers.html | 21 +++++ 6 files changed, 241 insertions(+), 1 deletion(-) create mode 100644 testapp/templates/exam/add_questionpaper.html create mode 100644 testapp/templates/exam/automatic_questionpaper.html create mode 100644 testapp/templates/exam/editquestionpaper.html create mode 100644 testapp/templates/exam/manual_questionpaper.html create mode 100644 testapp/templates/exam/showquestionpapers.html (limited to 'testapp/templates/exam') diff --git a/testapp/templates/exam/add_questionpaper.html b/testapp/templates/exam/add_questionpaper.html new file mode 100644 index 0000000..664093c --- /dev/null +++ b/testapp/templates/exam/add_questionpaper.html @@ -0,0 +1,54 @@ +{% extends "manage.html" %} + + +{% block subtitle %}Design Question Paper{% endblock %} + +{% block css %} + + +{% endblock %} +{% block script %} + + + + +{% endblock %} + +{% block manage %} +
+{% csrf_token %} +Select mode to design Question Paper: + +
+ + +{% endblock %} diff --git a/testapp/templates/exam/add_quiz.html b/testapp/templates/exam/add_quiz.html index c5998d8..c8e1ac3 100644 --- a/testapp/templates/exam/add_quiz.html +++ b/testapp/templates/exam/add_quiz.html @@ -27,7 +27,8 @@ {{ form.as_table }} -
+ +
{% endblock %} diff --git a/testapp/templates/exam/automatic_questionpaper.html b/testapp/templates/exam/automatic_questionpaper.html new file mode 100644 index 0000000..b961711 --- /dev/null +++ b/testapp/templates/exam/automatic_questionpaper.html @@ -0,0 +1,101 @@ +{% extends "manage.html" %} + + +{% block subtitle %}Design Question Paper{% endblock %} + +{% block css %} + + + +{% endblock %} +{% block script %} + + + + +{% endblock %} + +{% block manage %} +
Automotic mode to design the Question Paper

+ +
+ {% csrf_token %} +
+ Tag Conditions: + + + + + + + + + +
+ +
+ +
Number of question:  
+ +
+
+

Below is the list of Questions fetched according to the given tag conditions

+
+
+ +
+ {% endfor %} +
Summary + Type + Points + Tags + {% for question in data.questions %} +
{{ question.summary }} {{ question.type }} {{ question.points }} + {% for tag in question.tags.all %} + {{ tag }} + {% endfor %} +
+ {% if data.msg %}
{{ data.msg }}
{% endif %} +
+ + +{% endblock %} diff --git a/testapp/templates/exam/editquestionpaper.html b/testapp/templates/exam/editquestionpaper.html new file mode 100644 index 0000000..68a9c22 --- /dev/null +++ b/testapp/templates/exam/editquestionpaper.html @@ -0,0 +1,21 @@ +{% extends "manage.html" %} + + +{% block subtitle %}Questions in "{{ papers.quiz.description }}"{% endblock %} + +{% block script %} + +{% endblock %} + +{% block manage %} +
+{% csrf_token %} + +{% for i in papers.questions %} +  {{ i.summary}}
+{% endfor %} +
+   + +
+{% endblock %} diff --git a/testapp/templates/exam/manual_questionpaper.html b/testapp/templates/exam/manual_questionpaper.html new file mode 100644 index 0000000..96370c0 --- /dev/null +++ b/testapp/templates/exam/manual_questionpaper.html @@ -0,0 +1,42 @@ +{% extends "manage.html" %} + + +{% block subtitle %}Design Question Paper{% endblock %} + +{% block css %} + + +{% endblock %} +{% block script %} + + + + +{% endblock %} + +{% block manage %} +
+{% csrf_token %} +Select mode to design Question Paper: + +
+ + + +{% endblock %} diff --git a/testapp/templates/exam/showquestionpapers.html b/testapp/templates/exam/showquestionpapers.html new file mode 100644 index 0000000..7a77d2f --- /dev/null +++ b/testapp/templates/exam/showquestionpapers.html @@ -0,0 +1,21 @@ +{% extends "manage.html" %} + + +{% block subtitle %}List of Question Papers {% endblock %} + +{% block script %} + +{% endblock %} + +{% block manage %} +
+{% csrf_token %} +{% for i in papers %} +  {{ i.quiz.description }}
+{% endfor %} +
+   +   + +
+{% endblock %} -- cgit