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

bring the customfields filter to the top of the page

If you have many customfields this avoids scrolling to the bottom.
This also brings the customfields page in parity with users and groups.
parent 4193380f
......@@ -53,21 +53,6 @@
<h2><% loc("Custom Fields for [_1]", $tmp->FriendlyLookupType( $Type )) %></h2>
% }
<& /Elements/CollectionList,
OrderBy => 'LookupType|Name',
Order => 'ASC|ASC',
Rows => 50,
%ARGS,
Collection => $CustomFields,
Format => $Format,
DisplayFormat => ($Type? '' : '__FriendlyLookupType__,'). $Format,
AllowSorting => 1,
PassArguments => [
qw(Format Rows Page Order OrderBy),
qw(Type ShowDisabled)
],
&>
<form action="<%RT->Config->Get('WebPath')%>/Admin/CustomFields/index.html" method="get">
<&|/l&>Only show custom fields for:</&>
<select name="Type">
......@@ -86,6 +71,21 @@
<input type="submit" value="<% loc('Go!') %>" />
</form>
<& /Elements/CollectionList,
OrderBy => 'LookupType|Name',
Order => 'ASC|ASC',
Rows => 50,
%ARGS,
Collection => $CustomFields,
Format => $Format,
DisplayFormat => ($Type? '' : '__FriendlyLookupType__,'). $Format,
AllowSorting => 1,
PassArguments => [
qw(Format Rows Page Order OrderBy),
qw(Type ShowDisabled)
],
&>
<%args>
$Type => ''
$ShowDisabled => 0
......
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