diff options
author | King | 2018-07-13 01:44:00 -0700 |
---|---|---|
committer | GitHub | 2018-07-13 01:44:00 -0700 |
commit | f0f4a882a796319f766ff67cd3f8133a04054dfd (patch) | |
tree | a5c8a3ab617107743864f9faacad341d0e74da00 /yaksh/templates | |
parent | 661c9d82bb680e745cc6b498131a0793b954c436 (diff) | |
parent | 0af47ee9292132ab472e3e0bbae617d77437ff72 (diff) | |
download | online_test-f0f4a882a796319f766ff67cd3f8133a04054dfd.tar.gz online_test-f0f4a882a796319f766ff67cd3f8133a04054dfd.tar.bz2 online_test-f0f4a882a796319f766ff67cd3f8133a04054dfd.zip |
Merge pull request #480 from ankitjavalkar/toggle-mod
[Role based implementation] Allow moderator to switch between student and moderator roles
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/yaksh/moderator_dashboard.html | 5 | ||||
-rw-r--r-- | yaksh/templates/yaksh/quizzes_user.html | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/yaksh/templates/yaksh/moderator_dashboard.html b/yaksh/templates/yaksh/moderator_dashboard.html index 17a4924..c848074 100644 --- a/yaksh/templates/yaksh/moderator_dashboard.html +++ b/yaksh/templates/yaksh/moderator_dashboard.html @@ -8,7 +8,10 @@ {% block content %} -<center><h4>List of quizzes! Click on the given links to have a look at answer papers for a quiz.</h4></center> +<center><h4 class="pull-left">List of quizzes! Click on the given links to have a look at answer papers for a quiz.</h4></center> +<a href="{{URL_ROOT}}/exam/toggle_moderator/" class="btn btn-primary pull-right"> + Switch To Student +</a> <table class="table table-bordered"> <th>Courses</th> <th>Quizzes</th> diff --git a/yaksh/templates/yaksh/quizzes_user.html b/yaksh/templates/yaksh/quizzes_user.html index 78cdc48..68044da 100644 --- a/yaksh/templates/yaksh/quizzes_user.html +++ b/yaksh/templates/yaksh/quizzes_user.html @@ -7,6 +7,13 @@ <center>{{ msg }}</center> </div> {% endif %} + {% if user.profile.is_moderator %} + <div class="row"> + <a href="{{URL_ROOT}}/exam/toggle_moderator/" class="btn btn-primary pull-right" style="margin-top: 20px; margin-bottom: 20px;"> + Switch To Moderator + </a> + </div> + {% endif %} {% if 'Enrolled Courses' not in title%} <div class="row well"> <form action="{{ URL_ROOT }}/exam/quizzes/" method="post" id="custom-search-form" class="form-search form-horizontal"> |