[Rt-commit] rt branch, admin_ui, updated. 5279e54999364ee75ef0676ef104d5fa57215535
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Dec 24 03:44:36 EST 2009
The branch, admin_ui has been updated
via 5279e54999364ee75ef0676ef104d5fa57215535 (commit)
from 6b497e393c02b0d91fc11a463e0acf6af5c24162 (commit)
Summary of changes:
lib/RT/View/Admin/CustomFields.pm | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 5279e54999364ee75ef0676ef104d5fa57215535
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Dec 24 16:44:27 2009 +0800
/admin/custom_fields/objects view
diff --git a/lib/RT/View/Admin/CustomFields.pm b/lib/RT/View/Admin/CustomFields.pm
index de01ddb..ccf49e1 100644
--- a/lib/RT/View/Admin/CustomFields.pm
+++ b/lib/RT/View/Admin/CustomFields.pm
@@ -75,6 +75,31 @@ private template view_item_controls => sub {
}
};
+template 'objects' => page { title => _('Applied Objects for Custom Field') }
+content {
+ my $self = shift;
+ my $cf = RT::Model::CustomField->new;
+ $cf->load( get('id') );
+ my $moniker = 'select_object_custom_fields';
+ my $action = new_action(
+ class => 'SelectObjectCustomFields',
+ moniker => $moniker,
+ );
+
+ $action->object($cf);
+
+ with( name => $moniker ), form {
+ input {
+ type is 'hidden';
+ name is 'id';
+ value is get('id');
+ };
+ render_action($action);
+ form_submit( label => _('Save') );
+ };
+
+};
+
template 'group_rights' => page { title => _('Group Rights for Custom Field') }
content {
my $self = shift;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list