summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrabhu Ramachandran2011-11-17 21:52:21 +0530
committerPrabhu Ramachandran2011-11-17 21:52:21 +0530
commit3d9a6bc68e5fbf9093a7ea926c7431e93775d8d3 (patch)
tree5fa8d75aa8661f07fbbd39d0dc182b4a3d729b7f
parent9f674808a5681a0380531ff62079b94874641c1e (diff)
downloadonline_test-3d9a6bc68e5fbf9093a7ea926c7431e93775d8d3.tar.gz
online_test-3d9a6bc68e5fbf9093a7ea926c7431e93775d8d3.tar.bz2
online_test-3d9a6bc68e5fbf9093a7ea926c7431e93775d8d3.zip
ENH/BUG: Showing number of marks and fixing bug.
The check view was not showing the quiz description.
-rw-r--r--exam/views.py1
-rw-r--r--templates/exam/question.html6
2 files changed, 5 insertions, 2 deletions
diff --git a/exam/views.py b/exam/views.py
index 2437fba..f30398a 100644
--- a/exam/views.py
+++ b/exam/views.py
@@ -184,6 +184,7 @@ def check(request, q_id):
context = {'question': question, 'error_message': err_msg,
'paper': paper, 'last_attempt': answer,
+ 'quiz_name': paper.quiz.description,
'time_left': time_left}
return render_to_response('exam/question.html', context,
diff --git a/templates/exam/question.html b/templates/exam/question.html
index 9ea27c4..fe27e8f 100644
--- a/templates/exam/question.html
+++ b/templates/exam/question.html
@@ -48,9 +48,11 @@ function update_time()
{% block onload %} onload="update_time()" {% endblock %}
{% block content %}
-<h2> {{ question.summary }} </h2>
+<h3> {{ question.summary }} </h3>
-<p>{{ question.description }} </p>
+<p>{{ question.description }}
+<br/>
+(Marks: {{ question.points }}) </p>
{% if error_message %}<p><strong>ERROR:</strong></p><pre>{{ error_message }}</pre>{% endif %}