X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FAdmin%2FScrips%2Findex.html;fp=rt%2Fshare%2Fhtml%2FAdmin%2FScrips%2Findex.html;h=e1fd1fef526acaae7790d6dcb7f9a16e4978c97e;hp=a9549f6cfaeaa43405af4d3a875b120e75409267;hb=de9d037528895f7151a9aead6724ce2df95f9586;hpb=b226bc6bd81f999176cdbfa53a799033ff0a0307 diff --git a/rt/share/html/Admin/Scrips/index.html b/rt/share/html/Admin/Scrips/index.html index a9549f6cf..e1fd1fef5 100644 --- a/rt/share/html/Admin/Scrips/index.html +++ b/rt/share/html/Admin/Scrips/index.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2016 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -48,6 +48,14 @@ <& /Admin/Elements/Header, Title => loc('Select a Scrip') &> <& /Elements/Tabs &> +

<%$caption%>

+ +
+ /> + +
+
+ <& /Elements/CollectionList, OrderBy => 'Description', Order => 'ASC', @@ -56,17 +64,31 @@ Collection => $scrips, Format => $Format, AllowSorting => 1, + PassArguments => [qw( + FindDisabledScrips + )], &> -<%args> -$Format => undef - + + <%INIT> my $scrips = RT::Scrips->new( $session{'CurrentUser'} ); -$scrips->FindAllRows; +$scrips->FindAllRows if $FindDisabledScrips; $scrips->UnLimit; +my ($caption); +$caption = $FindDisabledScrips + ? loc("All Scrips") + : loc("Enabled Scrips"); + $m->callback(CallbackName => 'Massage', Scrips => $scrips); $Format ||= RT->Config->Get('AdminSearchResultFormat')->{'Scrips'}; my $Rows = RT->Config->Get('AdminSearchResultRows')->{'Scrips'} || 50; + +<%ARGS> +$FindDisabledScrips => 0 +$Format => undef + + +