diff options
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/manage.html | 11 | ||||
-rw-r--r-- | yaksh/templates/user.html | 11 | ||||
-rw-r--r-- | yaksh/templates/yaksh/course_modules.html | 17 | ||||
-rw-r--r-- | yaksh/templates/yaksh/quizzes_user.html | 2 |
4 files changed, 28 insertions, 13 deletions
diff --git a/yaksh/templates/manage.html b/yaksh/templates/manage.html index 3ba2817..fbd4c64 100644 --- a/yaksh/templates/manage.html +++ b/yaksh/templates/manage.html @@ -18,19 +18,20 @@ <li class="nav-item"><a class="nav-link" href="{{ URL_ROOT }}/exam/manage/gradeuser">Grade User</a></li> <li class="nav-item"><a class="nav-link" href="{{ url_root }}/exam/manage/grader"> Regrade </a></li> <li class="nav-item dropdown"> - <a class="dropdown-toggle nav-link" data-toggle="dropdown" href="#"> {{user.get_full_name|title}}</a> + <a class="dropdown-toggle nav-link" id="user_dropdown" data-toggle="dropdown" href="#"> {{user.get_full_name|title}}</a> <div class="dropdown-menu"> <a class="dropdown-item" href="{{ URL_ROOT }}/exam/viewprofile/"><i class="fa fa-user"></i> My Profile</a> <div class="dropdown-divider"></div> - <a class="dropdown-item" href="{{ URL_ROOT }}/exam/reset/changepassword/"><i class="fa fa-key"></i> Change Password</a> - <div class="dropdown-divider"></div> - <a class="dropdown-item" href="{{URL_ROOT}}/exam/logout/"><i class="fa fa-sign-out"></i> Logout</a> - <div class="dropdown-divider"></div> {% if user.profile.is_moderator %} <a class="dropdown-item" href="{{URL_ROOT}}/exam/toggle_moderator/"><i class="fa fa-exchange"></i> Switch To Student </a> + <div class="dropdown-divider"></div> {% endif %} + <a class="dropdown-item" href="{{ URL_ROOT }}/exam/reset/changepassword/"><i class="fa fa-key"></i> Change Password</a> + <div class="dropdown-divider"></div> + <a class="dropdown-item" id="user_logout" href="{{URL_ROOT}}/exam/logout/"><i class="fa fa-sign-out"></i> Logout</a> + <div class="dropdown-divider"></div> </div> </ul> </div> diff --git a/yaksh/templates/user.html b/yaksh/templates/user.html index 91b48ed..db65195 100644 --- a/yaksh/templates/user.html +++ b/yaksh/templates/user.html @@ -15,19 +15,20 @@ <ul class="nav nav-pills ml-auto"> <li class="nav-item"><a class="nav-link" href="{{ URL_ROOT }}/exam/"><i class="fa fa-home" style="size: 18px"></i></a></li> <li class="nav-item dropdown"> - <a class="dropdown-toggle nav-link" data-toggle="dropdown" href="#"> {{user.get_full_name|title}}</a> + <a class="dropdown-toggle nav-link" id="user_dropdown" data-toggle="dropdown" href="#"> {{user.get_full_name|title}}</a> <div class="dropdown-menu"> <a class="dropdown-item" href="{{ URL_ROOT }}/exam/viewprofile/"><i class="fa fa-user"></i> My Profile</a> <div class="dropdown-divider"></div> - <a class="dropdown-item" href="{{ URL_ROOT }}/exam/reset/changepassword/"><i class="fa fa-key"></i> Change Password</a> - <div class="dropdown-divider"></div> - <a class="dropdown-item" href="{{URL_ROOT}}/exam/logout/"><i class="fa fa-sign-out"></i> Logout</a> - <div class="dropdown-divider"></div> {% if user.profile.is_moderator %} <a class="dropdown-item" href="{{URL_ROOT}}/exam/toggle_moderator/"><i class="fa fa-exchange"></i> Switch To Moderator </a> + <div class="dropdown-divider"></div> {% endif %} + <a class="dropdown-item" href="{{ URL_ROOT }}/exam/reset/changepassword/"><i class="fa fa-key"></i> Change Password</a> + <div class="dropdown-divider"></div> + <a id="user_logout" class="dropdown-item" href="{{URL_ROOT}}/exam/logout/"><i class="fa fa-sign-out"></i> Logout</a> + </div> </li> </ul> diff --git a/yaksh/templates/yaksh/course_modules.html b/yaksh/templates/yaksh/course_modules.html index e839e8b..9d936d6 100644 --- a/yaksh/templates/yaksh/course_modules.html +++ b/yaksh/templates/yaksh/course_modules.html @@ -49,7 +49,7 @@ </center> <div class="row justify-content-md-center "> -{% if learning_modules %} +{% if modules %} <div class="col-md-10 yakshwell"> <strong>Overall Course Progress</strong> @@ -68,7 +68,7 @@ </div> </div> - {% for module in learning_modules %} + {% for module, percent in modules %} <div class="yakshwell"> <div class="row yakshlabel align-items-center"> <div class="col-md-4"> @@ -176,6 +176,19 @@ ------ {% endif %} </td> + <td> + <div class="progress"> + {% if percent <= 50 %} + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width:{{percent}}%"> + {% elif percent <= 75 %} + <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width:{{percent}}%"> + {% else %} + <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width:{{percent}}%"> + {% endif %} + <b style="color: black;">{{percent}}% Completed</b> + </div> + </div> + </td> </tr> {% endfor %} </table> diff --git a/yaksh/templates/yaksh/quizzes_user.html b/yaksh/templates/yaksh/quizzes_user.html index 95fa08a..548eef4 100644 --- a/yaksh/templates/yaksh/quizzes_user.html +++ b/yaksh/templates/yaksh/quizzes_user.html @@ -100,7 +100,7 @@ <span class="col-sm-auto"> {% if user in course.requests.all %} <span class="badge badge-warning">Request Pending </span> {% elif user in course.rejected.all %}<span class="badge badge-danger">Request Rejected</span> - {% elif user in course.students.all %}<a class="btn btn-success" href="{{URL_ROOT}}/exam/course_modules/{{course.id}}" >START</a> + {% elif user in course.students.all %}<a class="btn btn-success" href="{{URL_ROOT}}/exam/course_modules/{{course.id}}" >START</a> {% else %} {% if course.active %} {% if course.is_active_enrollment %} |