X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FAdmin%2FGlobal%2FScrip.html;h=3a6ed107d266ad3bda38f2dd1dac52b3c797e0d2;hb=f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7;hp=d5aa9ffd681c4822e80ac37e7ff658c8fc6f5a12;hpb=fc6209f398899f0211cfcedeb81a3cd65e04a941;p=freeside.git diff --git a/rt/share/html/Admin/Global/Scrip.html b/rt/share/html/Admin/Global/Scrip.html index d5aa9ffd6..3a6ed107d 100755 --- a/rt/share/html/Admin/Global/Scrip.html +++ b/rt/share/html/Admin/Global/Scrip.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -46,41 +46,18 @@ %# %# END BPS TAGGED BLOCK }}} <& /Admin/Elements/Header, Title => $title &> -<& /Admin/Elements/SystemTabs, - current_tab => 'Admin/Global/Scrips.html', - current_subtab => $current_subtab, - subtabs => $subtabs, - Title => $title &> - +<& /Elements/Tabs &> <& /Elements/ListActions, actions => \@results &> <& /Admin/Elements/EditScrip, title => $title, %ARGS, id => $id &> <%init> -my $subtabs = { - A => { - title => loc('Select'), - path => "Admin/Global/Scrips.html", - }, - B => { - title => loc('New'), - path => "Admin/Global/Scrip.html?create=1&Queue=0", - separator => 1, - }, -}; - my ($id, @results) = $m->comp( '/Admin/Elements/EditScrip:Process', %ARGS ); -my ($title, $current_subtab); +my ($title); if ( $id ) { - $current_subtab = "Admin/Global/Scrip.html?id=$id&Queue=0"; $title = loc("Modify a scrip that applies to all queues"); - $subtabs->{"C"} = { - title => loc('Scrip #[_1]', $id), - path => "Admin/Global/Scrip.html?id=$id&Queue=0", - }; } else { - $current_subtab = "Admin/Global/Scrip.html?create=1&Queue=0"; $title = loc("Add a scrip which will apply to all queues"); }