diff --git a/src/root/user.tt b/src/root/user.tt index 3535bf26..76f85850 100644 --- a/src/root/user.tt +++ b/src/root/user.tt @@ -2,17 +2,23 @@ [% PROCESS common.tt %] [% BLOCK roleoption %] - -[% END %] + [% IF !mutable %] + disabled="disabled" + [% END %] + [% HTML.attributes(id => "role-${role}", value => role) %] /> +
+ [% END %]
@@ -70,16 +76,22 @@ [% IF !create || c.check_user_roles('admin') %] -
- -
- + [% mutable = c.check_user_roles('admin') %] +
+
User Roles
+
+ [% IF mutable %] +
Take care, you're allowed to change [% HTML.escape(user.fullname || user.emailaddress || "this user") %]'s roles.
+ [% ELSE %] +
[% HTML.escape(user.fullname || user.emailaddress || "this user") %]'s roles.
+ [% END %] +

+ [% INCLUDE roleoption mutable=mutable role="admin" %] + [% INCLUDE roleoption mutable=mutable role="create-projects" %] + [% INCLUDE roleoption mutable=mutable role="restart-jobs" %] + [% INCLUDE roleoption mutable=mutable role="bump-to-front" %] + [% INCLUDE roleoption mutable=mutable role="cancel-build" %] +

[% END %] @@ -115,7 +127,6 @@ Delete this user [% END %] -