%# "All my life I wanted to be someone; I guess I should have been more specific." %# -- Jane Wagner <& /Edit/Elements/104Header, %ARGS, Buttons => [ Add => ($RT::Foundry ? '' : "/Edit/Queues/Basic/index.html?Action-Add=1"), Save => '', Delete => 1, Copy => '', Search => '', ], Action => 'index.html', Method => 'POST', &>

<& $Tab, Text => 'Queues' &>
<& /Edit/Elements/Tabs, Map => $ARGS{Map}, URL => $URL, Skip => '/Edit/Queues/Basic/' &>
% if (!$NoUI) { <& Top, Categories => $Categories, %ARGS &> % }
<& List, Delete => ($NoUI ? '' : sub { !$_[0]->Disabled }), List => $List, Begin => $Begin, ARGS => \%ARGS &>

<%INIT> if ($Action eq 'Delete') { foreach my $Id (@ListDelete) { my $item = RT::Queue->new($session{'CurrentUser'}); $item->Load($Id); $item->SetDisabled(1); } $Begin = 0; } my ($List, $Categories) = $m->comp('DoSearch', %ARGS); <%ARGS> $Action => '' $Begin => 0 @ListDelete => () $Tab => '/Edit/Elements/Tab' $URL => '/Edit/Queues/' $NoUI => 0