diff options
author | Prabhu Ramachandran | 2011-11-14 00:00:33 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2011-11-14 00:00:33 +0530 |
commit | 428c2f36e5699ecda6ecb179ab3d87c373984998 (patch) | |
tree | 2120845c67e7b30dc810ec6ccc4213d360ed85ac /templates/exam | |
parent | fb7257f168f8e3187dccf0bb2d0ac88418028e17 (diff) | |
download | online_test-428c2f36e5699ecda6ecb179ab3d87c373984998.tar.gz online_test-428c2f36e5699ecda6ecb179ab3d87c373984998.tar.bz2 online_test-428c2f36e5699ecda6ecb179ab3d87c373984998.zip |
ENH: Prettifying error message and show username.
Diffstat (limited to 'templates/exam')
-rw-r--r-- | templates/exam/question.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/exam/question.html b/templates/exam/question.html index 4cfda27..b70d97b 100644 --- a/templates/exam/question.html +++ b/templates/exam/question.html @@ -2,7 +2,7 @@ <p>{{ question.description }} </p> -{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %} +{% if error_message %}<p><strong>ERROR:</strong></p><pre>{{ error_message }}</pre>{% endif %} <form action="/exam/{{ question.id }}/check/" method="post"> {% csrf_token %} @@ -17,7 +17,7 @@ <input type="submit" name="skip" value="Skip question" /> </form> -<p> You have {{quiz.questions_left}} question(s) left. </p> +<p> {{ user.first_name.title }} {{ user.last_name.title }}, you have {{ quiz.questions_left }} question(s) left. </p> <hr/> <form action="/exam/quit/" method="post"> |