[Rt-commit] rt branch, 4.2/scrips-ui, updated. rt-4.0.8-488-g3f8ebda
Ruslan Zakirov
ruz at bestpractical.com
Wed Nov 21 15:50:30 EST 2012
The branch, 4.2/scrips-ui has been updated
via 3f8ebdaeb852efd99e7a206a7fda9e14e9a1eea5 (commit)
from 668f172c54a670857fd8cedef37c7b313619e3aa (commit)
Summary of changes:
share/html/Elements/Tabs | 11 +++++++++++
1 file changed, 11 insertions(+)
- Log -----------------------------------------------------------------
commit 3f8ebdaeb852efd99e7a206a7fda9e14e9a1eea5
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date: Thu Nov 22 00:48:36 2012 +0400
page menu links on /Admin/Scrips/Create.html
Select and Create like we have on similar pages
diff --git a/share/html/Elements/Tabs b/share/html/Elements/Tabs
index 163f383..73ce15d 100644
--- a/share/html/Elements/Tabs
+++ b/share/html/Elements/Tabs
@@ -373,8 +373,19 @@ my $build_admin_menu = sub {
$tabs->child( 'applies-to' => title => loc('Applies to'), path => "/Admin/Scrips/Objects.html?id=" . $id );
}
elsif ( $request_path =~ m{^/Admin/Scrips/(index\.html)?$} ) {
+ PageMenu->child( select => title => loc('Select') => path => "/Admin/Scrips/" );
PageMenu->child( create => title => loc('Create') => path => "/Admin/Scrips/Create.html" );
}
+ elsif ( $request_path =~ m{^/Admin/Scrips/Create\.html$} ) {
+ my ($queue) = $DECODED_ARGS->{'Queue'} && $DECODED_ARGS->{'Queue'} =~ /^(\d+)$/;
+ if ($queue) {
+ PageMenu->child( select => title => loc('Select') => path => "/Admin/Queues/Scrips.html?id=$queue" );
+ PageMenu->child( create => title => loc('Create') => path => "/Admin/Scrips/Create.html?Queue=$queue" );
+ } else {
+ PageMenu->child( select => title => loc('Select') => path => "/Admin/Global/Scrips.html" );
+ PageMenu->child( create => title => loc('Create') => path => "/Admin/Scrips/Create.html" );
+ }
+ }
}
if ( $request_path =~ m{^/Admin/Global/Scrips\.html} ) {
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list