diff options
author | mahesh | 2018-01-16 01:13:49 +0530 |
---|---|---|
committer | maheshgudi | 2018-03-16 15:17:20 +0530 |
commit | 7fc24f1d4fe9208867ab38d600fa35a3c7b31386 (patch) | |
tree | a9ba8019171ee6b2a030c55fc82da4d7527066ac /yaksh/templates | |
parent | 9c5464a6edaaf2aaafc0e42fe88c8734fd952e12 (diff) | |
download | online_test-7fc24f1d4fe9208867ab38d600fa35a3c7b31386.tar.gz online_test-7fc24f1d4fe9208867ab38d600fa35a3c7b31386.tar.bz2 online_test-7fc24f1d4fe9208867ab38d600fa35a3c7b31386.zip |
Add test case order in view_answerpaper
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/yaksh/view_answerpaper.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/yaksh/templates/yaksh/view_answerpaper.html b/yaksh/templates/yaksh/view_answerpaper.html index 410b578..971ef77 100644 --- a/yaksh/templates/yaksh/view_answerpaper.html +++ b/yaksh/templates/yaksh/view_answerpaper.html @@ -34,7 +34,7 @@ Start time: {{ paper.start_time }} <br/> End time : {{ paper.end_time }} <br/> Percentage obtained: {{ paper.percent }}% <br/> - {% if paper.passed == 0 %} + {% if paper.passed %} Status : <b style="color: red;"> Failed </b><br/> {% else %} Status : <b style="color: green;"> Passed </b><br/> @@ -55,7 +55,8 @@ <h5><u>Question:</u></h5> <strong>{{ question.description|safe }}</strong> {% if question.type == "mcq" or question.type == "mcc" %} <h5> <u>Choices:</u></h5> - {% for testcase in question.get_test_cases %} + {% get_ordered_testcases question paper as testcases %} + {% for testcase in testcases %} {% if testcase.correct %} <br/> <strong>{{ forloop.counter }}. {{ testcase.options|safe }}</strong> |