diff options
author | prathamesh | 2013-07-02 13:15:24 +0530 |
---|---|---|
committer | prathamesh | 2013-07-02 13:15:24 +0530 |
commit | 37625e5c91f2bf957c6739981f7698e0d880b6ed (patch) | |
tree | 387e52fa104f9f3562dad3f7690bec7493730310 /testapp/templates/exam/question.html | |
parent | fe868c043487af8ea390165325309ad29daacc8e (diff) | |
parent | 610709c2ff35263741ca6e41c3648439806b564a (diff) | |
download | online_test-37625e5c91f2bf957c6739981f7698e0d880b6ed.tar.gz online_test-37625e5c91f2bf957c6739981f7698e0d880b6ed.tar.bz2 online_test-37625e5c91f2bf957c6739981f7698e0d880b6ed.zip |
Merge branch 'C-Cpp' of https://github.com/prathamesh920/online_test into fresh_C_Cpp
Diffstat (limited to 'testapp/templates/exam/question.html')
-rw-r--r-- | testapp/templates/exam/question.html | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/testapp/templates/exam/question.html b/testapp/templates/exam/question.html index 1d801b0..11ea1aa 100644 --- a/testapp/templates/exam/question.html +++ b/testapp/templates/exam/question.html @@ -76,8 +76,13 @@ function update_time() <h4><u> {{ question.summary }} </u><font class=pull-right>(Marks : {{ question.points }}) </font></h4><br> <font size=3 face=arial> {{ question.description|safe }} </font> - - {% if error_message %}<h5>ERROR:</h5><div class="alert alert-error">{{ error_message }}</div>{% endif %} + {% if error_message %} + <div class="alert alert-error"> + {% for e in error_message.splitlines %} + {{ e|join:"" }} + <br/> + {% endfor%} + </div>{% endif %} <p id="status"></p> <form id="code" action="{{URL_ROOT}}/exam/{{ question.id }}/check/{{ paper.question_paper.id }}/" method="post"> {% csrf_token %} |