[Rt-commit] rt branch, 3.999-trunk, updated. 0c6e330eb09cfc16a10ce6f65235496c53fe8052

? sunnavy sunnavy at bestpractical.com
Mon Apr 12 04:47:59 EDT 2010


The branch, 3.999-trunk has been updated
       via  0c6e330eb09cfc16a10ce6f65235496c53fe8052 (commit)
      from  a3e98d8a1837a2df1b29e63fa6aed35487e57efd (commit)

Summary of changes:
 lib/RT/View/SetupWizard.pm |   22 ++++++++++++++++++----
 1 files changed, 18 insertions(+), 4 deletions(-)

- Log -----------------------------------------------------------------
commit 0c6e330eb09cfc16a10ce6f65235496c53fe8052
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Mon Apr 12 16:47:34 2010 +0800

    update setupwizard

diff --git a/lib/RT/View/SetupWizard.pm b/lib/RT/View/SetupWizard.pm
index f07d3ac..38909f9 100644
--- a/lib/RT/View/SetupWizard.pm
+++ b/lib/RT/View/SetupWizard.pm
@@ -52,15 +52,29 @@ package RT::View::SetupWizard;
 use Jifty::View::Declare -base;
 
 template 'basics' => sub {
-    p { _("You may change basic information about your RT install.") };
-
     p { _("It is very important that you change the password to RT's root user. Leaving it as the default of 'password' is a serious security risk.") };
 
     my $user = RT::Model::User->new;
     $user->load_by_cols(name => 'root');
 
-    my $action = $user->as_update_action;
-    render_action($action, ['password']);
+    my $password = $user->as_update_action;
+    outs_raw( $password->form_field('password') );
+
+    p { _("You may change basic information about your RT install.") };
+
+    my $config = new_action( class => 'RT::Action::ConfigSystem' );
+    my $meta = $config->meta;
+    for my $field (
+        qw/rtname time_zone comment_address correspond_address sendmail_path
+        owner_email/
+      )
+    {
+        div {
+            attr { class => 'hints' };
+            outs_raw( $meta->{$field} && $meta->{$field}{doc} );
+        };
+        outs_raw( $config->form_field($field) );
+    }
 };
 
 1;

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


More information about the Rt-commit mailing list