[Rt-commit] rt branch, admin_ui, updated. e360f369e375b7734f010244868929bd93ea6409
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Jan 21 02:09:30 EST 2010
The branch, admin_ui has been updated
via e360f369e375b7734f010244868929bd93ea6409 (commit)
from 4160d9b43f6502de37cfd4785c96d7645192674d (commit)
Summary of changes:
lib/RT/View/Prefs.pm | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit e360f369e375b7734f010244868929bd93ea6409
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Jan 21 15:09:22 2010 +0800
/prefs/me view
diff --git a/lib/RT/View/Prefs.pm b/lib/RT/View/Prefs.pm
index e86cf03..8caa664 100644
--- a/lib/RT/View/Prefs.pm
+++ b/lib/RT/View/Prefs.pm
@@ -161,5 +161,26 @@ template 'quick_search' => page { title => _('Customize Quick Search') } content
};
};
+template 'me' => page { title => _('Customize Myself') } content {
+ my $self = shift;
+ my $moniker = 'prefs_edit_me';
+ my $action = new_action(
+ class => 'EditUserPrefsMe',
+ moniker => $moniker,
+ );
+ $action->record( Jifty->web->current_user->user_object );
+ my @sections = RT::Action::EditUserPrefsMe->sections;
+
+ with( name => $moniker ), form {
+ for my $section ( @sections ) {
+ h2 { _($section->{title}) };
+ for my $field ( @{ $section->{fields} } ) {
+ outs_raw( $action->form_field($field) );
+ }
+ }
+ form_submit( label => _('Save') );
+ };
+};
+
1;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list