X-Git-Url: http://git.uio.no/git/?p=usit-rt.git;a=blobdiff_plain;f=share%2Fhtml%2FAdmin%2FCustomFields%2Findex.html;h=a991f4afc89aa9fad597507e5e702c272793f778;hp=24264fd23c98cd8a945470d8ad9cd1f415595e64;hb=c33a4027369d767810c2d24ad54d6e61599ff823;hpb=403d7b0b0eb7d2535f279adb134aecb4fde2438d diff --git a/share/html/Admin/CustomFields/index.html b/share/html/Admin/CustomFields/index.html index 24264fd..a991f4a 100644 --- a/share/html/Admin/CustomFields/index.html +++ b/share/html/Admin/CustomFields/index.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2013 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -49,24 +49,7 @@ <& /Elements/Tabs &> % my $tmp = RT::CustomField->new( $session{'CurrentUser'} ); -% if ( $Type ) { -

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

-% } - -<& /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) - ], -&> +

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

<&|/l&>Only show custom fields for: @@ -77,15 +60,30 @@ % }
- /> -<&|/l&>Include disabled custom fields in listing. + /> +
% $m->callback(CallbackName => 'BeforeSubmit'); - +
+<& /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;