X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FAdmin%2FCustomFields%2FGroupRights.html;fp=rt%2Fshare%2Fhtml%2FAdmin%2FCustomFields%2FGroupRights.html;h=31c09afc007a5bdd3c960dddaba8e2efec00ef04;hb=43a06151e47d2c59b833cbd8c26d97865ee850b6;hp=2c516d0b2b28b043f4bd11e9fdd3efcba524a1d5;hpb=6587f6ba7d047ddc1686c080090afe7d53365bd4;p=freeside.git diff --git a/rt/share/html/Admin/CustomFields/GroupRights.html b/rt/share/html/Admin/CustomFields/GroupRights.html index 2c516d0b2..31c09afc0 100644 --- a/rt/share/html/Admin/CustomFields/GroupRights.html +++ b/rt/share/html/Admin/CustomFields/GroupRights.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -46,54 +46,16 @@ %# %# END BPS TAGGED BLOCK }}} <& /Admin/Elements/Header, Title => $title &> -<& /Admin/Elements/CustomFieldTabs, - id => $id, - current_tab => "Admin/CustomFields/GroupRights.html?id=".$id, - Title => $title -&> +<& /Elements/Tabs &> <& /Elements/ListActions, actions => \@results &> -
+ - - -

<&|/l&>System groups

- -% my $Groups = RT::Groups->new($session{'CurrentUser'}); -% $Groups->LimitToSystemInternalGroups(); -% while (my $Group = $Groups->Next()) { - - - - -% } -
- <% loc($Group->Type) %> - - <& /Admin/Elements/SelectRights, PrincipalId => $Group->PrincipalId, - Object => $CustomFieldObj &> -
-

<&|/l&>User defined groups

- -% $Groups = RT::Groups->new($session{'CurrentUser'}); -% $Groups->LimitToUserDefinedGroups(); -% while (my $Group = $Groups->Next()) { - - - - -% } -
- <% $Group->Name %> - - <& /Admin/Elements/SelectRights, PrincipalId => $Group->PrincipalId, - Object => $CustomFieldObj &> -
- - <& /Elements/Submit, Caption => loc("Be sure to save your changes"), Reset => 1 &> - + + <& /Admin/Elements/EditRights, Context => $CustomFieldObj, Principals => \@principals &> + <& /Elements/Submit, Label => loc('Save Changes') &>
- + <%INIT> if (!defined $id) { @@ -103,10 +65,12 @@ if (!defined $id) { my $CustomFieldObj = RT::CustomField->new($session{'CurrentUser'}); $CustomFieldObj->Load($id) || $m->comp("/Elements/Error", Why => loc("Couldn't load CustomField [_1]",$id)); -my @results = ProcessACLChanges( \%ARGS ); +my @results = ProcessACLs( \%ARGS ); my $title = loc('Modify group rights for custom field [_1]', $CustomFieldObj->Name); - + +# Principal collections +my @principals = GetPrincipalsMap($CustomFieldObj, qw(System Groups)); <%ARGS>