X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FAdmin%2FCustomFields%2Findex.html;h=eb1b6a288014797172abf14010fc88aa2c411278;hb=7322f2afedcc2f427e997d1535a503613a83f088;hp=2835b1292609433a1adb55cc196e1161f416aea1;hpb=fc6209f398899f0211cfcedeb81a3cd65e04a941;p=freeside.git diff --git a/rt/share/html/Admin/CustomFields/index.html b/rt/share/html/Admin/CustomFields/index.html index 2835b1292..eb1b6a288 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-2011 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2016 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -46,20 +46,33 @@ %# %# END BPS TAGGED BLOCK }}} <& /Admin/Elements/Header, Title => $title &> -<& /Admin/Elements/CustomFieldTabs, - current_tab => 'Admin/CustomFields/', - Title => $title, -&> +<& /Elements/Tabs &> % my $tmp = RT::CustomField->new( $session{'CurrentUser'} ); -% if ( $Type ) { -

<% loc("Custom Fields for [_1]", $tmp->FriendlyLookupType( $Type )) %>

+

<% $Type ? loc("Custom Fields for [_1]", $Type) : loc('All Custom Fields') %>

+ +
+<&|/l&>Only show custom fields for: + +
+ /> + +
+ +% $m->callback(CallbackName => 'BeforeSubmit'); + +
+
<& /Elements/CollectionList, OrderBy => 'LookupType|Name', Order => 'ASC|ASC', - Rows => 50, + Rows => $Rows, %ARGS, Collection => $CustomFields, Format => $Format, @@ -71,22 +84,6 @@ ], &> -
-<&|/l&>Only show custom fields for: - -
- /> -<&|/l&>Include disabled custom fields in listing. -
- - -
- <%args> $Type => '' $ShowDisabled => 0 @@ -96,17 +93,14 @@ $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; $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;