From 763f96559bd1827ce87a72708d72efc9361ef588 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Mon, 16 Jun 2014 17:04:40 +0530 Subject: Models modified. QuestionPaper model modified for generating random questions. Added language field to Question model. Removed tags from Quiz model. Template and javascript for Add and Edit questions modified. Added test cases for models. --- testapp/templates/exam/add_question.html | 6 ++++-- testapp/templates/exam/add_quiz.html | 3 --- testapp/templates/exam/edit_question.html | 12 ++++++------ testapp/templates/exam/edit_quiz.html | 4 ---- 4 files changed, 10 insertions(+), 15 deletions(-) (limited to 'testapp/templates/exam') diff --git a/testapp/templates/exam/add_question.html b/testapp/templates/exam/add_question.html index b49d7de..b0b22b1 100644 --- a/testapp/templates/exam/add_question.html +++ b/testapp/templates/exam/add_question.html @@ -22,8 +22,10 @@ {% csrf_token %}
diff --git a/testapp/templates/exam/add_quiz.html b/testapp/templates/exam/add_quiz.html index 9851584..c2533de 100644 --- a/testapp/templates/exam/add_quiz.html +++ b/testapp/templates/exam/add_quiz.html @@ -5,11 +5,8 @@ {% block css %} - {% endblock %} {% block script %} - - {% endblock %} {% block onload %} onload="javascript:test();" {% endblock %} diff --git a/testapp/templates/exam/edit_question.html b/testapp/templates/exam/edit_question.html index 73e61d7..b28cc3e 100644 --- a/testapp/templates/exam/edit_question.html +++ b/testapp/templates/exam/edit_question.html @@ -30,15 +30,15 @@
Summary: {{ form.summary }}{{ form.summary.errors }} -
Points:{{ form.points }}{{ form.points.errors }}   Active:   {{ form.active }}{{form.active.errors}}   Type:  {{ form.type }}{{form.type.errors}} -
Rendered:

+
Language: {{form.language}}{{form.language.errors}} +
Active: {{ form.active }}{{form.active.errors}}   Type:  {{ form.type }}{{form.type.errors}} +
Points:{{ form.points }}{{ form.points.errors }} +
Rendered:

Description: {{ form.description}} {{form.description.errors}}
Test: {{ form.test }}{{form.test.errors}}
Snippet: {{ form.snippet }}{{ form.snippet.errors }}
-
Summary: {{ form.summary }}{{ form.summary.errors }} - -
Points:{{ form.points }}{{ form.points.errors }}   Active:   {{ form.active }}{{form.active.errors}}   Type:  {{ form.type }}{{form.type.errors}} - +
Language: {{form.language}}{{form.language.errors}} +
Active:   {{ form.active }}{{form.active.errors}}   Type:  {{ form.type }}{{form.type.errors}} +
Points:{{ form.points }}{{ form.points.errors }}
Rendered:

Description: {{ form.description }} {{form.description.errors}} -
Test: {{ form.test }}{{form.test.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}} +
Tags: {{ form.tags }} +
Options:{{ form.options }} {{form.options.errors}} {{form.options.helptext}}
diff --git a/testapp/templates/exam/edit_quiz.html b/testapp/templates/exam/edit_quiz.html index 0ea4aae..cf80df1 100644 --- a/testapp/templates/exam/edit_quiz.html +++ b/testapp/templates/exam/edit_quiz.html @@ -5,13 +5,10 @@ {% block css %} - {% endblock %} {% block script %} - - {% endblock %} {% block onload %} onload = 'javascript:form_load();' {% endblock %} @@ -25,7 +22,6 @@ Start Date: {{ form.start_date}} Duration: {{ form.duration }} Active: {{ form.active }} - Tags: {{ form.tags }} Description: {{ form.description }}
{% endfor %} -- cgit