diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-07-26 15:41:26 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-07-26 15:41:26 -0700 |
commit | 9aee669886202be7035e6c6049fc71bc99dd3013 (patch) | |
tree | 2fd5bf6de74f3d99270587ffb1833e4188a6373d /rt/share/html/Admin/CustomFields/index.html | |
parent | ac20214d38d9af00430423f147b5a0e50751b050 (diff) | |
parent | 1add633372bdca3cc7163c2ce48363fed3984437 (diff) |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'rt/share/html/Admin/CustomFields/index.html')
-rw-r--r-- | rt/share/html/Admin/CustomFields/index.html | 49 |
1 files changed, 21 insertions, 28 deletions
diff --git a/rt/share/html/Admin/CustomFields/index.html b/rt/share/html/Admin/CustomFields/index.html index 78d9a92a9..cd9884f15 100644 --- a/rt/share/html/Admin/CustomFields/index.html +++ b/rt/share/html/Admin/CustomFields/index.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC %# <sales@bestpractical.com> %# %# (Except where explicitly superseded by other copyright notices) @@ -49,24 +49,7 @@ <& /Elements/Tabs &> % my $tmp = RT::CustomField->new( $session{'CurrentUser'} ); -% if ( $Type ) { -<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) - ], -&> +<h1><% $Type ? loc("Custom Fields for [_1]", $Type) : loc('All Custom Fields') %></h1> <form action="<%RT->Config->Get('WebPath')%>/Admin/CustomFields/index.html" method="get"> <&|/l&>Only show custom fields for:</&> @@ -77,15 +60,30 @@ % } </select> <br /> -<input type="checkbox" class="checkbox" name="ShowDisabled" value="1" <% $ShowDisabled && 'checked="checked"' |n%> /> -<&|/l&>Include disabled custom fields in listing.</&> +<input type="checkbox" class="checkbox" id="ShowDisabled" name="ShowDisabled" value="1" <% $ShowDisabled && 'checked="checked"' |n %> /> +<label for="ShowDisabled"><&|/l&>Include disabled custom fields in listing.</&></label> <br /> % $m->callback(CallbackName => 'BeforeSubmit'); -<input type="submit" value="<% loc('Go!') %>" /> +<div align="right"><input type="submit" value="<% loc('Go!') %>" /></div> </form> +<& /Elements/CollectionList, + OrderBy => 'LookupType|Name', + Order => 'ASC|ASC', + Rows => $Rows, + %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 @@ -95,12 +93,6 @@ $Format => undef <%INIT> my $title = loc('Select a Custom Field'); -$Type ||= $ARGS{'type'} || ''; -if ( !$Type && $ARGS{'type'} ) { - $Type ||= $ARGS{'type'}; - $RT::Logger->warning("'type' argument is deprecated use 'Type' instead"); -} - my $CustomFields = RT::CustomFields->new($session{'CurrentUser'}); $CustomFields->UnLimit; $CustomFields->FindAllRows if $ShowDisabled; @@ -109,5 +101,6 @@ $CustomFields->LimitToLookupType( $Type ) if $Type; $m->callback(CallbackName => 'MassageCustomFields', CustomFields => $CustomFields); $Format ||= RT->Config->Get('AdminSearchResultFormat')->{'CustomFields'}; +my $Rows = RT->Config->Get('AdminSearchResultRows')->{'CustomFields'} || 50; </%INIT> |