[Rt-commit] rt branch, admin_ui, updated. 15d059a9105cc94625eff3861c017008b1d307b4

sunnavy at bestpractical.com sunnavy at bestpractical.com
Wed Jan 20 06:07:41 EST 2010


The branch, admin_ui has been updated
       via  15d059a9105cc94625eff3861c017008b1d307b4 (commit)
      from  8d90e118bbebd4902e9924429589e8f8b72ea259 (commit)

Summary of changes:
 lib/RT/View/Prefs.pm |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 15d059a9105cc94625eff3861c017008b1d307b4
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Jan 20 19:07:28 2010 +0800

    /prefs/other view

diff --git a/lib/RT/View/Prefs.pm b/lib/RT/View/Prefs.pm
index 3ae5cf5..45c7622 100644
--- a/lib/RT/View/Prefs.pm
+++ b/lib/RT/View/Prefs.pm
@@ -107,5 +107,28 @@ template 'index.html' => page { title => _('RT Preferences') } content {
     };
 }
 
+template 'other' => page { title => _('Customize Others') } content {
+    my $self        = shift;
+
+    my $moniker = 'prefs_edit_other';
+
+    my $action = new_action(
+        class   => 'EditUserPrefsOther',
+        moniker => $moniker,
+    );
+
+    my %fields      = RT::Action::EditUserPrefsOther->fields;
+
+    with( name => $moniker ), form {
+        for my $section ( keys %fields ) {
+            h2 { _($section) };
+            for my $field ( @{ $fields{$section} } ) {
+                outs_raw( $action->form_field($field) );
+            }
+        }
+        form_submit( label => _('Save') );
+    };
+}
+
 1;
 

-----------------------------------------------------------------------


More information about the Rt-commit mailing list