From 26ca38c6243eaa1d94bca68481eb60b2276ab7b2 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Wed, 16 May 2018 17:53:55 +0530 Subject: Allow moderator to switch between student and moderator roles --- yaksh/templates/yaksh/view_profile.html | 1 + 1 file changed, 1 insertion(+) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/view_profile.html b/yaksh/templates/yaksh/view_profile.html index ce95226..1b75e6e 100644 --- a/yaksh/templates/yaksh/view_profile.html +++ b/yaksh/templates/yaksh/view_profile.html @@ -37,4 +37,5 @@ Edit Profile + Toggle Moderator Role {% endblock %} -- cgit From 69a07a92309105b289f4d08957729bda68727bf2 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Thu, 5 Jul 2018 17:46:00 +0530 Subject: - Add buttons to Moderator and Student templates - Modify _add_to_moderator function to _toggle_moderator_function in order to allow addition and removal of moderator group link --- yaksh/templates/yaksh/moderator_dashboard.html | 5 ++++- yaksh/templates/yaksh/quizzes_user.html | 7 +++++++ yaksh/templates/yaksh/view_profile.html | 1 - 3 files changed, 11 insertions(+), 2 deletions(-) (limited to 'yaksh/templates') 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 %} -

List of quizzes! Click on the given links to have a look at answer papers for a quiz.

+

List of quizzes! Click on the given links to have a look at answer papers for a quiz.

+ + Switch To Student + 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 @@
{{ msg }}
{% endif %} + {% if user.profile.is_moderator %} +
+ + Switch To Moderator + +
+ {% endif %} {% if 'Enrolled Courses' not in title%}
diff --git a/yaksh/templates/yaksh/view_profile.html b/yaksh/templates/yaksh/view_profile.html index 1b75e6e..ce95226 100644 --- a/yaksh/templates/yaksh/view_profile.html +++ b/yaksh/templates/yaksh/view_profile.html @@ -37,5 +37,4 @@
Courses Quizzes
Edit Profile - Toggle Moderator Role {% endblock %} -- cgit