diff options
author | ankitjavalkar | 2019-01-29 14:55:56 +0530 |
---|---|---|
committer | GitHub | 2019-01-29 14:55:56 +0530 |
commit | cedceac0c7b64e2116b5cfd5ec9461fdff98842c (patch) | |
tree | 41081e047397ab7717b61c6bb4b08cb948eca7f5 /yaksh/templates/exam.html | |
parent | a70751c25afd688f20ee46924c5ddc591c89f7e1 (diff) | |
parent | 010d302e9b925736674ce5c5eda4f6a7ffbebb98 (diff) | |
download | online_test-cedceac0c7b64e2116b5cfd5ec9461fdff98842c.tar.gz online_test-cedceac0c7b64e2116b5cfd5ec9461fdff98842c.tar.bz2 online_test-cedceac0c7b64e2116b5cfd5ec9461fdff98842c.zip |
Merge pull request #528 from CruiseDevice/fix-legend
Fix legend on Quiz interface
Diffstat (limited to 'yaksh/templates/exam.html')
-rw-r--r-- | yaksh/templates/exam.html | 47 |
1 files changed, 20 insertions, 27 deletions
diff --git a/yaksh/templates/exam.html b/yaksh/templates/exam.html index c452929..29ad167 100644 --- a/yaksh/templates/exam.html +++ b/yaksh/templates/exam.html @@ -1,10 +1,5 @@ {% extends "base.html" %} {% load custom_filters %} - - - - -{% load custom_filters %} {% block nav %} <div class="container-fluid yakshnav"> <nav class="navbar fixed-top navbar-expand-lg yakshheading yakshnav"> @@ -83,28 +78,26 @@ <p class="text-center">Question(s) left: <b>{{ paper.questions_left }}</b></p> </div> <br> - <div class=""> - <div class=""> - <div class=""> - {% for types in question_types %} - {% get_questions_by_type paper.get_all_ordered_questions types as questions_by_type %} - {% if types == "mcq" %} Single Correct Choice - {% elif types == "mcc" %} Multiple Correct Choice - {% elif types == "code" %} Programming - {% elif types == "upload" %} Assignment Upload - {% elif types == "integer" %} Integer Blanks - {% elif types == "string" %} String Blanks - {% elif types == "float" %} Float Blanks - {% elif types == "arrange" %} Arranging Options - {% endif %} - ---> - <b> {% for question in questions_by_type %} {{question.id}} {%endfor%} </b> - <br> - {%endfor%} - </div> - </div> - </div> - + <table class = "legend_table table-bordered table-sm"> + <thead> + <tr> + <th>Category</th> + <th>Question No.</th> + </tr> + </thead> + <tbody> + {% for category, question_number in paper.get_categorized_question_indices.items %} + <tr> + <td> + {{category}} + </td> + <td> + {{question_number| join:", "}} + </td> + </tr> + {% endfor %} + </tbody> + </table> </div> <!--end of sidebar --> <a href="#sidebar" data-toggle="collapse" id="sidebaricon"><i class="fa fa-navicon fa-lg"></i></a> |