[Rt-commit] rt branch, admin_ui, updated. ae0114e11517f104e43e8a63410594e092cb66f6
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Tue Dec 8 01:37:45 EST 2009
The branch, admin_ui has been updated
via ae0114e11517f104e43e8a63410594e092cb66f6 (commit)
from 530f10c9e7d618c281ddb040ae787157394d5e92 (commit)
Summary of changes:
lib/RT/View/Admin/CustomFields.pm | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit ae0114e11517f104e43e8a63410594e092cb66f6
Author: sunnavy <sunnavy at bestpractical.com>
Date: Tue Dec 8 14:37:37 2009 +0800
tweak /admin/custom_fields view: more columns and inline edit
diff --git a/lib/RT/View/Admin/CustomFields.pm b/lib/RT/View/Admin/CustomFields.pm
index 5e5d825..1f41549 100644
--- a/lib/RT/View/Admin/CustomFields.pm
+++ b/lib/RT/View/Admin/CustomFields.pm
@@ -54,8 +54,26 @@ use base 'RT::View::CRUD';
use constant page_title => 'Custom Field Management';
use constant object_type => 'CustomField';
-use constant display_columns => qw(name type);
+use constant display_columns =>
+ qw(id name description type lookup_type max_values pattern
+ sort_order repeated disabled );
+private template view_item_controls => sub {
+
+ my $self = shift;
+ my $record = shift;
+
+ if ( $record->current_user_can('update') ) {
+ hyperlink(
+ label => _("Edit"),
+ class => "editlink",
+ onclick => {
+ popout => $self->fragment_for('update'),
+ args => { id => $record->id },
+ },
+ );
+ }
+};
1;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list