diff options
Diffstat (limited to 'rt/share/html/User/Prefs.html')
-rwxr-xr-x | rt/share/html/User/Prefs.html | 59 |
1 files changed, 34 insertions, 25 deletions
diff --git a/rt/share/html/User/Prefs.html b/rt/share/html/User/Prefs.html index c7e0720e1..178093a43 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-2013 Best Practical Solutions, LLC %# <sales@bestpractical.com> %# %# (Except where explicitly superseded by other copyright notices) @@ -102,6 +102,14 @@ </tr> </table> </&> + +%if ($UserObj->Privileged) { +<&| /Widgets/TitleBox, title => loc('Signature') &> +<textarea cols="80" rows="5" name="Signature" class="signature" wrap="hard"> +<%$UserObj->Signature || ''%></textarea> +</&> +% } + % $m->callback( %ARGS, UserObj => $UserObj, CallbackName => 'FormLeftColumn' ); </td> <td valign="top" class="boxcontainer"> @@ -159,29 +167,30 @@ </table> </&> -% $m->callback( %ARGS, UserObj => $UserObj, CallbackName => 'FormRightColumn' ); -</td> -</tr> - - -<tr><td colspan="2" valign="top" class="boxcontainer"> -%if ($UserObj->Privileged) { -<br /> -<&| /Widgets/TitleBox, title => loc('Signature') &> -<textarea cols="80" rows="5" name="Signature" class="signature" wrap="hard"> -<%$UserObj->Signature || ''%></textarea> -</&> -% } -</td></tr> - -<tr><td colspan="2" valign="top" class="boxcontainer"> <&| /Widgets/TitleBox, title => loc('Secret authentication token'), id => "user-prefs-feeds" &> -<p><&|/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, <b>breaking all existing iCal feeds</b> below.</&></p> +<&|/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, <b>breaking all existing iCal feeds</b> below.</&> -<& /Elements/Submit, Label => loc('Reset secret authentication token'), Name => "ResetAuthToken" &> +<a href="#" id="ResetAuthTokenPrompt" style="display: none"> + <&|/l&>I want to reset my secret token.</&> +</a> +<& /Elements/Submit, + Label => loc('Reset secret authentication token'), + Name => "ResetAuthToken", + id => "ResetAuthTokenContainer" &> +<script> + jQuery("#ResetAuthTokenContainer").hide(); + jQuery("#ResetAuthTokenPrompt").show().click(function(ev){ + jQuery(this).slideUp(); + jQuery("#ResetAuthTokenContainer").slideDown(); + ev.preventDefault(); + }); +</script> </&> -</td></tr> + +% $m->callback( %ARGS, UserObj => $UserObj, CallbackName => 'FormRightColumn' ); +</td> +</tr> </table> @@ -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, +); + </%INIT> |