[Rt-commit] [svn] r1806 - in rt/branches/PLATANO-EXPERIMENTAL-CSS: . html/Admin/Elements html/Admin/Global html/Admin/Global/CustomFields

jesse at pallas.eruditorum.org jesse at pallas.eruditorum.org
Thu Nov 11 03:09:21 EST 2004


Author: jesse
Date: Thu Nov 11 03:09:20 2004
New Revision: 1806

Added:
   rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/GlobalCustomFieldTabs   (contents, props changed)
   rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Global/CustomFields/
   rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Global/CustomFields/Groups.html
   rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Global/CustomFields/Queue-Tickets.html   (contents, props changed)
   rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Global/CustomFields/Queue-Transactions.html   (contents, props changed)
   rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Global/CustomFields/Users.html
   rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Global/CustomFields/index.html
Modified:
   rt/branches/PLATANO-EXPERIMENTAL-CSS/   (props changed)
   rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/GroupTabs
   rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/ObjectCustomFields
   rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/QueueTabs
   rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/SystemTabs
   rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/UserTabs
   rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Global/index.html
Log:
 r9068 at tinbook:  jesse | 2004-11-11T02:54:47.265494Z
  r6009 at tinbook:  jesse | 2004-10-15T17:57:36.162346Z
  Administrative menu overhaul to sanitize custom field configuration.
  
 


Added: rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/GlobalCustomFieldTabs
==============================================================================
--- (empty file)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/GlobalCustomFieldTabs	Thu Nov 11 03:09:20 2004
@@ -0,0 +1,93 @@
+%# {{{ BEGIN BPS TAGGED BLOCK
+%# 
+%# COPYRIGHT:
+%#  
+%# This software is Copyright (c) 1996-2004 Best Practical Solutions, LLC 
+%#                                          <jesse at bestpractical.com>
+%# 
+%# (Except where explicitly superseded by other copyright notices)
+%# 
+%# 
+%# LICENSE:
+%# 
+%# This work is made available to you under the terms of Version 2 of
+%# the GNU General Public License. A copy of that license should have
+%# been provided with this software, but in any event can be snarfed
+%# from www.gnu.org.
+%# 
+%# This work is distributed in the hope that it will be useful, but
+%# WITHOUT ANY WARRANTY; without even the implied warranty of
+%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+%# General Public License for more details.
+%# 
+%# You should have received a copy of the GNU General Public License
+%# along with this program; if not, write to the Free Software
+%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+%# 
+%# 
+%# CONTRIBUTION SUBMISSION POLICY:
+%# 
+%# (The following paragraph is not intended to limit the rights granted
+%# to you to modify and distribute this software under the terms of
+%# the GNU General Public License and is only of importance to you if
+%# you choose to contribute your changes and enhancements to the
+%# community by submitting them to Best Practical Solutions, LLC.)
+%# 
+%# By intentionally submitting any modifications, corrections or
+%# derivatives to this work, or any other work intended for use with
+%# Request Tracker, to Best Practical Solutions, LLC, you confirm that
+%# you are the copyright holder for those contributions and you grant
+%# Best Practical Solutions,  LLC a nonexclusive, worldwide, irrevocable,
+%# royalty-free, perpetual, license to use, copy, create derivative
+%# works based on those contributions, and sublicense and distribute
+%# those contributions and any derivatives thereof.
+%# 
+%# }}} END BPS TAGGED BLOCK
+<& /Admin/Elements/SystemTabs, subtabs => $tabs, 
+    current_tab => 'Admin/Global/CustomFields/index.html', 
+    current_subtab => $current_tab, 
+    Title => $Title &>
+<%INIT>
+
+
+  my $tabs = {
+                
+               A => { title => loc('Users'),
+                           text => loc('Modify scrips which apply to all queues'),
+                           path => 'Admin/Global/CustomFields/Users.html',
+                         },
+               B => { title => loc('Groups'),
+                        text => loc('Edit system templates'),
+                        path => 'Admin/Global/CustomFields/Groups.html',
+                      },
+              
+                F => { title => loc('Tickets'),
+                text => loc('Modify global custom fields'),
+                        path => 'Admin/Global/CustomFields/Queue-Tickets.html',
+                        },
+
+                        G => { title => loc('Ticket Transactions'),
+                                text => loc('Modify global group rights'),
+                                path => 'Admin/Global/CustomFields/Queue-Transactions.html',
+                      },
+ 
+};
+  # Now let callbacks add their extra tabs
+  $m->comp('/Elements/Callback', tabs => $tabs, %ARGS);
+
+  foreach my $tab (sort keys %{$tabs}) {
+    if ($tabs->{$tab}->{'path'} eq $current_tab) {
+      $tabs->{$tab}->{"subtabs"} = $subtabs;
+      $tabs->{$tab}->{"current_subtab"} = $current_subtab;
+    }
+  }
+</%INIT>
+
+  
+<%ARGS>
+$id => undef
+$current_tab => undef
+$subtabs => undef
+$current_subtab => undef
+$Title => undef
+</%ARGS>

Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/GroupTabs
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/GroupTabs	(original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/GroupTabs	Thu Nov 11 03:09:20 2004
@@ -75,9 +75,7 @@
 $tabs->{"A"} = { title => loc('Select group'),
                  path  => "Admin/Groups/", };
 $tabs->{"B"} = { title     => loc('New group'),
-                 path      => "Admin/Groups/Modify.html?Create=1", };
-$tabs->{"C"} = { title => loc('Custom Fields'),
-		 path => "Admin/Groups/CustomFields.html",
+                 path      => "Admin/Groups/Modify.html?Create=1",
 		 separator => 1, };
 
 # Now let callbacks add their extra tabs

Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/ObjectCustomFields
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/ObjectCustomFields	(original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/ObjectCustomFields	Thu Nov 11 03:09:20 2004
@@ -51,8 +51,7 @@
     current_subtab => "Admin/$Types/CustomFields.html?$sub_type_url&id=".$id, 
     "${Type}Obj" => $Object,
 ) : (
-    current_tab => "Admin/$Types/CustomFields.html?$sub_type_url",
-    current_subtab => "Admin/$Types/CustomFields.html?$sub_type_url",
+    current_tab => "Admin/Global/CustomFields/${QualifiedType}s.html",
 ),
     Title => $title
     &>
@@ -62,15 +61,41 @@
 $ObjectType =~ /^RT::(Queue|User|Group)$/
     or Abort(loc("Object of type [_1] cannot take custom fields", $ObjectType));
 
+
+
 my $Type = $1;
 my $Types = $Type.'s';
-my $ObjectTabs = "/Admin/Elements/${Type}Tabs";
+my $ObjectTabs;
 my $Object = $ObjectType->new($session{'CurrentUser'});
-$Object->Load($id) || Abort(loc("Couldn't load object [_1]", $id)) if $id;
 
-my $title = ($id ? loc('Edit Custom Fields for [_1]', $Object->Name)
-		 : loc("Modify Custom Fields which apply to all [_1]", loc($Types)));
 
+my $QualifiedType;
+my $FriendlySubTypes;
+if ($SubType =~/^RT::(.*)$/)  {
+    $FriendlySubTypes = $1."s";
+   $QualifiedType = "$Type-$1"; 
+} else {
+    $QualifiedType = $Type;
+}
+
+if ($id) { 
+    $Object->Load($id) || Abort(loc("Couldn't load object [_1]", $id));
+    $ObjectTabs = "/Admin/Elements/${Type}Tabs";
+} else {
+    $ObjectTabs = "/Admin/Elements/GlobalCustomFieldTabs";
+
+} 
+
+my $title; 
+if ($id) {
+$title =  loc('Edit Custom Fields for [_1]', $Object->Name);
+}
+elsif ($SubType) {
+$title=   loc("Modify Custom Fields which apply to [_1] for all [_2]", loc(lc($FriendlySubTypes)), loc(lc($Types)));
+} else {
+ $title =loc("Modify Custom Fields which apply to all [_1]", loc(lc($Types)));
+
+}
 my $sub_type_url;
 $sub_type_url = "SubType=$SubType" if $SubType;
 

Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/QueueTabs
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/QueueTabs	(original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/QueueTabs	Thu Nov 11 03:09:20 2004
@@ -94,12 +94,6 @@
 			   };
   $tabs->{"B"} = { title => loc('New queue'),
   		     	path => "Admin/Queues/Modify.html?Create=1",
-			   };
-  $tabs->{"G1"} = { title => loc('Ticket Custom Fields'),
-  		     	path => 'Admin/Queues/CustomFields.html?SubType=RT::Ticket',
-			   };
-  $tabs->{"G2"} = { title => loc('Transaction Custom Fields'),
-  		     	path => 'Admin/Queues/CustomFields.html?SubType=RT::Ticket-RT::Transaction',
 		 separator => 1, };
 }
 

Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/SystemTabs
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/SystemTabs	(original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/SystemTabs	Thu Nov 11 03:09:20 2004
@@ -58,9 +58,9 @@
                         path => 'Admin/Global/Templates.html',
                       },
               
-#                F => { title => loc('Custom Fields'),
-#                        path => 'Admin/Global/CustomFields.html',
-#                        },
+                F => { title => loc('Custom Fields'),
+                        path => 'Admin/Global/CustomFields/index.html',
+                        },
 
                 G => { title => loc('Group Rights'),
                                 path => 'Admin/Global/GroupRights.html',

Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/UserTabs
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/UserTabs	(original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Elements/UserTabs	Thu Nov 11 03:09:20 2004
@@ -77,9 +77,6 @@
 			   };
   $tabs->{"B"} = { title => loc('New user'),
   		     	path => "Admin/Users/Modify.html?Create=1",
-	};
-  $tabs->{"C"} = { title => loc('Custom Fields'),
-  		     	path => "Admin/Users/CustomFields.html",
 		separator => 1,
 	};
 }

Added: rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Global/CustomFields/Groups.html
==============================================================================
--- (empty file)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Global/CustomFields/Groups.html	Thu Nov 11 03:09:20 2004
@@ -0,0 +1,46 @@
+%# BEGIN BPS TAGGED BLOCK
+%# 
+%# COPYRIGHT:
+%#  
+%# This software is Copyright (c) 1996-2004 Best Practical Solutions, LLC 
+%#                                          <jesse.com>
+%# 
+%# (Except where explicitly superseded by other copyright notices)
+%# 
+%# 
+%# LICENSE:
+%# 
+%# This work is made available to you under the terms of Version 2 of
+%# the GNU General Public License. A copy of that license should have
+%# been provided with this software, but in any event can be snarfed
+%# from www.gnu.org.
+%# 
+%# This work is distributed in the hope that it will be useful, but
+%# WITHOUT ANY WARRANTY; without even the implied warranty of
+%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+%# General Public License for more details.
+%# 
+%# You should have received a copy of the GNU General Public License
+%# along with this program; if not, write to the Free Software
+%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+%# 
+%# 
+%# CONTRIBUTION SUBMISSION POLICY:
+%# 
+%# (The following paragraph is not intended to limit the rights granted
+%# to you to modify and distribute this software under the terms of
+%# the GNU General Public License and is only of importance to you if
+%# you choose to contribute your changes and enhancements to the
+%# community by submitting them to Best Practical Solutions, LLC.)
+%# 
+%# By intentionally submitting any modifications, corrections or
+%# derivatives to this work, or any other work intended for use with
+%# Request Tracker, to Best Practical Solutions, LLC, you confirm that
+%# you are the copyright holder for those contributions and you grant
+%# Best Practical Solutions,  LLC a nonexclusive, worldwide, irrevocable,
+%# royalty-free, perpetual, license to use, copy, create derivative
+%# works based on those contributions, and sublicense and distribute
+%# those contributions and any derivatives thereof.
+%# 
+%# END BPS TAGGED BLOCK
+<& /Admin/Elements/ObjectCustomFields, %ARGS, ObjectType => 'RT::Group' &>

Added: rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Global/CustomFields/Queue-Tickets.html
==============================================================================
--- (empty file)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Global/CustomFields/Queue-Tickets.html	Thu Nov 11 03:09:20 2004
@@ -0,0 +1,47 @@
+%# {{{ BEGIN BPS TAGGED BLOCK
+%# 
+%# COPYRIGHT:
+%#  
+%# This software is Copyright (c) 1996-2004 Best Practical Solutions, LLC 
+%#                                          <jesse at bestpractical.com>
+%# 
+%# (Except where explicitly superseded by other copyright notices)
+%# 
+%# 
+%# LICENSE:
+%# 
+%# This work is made available to you under the terms of Version 2 of
+%# the GNU General Public License. A copy of that license should have
+%# been provided with this software, but in any event can be snarfed
+%# from www.gnu.org.
+%# 
+%# This work is distributed in the hope that it will be useful, but
+%# WITHOUT ANY WARRANTY; without even the implied warranty of
+%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+%# General Public License for more details.
+%# 
+%# You should have received a copy of the GNU General Public License
+%# along with this program; if not, write to the Free Software
+%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+%# 
+%# 
+%# CONTRIBUTION SUBMISSION POLICY:
+%# 
+%# (The following paragraph is not intended to limit the rights granted
+%# to you to modify and distribute this software under the terms of
+%# the GNU General Public License and is only of importance to you if
+%# you choose to contribute your changes and enhancements to the
+%# community by submitting them to Best Practical Solutions, LLC.)
+%# 
+%# By intentionally submitting any modifications, corrections or
+%# derivatives to this work, or any other work intended for use with
+%# Request Tracker, to Best Practical Solutions, LLC, you confirm that
+%# you are the copyright holder for those contributions and you grant
+%# Best Practical Solutions,  LLC a nonexclusive, worldwide, irrevocable,
+%# royalty-free, perpetual, license to use, copy, create derivative
+%# works based on those contributions, and sublicense and distribute
+%# those contributions and any derivatives thereof.
+%# 
+%# }}} END BPS TAGGED BLOCK
+<& /Admin/Elements/ObjectCustomFields, %ARGS, ObjectType => 'RT::Queue',
+SubType => 'RT::Ticket' &>

Added: rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Global/CustomFields/Queue-Transactions.html
==============================================================================
--- (empty file)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Global/CustomFields/Queue-Transactions.html	Thu Nov 11 03:09:20 2004
@@ -0,0 +1,47 @@
+%# {{{ BEGIN BPS TAGGED BLOCK
+%# 
+%# COPYRIGHT:
+%#  
+%# This software is Copyright (c) 1996-2004 Best Practical Solutions, LLC 
+%#                                          <jesse at bestpractical.com>
+%# 
+%# (Except where explicitly superseded by other copyright notices)
+%# 
+%# 
+%# LICENSE:
+%# 
+%# This work is made available to you under the terms of Version 2 of
+%# the GNU General Public License. A copy of that license should have
+%# been provided with this software, but in any event can be snarfed
+%# from www.gnu.org.
+%# 
+%# This work is distributed in the hope that it will be useful, but
+%# WITHOUT ANY WARRANTY; without even the implied warranty of
+%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+%# General Public License for more details.
+%# 
+%# You should have received a copy of the GNU General Public License
+%# along with this program; if not, write to the Free Software
+%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+%# 
+%# 
+%# CONTRIBUTION SUBMISSION POLICY:
+%# 
+%# (The following paragraph is not intended to limit the rights granted
+%# to you to modify and distribute this software under the terms of
+%# the GNU General Public License and is only of importance to you if
+%# you choose to contribute your changes and enhancements to the
+%# community by submitting them to Best Practical Solutions, LLC.)
+%# 
+%# By intentionally submitting any modifications, corrections or
+%# derivatives to this work, or any other work intended for use with
+%# Request Tracker, to Best Practical Solutions, LLC, you confirm that
+%# you are the copyright holder for those contributions and you grant
+%# Best Practical Solutions,  LLC a nonexclusive, worldwide, irrevocable,
+%# royalty-free, perpetual, license to use, copy, create derivative
+%# works based on those contributions, and sublicense and distribute
+%# those contributions and any derivatives thereof.
+%# 
+%# }}} END BPS TAGGED BLOCK
+<& /Admin/Elements/ObjectCustomFields, %ARGS, ObjectType => 'RT::Queue',
+SubType => 'RT::Transaction' &>

Added: rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Global/CustomFields/Users.html
==============================================================================
--- (empty file)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Global/CustomFields/Users.html	Thu Nov 11 03:09:20 2004
@@ -0,0 +1,46 @@
+%# BEGIN BPS TAGGED BLOCK
+%# 
+%# COPYRIGHT:
+%#  
+%# This software is Copyright (c) 1996-2004 Best Practical Solutions, LLC 
+%#                                          <jesse.com>
+%# 
+%# (Except where explicitly superseded by other copyright notices)
+%# 
+%# 
+%# LICENSE:
+%# 
+%# This work is made available to you under the terms of Version 2 of
+%# the GNU General Public License. A copy of that license should have
+%# been provided with this software, but in any event can be snarfed
+%# from www.gnu.org.
+%# 
+%# This work is distributed in the hope that it will be useful, but
+%# WITHOUT ANY WARRANTY; without even the implied warranty of
+%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+%# General Public License for more details.
+%# 
+%# You should have received a copy of the GNU General Public License
+%# along with this program; if not, write to the Free Software
+%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+%# 
+%# 
+%# CONTRIBUTION SUBMISSION POLICY:
+%# 
+%# (The following paragraph is not intended to limit the rights granted
+%# to you to modify and distribute this software under the terms of
+%# the GNU General Public License and is only of importance to you if
+%# you choose to contribute your changes and enhancements to the
+%# community by submitting them to Best Practical Solutions, LLC.)
+%# 
+%# By intentionally submitting any modifications, corrections or
+%# derivatives to this work, or any other work intended for use with
+%# Request Tracker, to Best Practical Solutions, LLC, you confirm that
+%# you are the copyright holder for those contributions and you grant
+%# Best Practical Solutions,  LLC a nonexclusive, worldwide, irrevocable,
+%# royalty-free, perpetual, license to use, copy, create derivative
+%# works based on those contributions, and sublicense and distribute
+%# those contributions and any derivatives thereof.
+%# 
+%# END BPS TAGGED BLOCK
+<& /Admin/Elements/ObjectCustomFields, %ARGS, ObjectType => 'RT::User' &>

Added: rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Global/CustomFields/index.html
==============================================================================
--- (empty file)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Global/CustomFields/index.html	Thu Nov 11 03:09:20 2004
@@ -0,0 +1,83 @@
+%# {{{ BEGIN BPS TAGGED BLOCK
+%# 
+%# COPYRIGHT:
+%#  
+%# This software is Copyright (c) 1996-2004 Best Practical Solutions, LLC 
+%#                                          <jesse at bestpractical.com>
+%# 
+%# (Except where explicitly superseded by other copyright notices)
+%# 
+%# 
+%# LICENSE:
+%# 
+%# This work is made available to you under the terms of Version 2 of
+%# the GNU General Public License. A copy of that license should have
+%# been provided with this software, but in any event can be snarfed
+%# from www.gnu.org.
+%# 
+%# This work is distributed in the hope that it will be useful, but
+%# WITHOUT ANY WARRANTY; without even the implied warranty of
+%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+%# General Public License for more details.
+%# 
+%# You should have received a copy of the GNU General Public License
+%# along with this program; if not, write to the Free Software
+%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+%# 
+%# 
+%# CONTRIBUTION SUBMISSION POLICY:
+%# 
+%# (The following paragraph is not intended to limit the rights granted
+%# to you to modify and distribute this software under the terms of
+%# the GNU General Public License and is only of importance to you if
+%# you choose to contribute your changes and enhancements to the
+%# community by submitting them to Best Practical Solutions, LLC.)
+%# 
+%# By intentionally submitting any modifications, corrections or
+%# derivatives to this work, or any other work intended for use with
+%# Request Tracker, to Best Practical Solutions, LLC, you confirm that
+%# you are the copyright holder for those contributions and you grant
+%# Best Practical Solutions,  LLC a nonexclusive, worldwide, irrevocable,
+%# royalty-free, perpetual, license to use, copy, create derivative
+%# works based on those contributions, and sublicense and distribute
+%# those contributions and any derivatives thereof.
+%# 
+%# }}} END BPS TAGGED BLOCK
+<& /Elements/Callback, tabs => $tabs, %ARGS &>
+<& /Admin/Elements/Header, Title => $title &>
+<& /Admin/Elements/GlobalCustomFieldTabs, Title => $title &>
+
+<ul>
+% foreach my $key (sort keys %$tabs) {
+<li><font size="+2"><a href="<% $tabs->{$key}{path} %>"><% $tabs->{$key}{title} %></a></font><br>
+<% $tabs->{$key}{text} %>
+</li>
+% }
+</ul>
+
+<%INIT>
+my $title =  loc("Global custom field configuration");
+
+  my $tabs = {
+                
+               A => { title => loc('Users'),
+               text => loc('Select custom fields for all users'),
+                           path => 'Users.html',
+                         },
+               B => { title => loc('Groups'),
+                        text => loc('Select custom fields for all user groups'),
+                        path => 'Groups.html',
+                      },
+              
+                F => { title => loc('Tickets'),
+                text => loc('Select custom fields for tickets in all queues'),
+                        path => 'Queue-Tickets.html',
+                        },
+
+                        G => { title => loc('Ticket Transactions'),
+                                text => loc('Select custom fields for transactions on tickets in all queues'),
+                                path => 'Queue-Transactions.html',
+                      },
+ 
+};
+</%INIT>

Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Global/index.html
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Global/index.html	(original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Admin/Global/index.html	Thu Nov 11 03:09:20 2004
@@ -68,10 +68,10 @@
                         path => 'Templates.html',
                       },
               
-#                F => { title => loc('Custom Fields'),
-#                        text => loc('Modify Custom Fields which apply to all queues'),
-#                        path => 'CustomFields.html',
-#                        },
+                F => { title => loc('Custom Fields'),
+                text => loc('Modify global custom fields'),
+                        path => 'CustomFields/index.html',
+                        },
 
                 G => { title => loc('Group Rights'),
                                 text => loc('Modify global group rights'),


More information about the Rt-commit mailing list