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/add_question.html | 138 +++++++++++++++++-- testapp/templates/exam/complete.html | 3 +- testapp/templates/exam/edit_question.html | 217 ++++++++++++++++++++++++------ testapp/templates/exam/grade_user.html | 53 +++----- testapp/templates/exam/intro.html | 6 +- testapp/templates/exam/question.html | 23 +++- 6 files changed, 343 insertions(+), 97 deletions(-) (limited to 'testapp/templates/exam') diff --git a/testapp/templates/exam/add_question.html b/testapp/templates/exam/add_question.html index 8bccb66..6c1d533 100644 --- a/testapp/templates/exam/add_question.html +++ b/testapp/templates/exam/add_question.html @@ -1,32 +1,142 @@ {% extends "manage.html" %} + {% block subtitle %}Add Question{% endblock %} +{% block css %} + +{% endblock %} + {% block script %} - + {% endblock %} -{% block css %} - -{% endblock %} + +{% block onload %} onload='javascript:textareaformat();' {% endblock %} {% block manage %} -
+ {% csrf_token %} -Look of Question in HTML Format : -

-
- {{ form.as_table }} -
- + 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:

+ Description: {{ form.description}} {{form.description.errors}} + Test: {{ form.test }}{{form.test.errors}} + Options: {{ form.options }} {{form.options.errors}} +
- {% endblock %} + diff --git a/testapp/templates/exam/complete.html b/testapp/templates/exam/complete.html index dfeee6c..a2e673b 100644 --- a/testapp/templates/exam/complete.html +++ b/testapp/templates/exam/complete.html @@ -7,5 +7,6 @@

Good bye!

{{message}}

-

You may now close the browser.

+

You may now close the browser.


+
Login Again
{% endblock content %} 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 : -

-
-