From d0c08efb57d0b83845ebccf67df09e798791c6e3 Mon Sep 17 00:00:00 2001 From: adityacp Date: Tue, 11 Feb 2020 15:12:49 +0530 Subject: Change templates, urls, views - Remove separate tab for allotted courses in moderator dashboard - Remove separate tab for enrolled courses in student dashboard - Increase pagination items for courses - Remove view function for allotted courses --- grades/templates/grading_systems.html | 5 -- yaksh/templates/yaksh/add_course.html | 5 -- yaksh/templates/yaksh/courses.html | 36 ++++++----- yaksh/templates/yaksh/grade_user.html | 31 ++++++++-- yaksh/templates/yaksh/lessons.html | 12 ++-- yaksh/templates/yaksh/moderator_dashboard.html | 2 +- yaksh/templates/yaksh/modules.html | 11 ++-- yaksh/templates/yaksh/monitor.html | 27 +++++++-- yaksh/templates/yaksh/quizzes.html | 12 ++-- yaksh/templates/yaksh/quizzes_user.html | 82 ++++++++------------------ yaksh/templates/yaksh/showquestions.html | 9 ++- yaksh/urls.py | 4 -- yaksh/views.py | 59 +++++++----------- 13 files changed, 134 insertions(+), 161 deletions(-) diff --git a/grades/templates/grading_systems.html b/grades/templates/grading_systems.html index 0b26e8e..8102230 100644 --- a/grades/templates/grading_systems.html +++ b/grades/templates/grading_systems.html @@ -11,11 +11,6 @@ My Courses -
Course: {{ paper.course.name }}
Quiz: {{ paper.question_paper.quiz.description }}
+Start time: {{ paper.start_time }}
End time: {{ paper.end_time }}
+Status: {% if paper.passed %} Passed @@ -168,16 +189,16 @@ $(document).ready(function() Failed {% endif %}
-Total Marks: {{ paper.question_paper.total_marks }}
Marks obtained: {{ paper.marks_obtained }}
+Percentage obtained: {{paper.percent}}%
{% endif %}Total attempts at questions: {{ paper.answers.count }}
- Attempt Number: + Attempt Number: {{paper.attempt_number}} diff --git a/yaksh/templates/yaksh/lessons.html b/yaksh/templates/yaksh/lessons.html index 6bdc762..0146a6b 100644 --- a/yaksh/templates/yaksh/lessons.html +++ b/yaksh/templates/yaksh/lessons.html @@ -11,11 +11,6 @@ My Courses -