[Rt-commit] r2312 - in rtfm/branches/2.1-TESTING: .
html/Callbacks/RTFM/Admin/Elements
html/Callbacks/RTFM/Admin/Elements/CustomFieldTabs
jesse at bestpractical.com
jesse at bestpractical.com
Mon Mar 7 16:02:52 EST 2005
Author: jesse
Date: Mon Mar 7 16:02:52 2005
New Revision: 2312
Added:
rtfm/branches/2.1-TESTING/html/Callbacks/RTFM/Admin/Elements/
rtfm/branches/2.1-TESTING/html/Callbacks/RTFM/Admin/Elements/CustomFieldTabs/
rtfm/branches/2.1-TESTING/html/Callbacks/RTFM/Admin/Elements/CustomFieldTabs/Default
Modified:
rtfm/branches/2.1-TESTING/ (props changed)
Log:
r6569 at hualien: jesse | 2005-03-07 16:02:25 -0500
Adding support for picking RTFM custom fields
Added: rtfm/branches/2.1-TESTING/html/Callbacks/RTFM/Admin/Elements/CustomFieldTabs/Default
==============================================================================
--- (empty file)
+++ rtfm/branches/2.1-TESTING/html/Callbacks/RTFM/Admin/Elements/CustomFieldTabs/Default Mon Mar 7 16:02:52 2005
@@ -0,0 +1,16 @@
+<%args>
+$id => undef
+$tabs => undef
+</%args>
+<%init>
+ my $cf = RT::CustomField->new( $session{'CurrentUser'} );
+ $cf->Load($id);
+ if ($cf->LookupType =~ /^RT::FM::Class/io) {
+ $tabs->{'this'}->{subtabs}->{RTFM_CLASS} = {
+ title => loc('Applies to'),
+ path => "Admin/CustomFields/Objects.html?id=" . $id,
+ };
+ }
+
+</%init>
+$m->out("<h1>FOO</h1>", 'n');
More information about the Rt-commit
mailing list