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 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'testapp/templates/exam/add_question.html') 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 %}
-- cgit
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 }}