From 9c68254528b6f2c7d8c1921b452fa56064783782 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 2 Mar 2008 04:06:06 +0000 Subject: import rt 3.4.6 --- rt/html/Admin/Users/Modify.html | 302 +++++++++++++++++++--------------------- 1 file changed, 146 insertions(+), 156 deletions(-) (limited to 'rt/html/Admin/Users/Modify.html') diff --git a/rt/html/Admin/Users/Modify.html b/rt/html/Admin/Users/Modify.html index 9198cbe78..8a24f9c4a 100644 --- a/rt/html/Admin/Users/Modify.html +++ b/rt/html/Admin/Users/Modify.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -54,189 +52,188 @@ <& /Elements/ListActions, actions => \@results &> -
+ %if ($Create) { - + % } else { - + % } - - +
+ - +<& /Elements/TitleBoxEnd &> + - + - -
-<&| /Widgets/TitleBox, title => loc('Identity') &> + +<& /Elements/TitleBoxStart, title => loc('Identity') &> - - +
+ + - + - + - + - + - + - + -
<&|/l&>Username: - - <&|/l&>(required) -
+ + <&|/l&>(required) +
<&|/l&>Email: - - -
+ + +
<&|/l&>Real Name: - - -
+ + +
<&|/l&>Nickname: - - -
+ + +
<&|/l&>Unix login: - - -
+ + +
<&|/l&>Language: - + <& /Elements/SelectLang, Name => 'Lang', Default => $UserObj->Lang &> -
+
<&|/l&>Extra info: - - -
- -
-<&| /Widgets/TitleBox, title => loc('Access control') &> - - /> -<&|/l&>Let this user access RT
- - - - /> <&|/l&>Let this user be granted rights
+
+ +
+<& /Elements/TitleBoxEnd &> +
+<& /Elements/TitleBoxStart, title => loc('Access control') &> + +> +<&|/l&>Let this user access RT
+ + + +> <&|/l&>Let this user be granted rights
% unless ($RT::WebExternalAuth and !$RT::WebFallbackToInternalAuth) { - - - + + +
+ + + - - - + + + - - -
<&|/l&>New Password: - - -
+ + +
<&|/l&>Retype Password: - - -
+
+ +
% } - -
-<&| /Widgets/TitleBox, title => loc('Location') &> - - - + +
+ +<& /Elements/TitleBoxStart, title => loc('Location') &> + + - + - + - + - + - + - + -
<&|/l&>Organization: - - -
+ + +
<&|/l&>Address1: - - -
+ + +
<&|/l&>Address2: - - -
+ + +
<&|/l&>City: - - + + -
+
<&|/l&>State: - - + + -
+
<&|/l&>Zip: - - -
+ + +
<&|/l&>Country: - - -
- -
-<&| /Widgets/TitleBox, title => loc('Phone numbers') &> - - +
+ + +
+<& /Elements/TitleBoxEnd &> +
+<& /Elements/TitleBoxStart, title => loc('Phone numbers') &> + + - + - + - + -
<&|/l&>Residence: - -
-
+ +
+
<&|/l&>Work: - -
-
+ +
+
<&|/l&>Mobile: - -
-
+ +
+
<&|/l&>Pager: - -
-
- -
-<&| /Widgets/TitleBox, title => loc('Custom Fields') &> - + + + + +
+
+<& /Elements/TitleBoxEnd &> +
+
+<& /Elements/TitleBoxStart, title => loc('Custom Fields') &> + % my $CFs = $UserObj->CustomFields; % while (my $CF = $CFs->Next) { - + % } - - -
+
<% $CF->Name %>: - -% if ($UserObj->id) { + <& /Elements/EditCustomField, %ARGS, Object => $UserObj, CustomField => $CF &> -% } else { -<& /Elements/EditCustomField, %ARGS, NamePrefix => 'Object-RT::User-new-CustomField-', CustomField => $CF &> -% } -
- -
-<&| /Widgets/TitleBox, title => loc('Comments about this user') &> - - +
+<& /Elements/TitleBoxEnd &> +
+<& /Elements/TitleBoxStart, title => loc('Comments about this user') &> + +<& /Elements/TitleBoxEnd &> %if ($UserObj->Privileged) { -
-<&| /Widgets/TitleBox, title => loc('Signature') &> - - +
+<& /Elements/TitleBoxStart, title => loc('Signature') &> + +<& /Elements/TitleBoxEnd &> % } -
+ + + <& /Elements/Submit, Label => loc('Save Changes') &>
@@ -292,19 +289,12 @@ else { if ($val) { push @results, $msg; - foreach my $key ( keys %ARGS) { - # Convert custom fields on the "new" object to custom fields on the one we've just created - if ($key =~ /^Object-RT::User-new-CustomField-(.*)$/) { - $ARGS{'Object-RT::User-'.$val.'-CustomField-'.$1} = delete $ARGS{$key}; - } - } - push @results, ProcessObjectCustomFieldUpdates( ARGSRef => \%ARGS, Object => $UserObj ); } else { push @results, loc('User could not be created: [_1]', $msg); } } else { - $UserObj->Load($id) || $UserObj->Load($Name) || Abort("Couldn't load user '$Name'"); - $val = $UserObj->Id(); + $UserObj->Load($id) || $UserObj->Load($Name) || Abort("Couldn't load user '$Name'"); + $val = $UserObj->Id(); } if ($val) { -- cgit v1.2.1