[Rt-commit] rt branch, admin_ui, updated. a5c2b9ce0501c64a6af18bdcd57dfbe0c4ae1a7e

sunnavy at bestpractical.com sunnavy at bestpractical.com
Fri Jan 22 07:13:42 EST 2010


The branch, admin_ui has been updated
       via  a5c2b9ce0501c64a6af18bdcd57dfbe0c4ae1a7e (commit)
      from  a8db3182e502797c730abb33cf04c527991889e2 (commit)

Summary of changes:
 lib/RT/Action/ConfigMyRT.pm                 |    8 ++++----
 lib/RT/Action/EditUserPrefsMe.pm            |    9 +++++----
 lib/RT/Action/EditUserPrefsSearchOptions.pm |    5 +++--
 lib/RT/View/Admin/Users.pm                  |    8 +++++++-
 lib/RT/View/Prefs.pm                        |    8 +++++++-
 5 files changed, 26 insertions(+), 12 deletions(-)

- Log -----------------------------------------------------------------
commit a5c2b9ce0501c64a6af18bdcd57dfbe0c4ae1a7e
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Jan 22 20:13:21 2010 +0800

    tiny page tweak

diff --git a/lib/RT/Action/ConfigMyRT.pm b/lib/RT/Action/ConfigMyRT.pm
index 27f27ba..00151f3 100644
--- a/lib/RT/Action/ConfigMyRT.pm
+++ b/lib/RT/Action/ConfigMyRT.pm
@@ -25,9 +25,9 @@ sub arguments {
 
     if ( ref $self->record ne 'RT::System' ) {
         $args->{'reset'} = {
-            render_as     => 'InlineButton',
-            default_value => 1,
-            label => _('Reset'),
+            render_as     => 'Button',
+            default_value => ('Reset'),
+            label => '',
         };
 
         $args->{'summary_rows'} = {
@@ -35,7 +35,7 @@ sub arguments {
                 $self->record->preferences( 'SummaryRows',
                     RT->config->get('default_summary_rows') );
             },
-            label => _('Rows per box'),
+            label => 'Rows per box',
         };
 
     }
diff --git a/lib/RT/Action/EditUserPrefsMe.pm b/lib/RT/Action/EditUserPrefsMe.pm
index 7c9bcf5..93f5dfe 100644
--- a/lib/RT/Action/EditUserPrefsMe.pm
+++ b/lib/RT/Action/EditUserPrefsMe.pm
@@ -7,11 +7,12 @@ use Scalar::Defer qw/defer/;
 
 use Jifty::Param::Schema;
 use Jifty::Action schema {
-    param 'reset_auth_token' => render as 'InlineButton',
-      label              is _('reset auth token'),
-      hints              is _(
+    param 'reset_auth_token' => render as 'Button',
+      default            is 'reset auth token',
+      label              is '',
+      hints              is 
 '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.'
-      );
+      ;
     param 'id' => render as 'hidden',
           default is defer { __PACKAGE__->user->id };
 };
diff --git a/lib/RT/Action/EditUserPrefsSearchOptions.pm b/lib/RT/Action/EditUserPrefsSearchOptions.pm
index dde12a4..9350671 100644
--- a/lib/RT/Action/EditUserPrefsSearchOptions.pm
+++ b/lib/RT/Action/EditUserPrefsSearchOptions.pm
@@ -41,8 +41,9 @@ sub arguments {
         render_as => 'hidden',
     };
     $args->{'save'} = {
-        label => _('Save'),
-        render_as => 'InlineButton',
+        label => '',
+        default_value => 'Save',
+        render_as => 'Button',
     };
     $args->{'name'} = {
         render_as     => 'hidden',
diff --git a/lib/RT/View/Admin/Users.pm b/lib/RT/View/Admin/Users.pm
index 387fa84..e681f44 100644
--- a/lib/RT/View/Admin/Users.pm
+++ b/lib/RT/View/Admin/Users.pm
@@ -199,7 +199,13 @@ template 'my_rt' => page { title => _('MyRT for User') } content {
     $action->record( $user );
 
     with( name => $moniker ), form {
-        render_action($action);
+        for my $field ( $action->argument_names ) {
+            next if $field eq 'reset';
+            outs_raw( $action->form_field($field) );
+        }
+        div { class is 'submit_button';
+            outs_raw( $action->form_field("reset") );
+        };
         form_submit( label => _('Save') );
     };
 
diff --git a/lib/RT/View/Prefs.pm b/lib/RT/View/Prefs.pm
index 2cb8e38..0d326d3 100644
--- a/lib/RT/View/Prefs.pm
+++ b/lib/RT/View/Prefs.pm
@@ -135,7 +135,13 @@ template 'my_rt' => page { title => _('Customize my RT') } content {
     $action->record( Jifty->web->current_user->user_object );
 
     with( name => $moniker ), form {
-        render_action($action);
+        for my $field ( $action->argument_names ) {
+            next if $field eq 'reset';
+            outs_raw( $action->form_field($field) );
+        }
+        div { class is 'submit_button';
+            outs_raw( $action->form_field("reset") );
+        };
         form_submit( label => _('Save') );
     };
 

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


More information about the Rt-commit mailing list