summaryrefslogtreecommitdiff
path: root/rt/share/html/Admin/Scrips
diff options
context:
space:
mode:
Diffstat (limited to 'rt/share/html/Admin/Scrips')
-rw-r--r--rt/share/html/Admin/Scrips/Create.html2
-rw-r--r--rt/share/html/Admin/Scrips/Elements/EditBasics2
-rw-r--r--rt/share/html/Admin/Scrips/Elements/EditCustomCode2
-rw-r--r--rt/share/html/Admin/Scrips/Elements/SelectTemplate2
-rw-r--r--rt/share/html/Admin/Scrips/Modify.html2
-rw-r--r--rt/share/html/Admin/Scrips/Objects.html2
-rw-r--r--rt/share/html/Admin/Scrips/index.html32
7 files changed, 33 insertions, 11 deletions
diff --git a/rt/share/html/Admin/Scrips/Create.html b/rt/share/html/Admin/Scrips/Create.html
index 7cc340664..3fa3319ce 100644
--- a/rt/share/html/Admin/Scrips/Create.html
+++ b/rt/share/html/Admin/Scrips/Create.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
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
diff --git a/rt/share/html/Admin/Scrips/Elements/EditBasics b/rt/share/html/Admin/Scrips/Elements/EditBasics
index aad681c9b..4bb5097a7 100644
--- a/rt/share/html/Admin/Scrips/Elements/EditBasics
+++ b/rt/share/html/Admin/Scrips/Elements/EditBasics
@@ -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
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
diff --git a/rt/share/html/Admin/Scrips/Elements/EditCustomCode b/rt/share/html/Admin/Scrips/Elements/EditCustomCode
index 1c6247eb4..801927388 100644
--- a/rt/share/html/Admin/Scrips/Elements/EditCustomCode
+++ b/rt/share/html/Admin/Scrips/Elements/EditCustomCode
@@ -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
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
diff --git a/rt/share/html/Admin/Scrips/Elements/SelectTemplate b/rt/share/html/Admin/Scrips/Elements/SelectTemplate
index c7b3e8b2f..61aea8a1b 100644
--- a/rt/share/html/Admin/Scrips/Elements/SelectTemplate
+++ b/rt/share/html/Admin/Scrips/Elements/SelectTemplate
@@ -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
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
diff --git a/rt/share/html/Admin/Scrips/Modify.html b/rt/share/html/Admin/Scrips/Modify.html
index 618c48d2f..080d0b6b9 100644
--- a/rt/share/html/Admin/Scrips/Modify.html
+++ b/rt/share/html/Admin/Scrips/Modify.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
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
diff --git a/rt/share/html/Admin/Scrips/Objects.html b/rt/share/html/Admin/Scrips/Objects.html
index 8e8e4ed4d..19d1fbe52 100644
--- a/rt/share/html/Admin/Scrips/Objects.html
+++ b/rt/share/html/Admin/Scrips/Objects.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
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
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
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
@@ -48,6 +48,14 @@
<& /Admin/Elements/Header, Title => loc('Select a Scrip') &>
<& /Elements/Tabs &>
+<h1><%$caption%></h1>
+
+<form method="post" action="<% RT->Config->Get('WebPath') %>/Admin/Scrips/index.html">
+<input type="checkbox" class="checkbox" id="FindDisabledScrips" name="FindDisabledScrips" value="1" <% $FindDisabledScrips ? 'checked="checked"': '' |n%> />
+<label for="FindDisabledScrips"><&|/l&>Include disabled scrips in listing.</&></label>
+<div align="right"><input type="submit" class="button" value="<&|/l&>Go!</&>" /></div>
+</form>
+
<& /Elements/CollectionList,
OrderBy => 'Description',
Order => 'ASC',
@@ -56,17 +64,31 @@
Collection => $scrips,
Format => $Format,
AllowSorting => 1,
+ PassArguments => [qw(
+ FindDisabledScrips
+ )],
&>
-<%args>
-$Format => undef
-</%args>
+
+
<%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;
</%INIT>
+
+<%ARGS>
+$FindDisabledScrips => 0
+$Format => undef
+</%ARGS>
+
+