-
% for user in all_users:
<%
is_instructor = user in instructors
is_staff = user in staff
role_id = 'admin' if is_instructor else ('staff' if is_staff else 'user')
role_desc = _("Admin") if is_instructor else (_("Staff") if is_staff else _("User"))
%>
-
${_("Current Role:")}
${role_desc}
% if request.user.id == user.id:
${_("You!")}
% endif
% if allow_actions:
-
% if is_instructor:
% if len(instructors) > 1:
- ${_("Remove Admin Access")} % else:
- ${_("Promote another member to Admin to remove your admin rights")} % endif % elif is_staff:
- ${_("Add Admin Access")} ${_("Remove Staff Access")} % else:
- ${_("Add Staff Access")} % endif
- ${_("Delete the user, {username}").format(username=user.username)}
% endfor
${_('Add More Users to This Library')}
${_('Grant other members of your course team access to this library. New library users must have an active {studio_name} account.').format(studio_name=settings.STUDIO_SHORT_NAME)}