diff options
author | prathamesh | 2016-10-06 12:53:52 +0530 |
---|---|---|
committer | prathamesh | 2016-10-06 12:53:52 +0530 |
commit | f20dfc471fb5167399c4fda131ee0d9b0f9094d5 (patch) | |
tree | 5f1e470c4e8ddd0fec17a6f65f36124f9f5b541b /yaksh | |
parent | 91dd42214ba5ad88c5158b50a7746caa3841a883 (diff) | |
download | online_test-f20dfc471fb5167399c4fda131ee0d9b0f9094d5.tar.gz online_test-f20dfc471fb5167399c4fda131ee0d9b0f9094d5.tar.bz2 online_test-f20dfc471fb5167399c4fda131ee0d9b0f9094d5.zip |
Fixed div collapse inconsistency
It was possible that some collapse have the same href.
So if we click on any one group with the same href then only the
first collapse div would collapse.
Diffstat (limited to 'yaksh')
-rw-r--r-- | yaksh/templates/yaksh/regrade.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/yaksh/templates/yaksh/regrade.html b/yaksh/templates/yaksh/regrade.html index 77d8ec4..5cfc1b0 100644 --- a/yaksh/templates/yaksh/regrade.html +++ b/yaksh/templates/yaksh/regrade.html @@ -44,8 +44,8 @@ </span></h4> <div id="questions_quizzes{{ course.id }}" class="collapse"> {% for quiz in course.quiz_set.all %} - <p><a href="#questions_questions{{ quiz.id }}" data-toggle="collapse">Quiz: {{ quiz }}</a></p> - <div id="questions_questions{{ quiz.id }}" class="collapse"> + <p><a href="#questions_questions{{ course.id }}{{ quiz.id }}" data-toggle="collapse">Quiz: {{ quiz }}</a></p> + <div id="questions_questions{{ course.id }}{{ quiz.id }}" class="collapse"> {% with questionpaper=quiz.questionpaper_set.get %} <p class="bg-info"> Questions: </p> <ol class="list-group"> @@ -80,8 +80,8 @@ </span></h4> <div id="quizzes_quizzes{{ course.id }}" class="collapse"> {% for quiz in course.quiz_set.all %} - <p><a href="#quizzes_papers{{ quiz.id }}" data-toggle="collapse">Quiz: {{ quiz }}</a></p> - <div id="quizzes_papers{{ quiz.id }}" class="collapse"> + <p><a href="#quizzes_papers{{ course.id }}{{ quiz.id }}" data-toggle="collapse">Quiz: {{ quiz }}</a></p> + <div id="quizzes_papers{{ course.id }}{{ quiz.id }}" class="collapse"> <ol class="list-group"> {% for answerpaper in quiz.questionpaper_set.get.answerpaper_set.all %} <li class="list-group"> @@ -114,8 +114,8 @@ </span></h4> <div id="users_users{{ course.id }}" class="collapse"> {% for user in course.students.all %} - <p><a href="#users_papers{{ user.id }}" data-toggle="collapse"> Answer Papers for {{ user.get_full_name }}</a></p> - <div id="users_papers{{ user.id }}" class="collapse"> + <p><a href="#users_papers{{ course.id }}{{ user.id }}" data-toggle="collapse"> Answer Papers for {{ user.get_full_name }}</a></p> + <div id="users_papers{{ course.id }}{{ user.id }}" class="collapse"> <ol class="list-group"> {% for answerpaper in user.answerpaper_set.all %} <li class="list-group"> Quiz: {{answerpaper.question_paper.quiz.description }}; Attempt Number: {{ answerpaper.attempt_number }} |