X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FUser%2FPrefs.html;h=a108bea64d32942d9cca043084019429908a034f;hb=01721976fa3324f41a3093cda68bc38a7eec5ff5;hp=c7e0720e17116960dd77c0ecb0298939c77238e3;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500;p=freeside.git diff --git a/rt/share/html/User/Prefs.html b/rt/share/html/User/Prefs.html index c7e0720e1..a108bea64 100755 --- a/rt/share/html/User/Prefs.html +++ b/rt/share/html/User/Prefs.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -80,6 +80,7 @@ <&|/l&>Timezone: <& /Elements/SelectTimezone, Name => 'Timezone', Default => $UserObj->Timezone &> +<& /Elements/EditCustomFields, Object => $UserObj, Grouping => 'Identity', InTable => 1 &> <&| /Widgets/TitleBox, title => loc('Phone numbers'), id => "user-prefs-phone" &> @@ -100,8 +101,17 @@ <&|/l&>Pager: +<& /Elements/EditCustomFields, Object => $UserObj, Grouping => 'Phones', InTable => 1 &> + +%if ($UserObj->Privileged) { +<&| /Widgets/TitleBox, title => loc('Signature'), id => "user-prefs-signature" &> + + +% } + % $m->callback( %ARGS, UserObj => $UserObj, CallbackName => 'FormLeftColumn' ); @@ -111,6 +121,9 @@ User => $UserObj, Name => [qw(CurrentPass Pass1 Pass2)], &> + +<& /Elements/EditCustomFields, Object => $UserObj, Grouping => 'Access control' &> + <&| /Widgets/TitleBox, title => loc('Location'), id => "user-prefs-location" &> @@ -143,51 +156,47 @@ <&|/l&>Country: +<& /Elements/EditCustomFields, Object => $UserObj, Grouping => 'Location', InTable => 1 &> -<&| /Widgets/TitleBox, title => loc('Custom Fields') &> - -% my $CustomFields = $UserObj->CustomFields; -% while ( my $CF = $CustomFields->Next ) { - - - -% } -
<% loc( $CF->Name ) %>:<& /Elements/EditCustomField, - %ARGS, Object => $UserObj, CustomField => $CF -&>
- -% $m->callback( %ARGS, UserObj => $UserObj, CallbackName => 'FormRightColumn' ); - - +<& /Elements/EditCustomFieldCustomGroupings, Object => $UserObj &> - -%if ($UserObj->Privileged) { -
-<&| /Widgets/TitleBox, title => loc('Signature') &> - - -% } - - + +<& /Elements/Submit, Label => loc('Save Preferences') &> + <&| /Widgets/TitleBox, title => loc('Secret authentication token'), id => "user-prefs-feeds" &> -

<&|/l&>All iCal feeds embed a secret token which authorizes you. If the URL one of your iCal feeds got exposed to the outside world, you can get a new secret, breaking all existing iCal feeds below.

+<&|/l&>All iCal feeds embed a secret token which authorizes you. If the URL for one of your iCal feeds was exposed to the outside world, you can get a new secret, breaking all existing iCal feeds, below. -<& /Elements/Submit, Label => loc('Reset secret authentication token'), Name => "ResetAuthToken" &> + +<& /Elements/Submit, + Label => loc('Reset secret authentication token'), + Name => "ResetAuthToken", + id => "ResetAuthTokenContainer" &> + - + +% $m->callback( %ARGS, UserObj => $UserObj, CallbackName => 'FormRightColumn' ); + + % $m->callback( %ARGS, UserObj => $UserObj, CallbackName => 'FormEnd' ); -<& /Elements/Submit, Label => loc('Save Preferences') &> @@ -238,11 +247,6 @@ else { push @results, ProcessObjectCustomFieldUpdates( ARGSRef => \%ARGS, Object => $UserObj ); - if ( $Lang ) { - $session{'CurrentUser'}->LanguageHandle($Lang); - $session{'CurrentUser'} = $session{'CurrentUser'}; # force writeback - } - # Deal with special fields: Privileged, Enabled, and Password if ( $SetPrivileged and $Privileged != $UserObj->Privileged ) { my ($code, $msg) = $UserObj->SetPrivileged( $Privileged ); @@ -260,6 +264,11 @@ else { } } + +MaybeRedirectForResults( + Actions => \@results, +); +