From 8007fa364ce894a879f72d72c104e7fe49e7154f Mon Sep 17 00:00:00 2001 From: adityacp Date: Mon, 30 Mar 2020 16:03:02 +0530 Subject: Change templates, js, views - Show module name in design module page - Fix tooltip in design course and design module page - Change order of sidebar menu in course detail page --- yaksh/static/yaksh/js/design_course.js | 10 +++++++--- yaksh/templates/yaksh/add_module.html | 5 ++--- yaksh/templates/yaksh/course_added_modules.html | 12 ++++++++++++ yaksh/templates/yaksh/course_detail_options.html | 18 +++++++++--------- yaksh/templates/yaksh/courses.html | 8 -------- yaksh/templates/yaksh/design_course_session.html | 8 +++----- yaksh/views.py | 1 + 7 files changed, 34 insertions(+), 28 deletions(-) diff --git a/yaksh/static/yaksh/js/design_course.js b/yaksh/static/yaksh/js/design_course.js index dbff9fd..4e2dc9d 100644 --- a/yaksh/static/yaksh/js/design_course.js +++ b/yaksh/static/yaksh/js/design_course.js @@ -20,7 +20,11 @@ $(document).ready(function(){ $(this).append(''); return true; }); - var msg = "Check Prerequisite is set to Yes by default \n" + - "To change, select the Change checkbox and Click Change Prerequisite button \n"; - $("#prereq_msg").attr("title", msg); + var completion_msg = "This will check if the previous module is completed " + + "before viewing the next module." + $("#prereq_msg").attr("title", completion_msg); + $("#prereq_msg").tooltip(); + var completion_msg = "This will check if the previous module is completed " + + "before viewing the next module based on quiz passing status." + $("#prereq_passing_msg").attr("title", completion_msg); }); \ No newline at end of file diff --git a/yaksh/templates/yaksh/add_module.html b/yaksh/templates/yaksh/add_module.html index edbfaa2..262c009 100644 --- a/yaksh/templates/yaksh/add_module.html +++ b/yaksh/templates/yaksh/add_module.html @@ -110,7 +110,7 @@ {% if status == "design" %}