X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FAdmin%2FScrips%2Findex.html;h=32ec349236b7586a49634898b334aae5151183b9;hp=7c54dcfc56c281428fe5988a8e042526cf14443a;hb=187086c479a09629b7d180eec513fb7657f4e291;hpb=9aee669886202be7035e6c6049fc71bc99dd3013 diff --git a/rt/share/html/Admin/Scrips/index.html b/rt/share/html/Admin/Scrips/index.html index 7c54dcfc5..32ec34923 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-2015 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2018 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,34 @@ Collection => $scrips, Format => $Format, AllowSorting => 1, + PassArguments => [qw( + FindDisabledScrips + Page + Order + OrderBy + )], &> -<%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 + + +