X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FUser%2FPrefs.html;h=d491145e03bdefb80e502d829f4efd9823f10ad2;hp=c7e0720e17116960dd77c0ecb0298939c77238e3;hb=919e930aa9279b3c5cd12b593889cd6de79d67bf;hpb=f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7 diff --git a/rt/share/html/User/Prefs.html b/rt/share/html/User/Prefs.html index c7e0720e1..d491145e0 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-2015 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -102,6 +102,14 @@ + +%if ($UserObj->Privileged) { +<&| /Widgets/TitleBox, title => loc('Signature') &> + + +% } + % $m->callback( %ARGS, UserObj => $UserObj, CallbackName => 'FormLeftColumn' ); @@ -159,35 +167,37 @@ -% $m->callback( %ARGS, UserObj => $UserObj, CallbackName => 'FormRightColumn' ); - - - - - -%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 one of your iCal feeds got 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 +248,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 +265,11 @@ else { } } + +MaybeRedirectForResults( + Actions => \@results, +); +