Commit 3087c5ac authored by Christian Loos's avatar Christian Loos Committed by Alex Vandiver
Browse files

bring the queues filter to the top of the page

If you have many queues this avoids scrolling to the bottom.
This also brings the queues page in parity with users and groups.
parent ba7d5316
......@@ -51,24 +51,7 @@
<h1><%$caption%></h1>
<p><&|/l&>Select a queue</&>:</p>
% unless ( $queues->Count ) {
<em><&|/l&>No queues matching search criteria found.</&></em>
% } else {
<& /Elements/CollectionList,
OrderBy => 'Name',
Order => 'ASC',
Rows => 50,
%ARGS,
Format => $Format,
Collection => $queues,
AllowSorting => 1,
PassArguments => [qw(
Format Rows Page Order OrderBy
FindDisabledQueues QueueString QueueOp QueueField
)],
&>
% }
<form method="post" action="<% RT->Config->Get('WebPath') %>/Admin/Queues/index.html">
% foreach my $field( qw(Format Rows Page Order OrderBy) ) {
% next unless defined $ARGS{ $field } && length $ARGS{ $field };
......@@ -89,6 +72,25 @@
<div align="right"><input type="submit" class="button" value="<&|/l&>Go!</&>" /></div>
</form>
<p><&|/l&>Select a queue</&>:</p>
% unless ( $queues->Count ) {
<em><&|/l&>No queues matching search criteria found.</&></em>
% } else {
<& /Elements/CollectionList,
OrderBy => 'Name',
Order => 'ASC',
Rows => 50,
%ARGS,
Format => $Format,
Collection => $queues,
AllowSorting => 1,
PassArguments => [qw(
Format Rows Page Order OrderBy
FindDisabledQueues QueueString QueueOp QueueField
)],
&>
% }
<%INIT>
my $queues = RT::Queues->new($session{'CurrentUser'});
$queues->FindAllRows if $FindDisabledQueues;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment