[Rt-commit] rt branch, admin_ui, updated. 9837ef37699c0d84a8497192bc1fa7cb3bbcc943
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Wed Jan 6 23:29:36 EST 2010
The branch, admin_ui has been updated
via 9837ef37699c0d84a8497192bc1fa7cb3bbcc943 (commit)
from 3b88528deb855605b169fab77ec3ebee114880ab (commit)
Summary of changes:
lib/RT/View/CRUD.pm | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 9837ef37699c0d84a8497192bc1fa7cb3bbcc943
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Jan 7 12:29:17 2010 +0800
use edit_columns as Jifty does
diff --git a/lib/RT/View/CRUD.pm b/lib/RT/View/CRUD.pm
index 00ac05a..1074718 100644
--- a/lib/RT/View/CRUD.pm
+++ b/lib/RT/View/CRUD.pm
@@ -237,7 +237,16 @@ content {
my $moniker = 'update_' . lc $self->object_type;
my $action = $object->as_update_action( moniker => $moniker, );
with( name => $moniker ), form {
- render_action($action);
+ for my $field ( $self->edit_columns($action) ) {
+ div {
+ { class is 'update-argument-' . $field };
+ $self->render_field(
+ mode => 'edit',
+ action => $action,
+ field => $field,
+ );
+ }
+ }
form_submit( label => _('Save') );
};
};
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list