[Rt-commit] r16498 - in rt/branches/3.999-DANGEROUS/share/html/Admin/Global/StatusSchemas: .
ruz at bestpractical.com
ruz at bestpractical.com
Wed Oct 22 09:16:51 EDT 2008
Author: ruz
Date: Wed Oct 22 09:16:29 2008
New Revision: 16498
Modified:
rt/branches/3.999-DANGEROUS/share/html/Admin/Global/StatusSchemas/Elements/Tabs
rt/branches/3.999-DANGEROUS/share/html/Admin/Global/StatusSchemas/index.html
Log:
* adjust status schema's tabs to handle all things in the section
Modified: rt/branches/3.999-DANGEROUS/share/html/Admin/Global/StatusSchemas/Elements/Tabs
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Admin/Global/StatusSchemas/Elements/Tabs (original)
+++ rt/branches/3.999-DANGEROUS/share/html/Admin/Global/StatusSchemas/Elements/Tabs Wed Oct 22 09:16:29 2008
@@ -1,17 +1,32 @@
<& /Admin/Elements/SystemTabs,
title => $title,
current_tab => "$base/index.html",
- current_subtab => "$base/Modify.html?$qs_name",
- subtabs => $subtabs,
+ subtabs => $parent_subtabs,
+ current_subtab => $parent_subtab,
&>
<%INIT>
my $base = "Admin/Global/StatusSchemas";
-my $qs_name = $m->comp( '/Elements/QueryString', name => $schema->name );
-$current_tab .= "?$qs_name";
-my $subtabs = {
+my $parent_subtab;
+my $parent_subtabs = {
A => {
- title => _("Status schema '%1'", $schema->name),
- path => "$base/Modify.html?$qs_name",
+ title => _('Select') .'/'. _('Create'),
+ path => "$base/index.html",
+ },
+ B => {
+ title => _('Localization'),
+ path => "$base/Localization.html",
+ },
+};
+
+if ( $schema ) {
+ my $qs_name = $m->comp( '/Elements/QueryString', name => $schema->name );
+ $current_tab .= "?$qs_name";
+
+ $parent_subtab = "$base/Modify.html?$qs_name";
+ $parent_subtabs->{'C'} = {
+ title => $schema->name,
+ path => $parent_subtab,
+ separator => 1,
current_subtab => $current_tab,
subtabs => {
A => {
@@ -27,13 +42,15 @@
path => "$base/Interface.html?$qs_name",
},
},
- },
-};
+ };
+}
+else {
+ $parent_subtab = $current_tab;
+}
</%INIT>
-
<%ARGS>
-$schema
-$title => undef
-$current_tab => 'Admin/Global/StatusSchemas/Modify.html'
+$schema => undef
+$title => undef
+$current_tab => undef
</%ARGS>
Modified: rt/branches/3.999-DANGEROUS/share/html/Admin/Global/StatusSchemas/index.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Admin/Global/StatusSchemas/index.html (original)
+++ rt/branches/3.999-DANGEROUS/share/html/Admin/Global/StatusSchemas/index.html Wed Oct 22 09:16:29 2008
@@ -1,9 +1,8 @@
<&| /Admin/Elements/Header, title => $title &>
-<& /Admin/Elements/SystemTabs,
- current_tab => 'Admin/Global/StatusSchemas/index.html',
- current_subtab => 'Admin/Global/StatusSchemas/index.html',
- title => $title,
+<& Elements/Tabs,
+ title => $title,
+ current_tab => 'Admin/Global/StatusSchemas/index.html',
&>
<& /Elements/ListActions, actions => \@results &>
More information about the Rt-commit
mailing list