From 160be29a0dc62e79a4fb95d2ab8c0c7e5996760e Mon Sep 17 00:00:00 2001 From: cvs2git Date: Mon, 12 Aug 2002 06:17:10 +0000 Subject: This commit was manufactured by cvs2svn to create branch 'BESTPRACTICAL'. --- rt/webrt/Admin/Keywords/index.html | 110 ------------------------------------- 1 file changed, 110 deletions(-) delete mode 100644 rt/webrt/Admin/Keywords/index.html (limited to 'rt/webrt/Admin/Keywords/index.html') diff --git a/rt/webrt/Admin/Keywords/index.html b/rt/webrt/Admin/Keywords/index.html deleted file mode 100644 index 12814ec03..000000000 --- a/rt/webrt/Admin/Keywords/index.html +++ /dev/null @@ -1,110 +0,0 @@ -<& /Elements/Header, Title => 'Admin/Keywords' &> -<& /Admin/Elements/Tabs, current_tab => 'Admin/Keywords/' &> - -<& /Elements/ListActions, actions => \@Actions &> - -<& /Elements/TitleBoxStart, title => 'Keywords' &> -<%$Root->Path%> - -
- Include disabled items in listing. - - - - -<& /Elements/TitleBoxEnd &> -<%INIT> -my (@Actions); - -if ($ARGS{'KeyName-New'}) { - my $NewKey = new RT::Keyword($session{'CurrentUser'}); - my ($val, $msg) = $NewKey->Create( Parent => $RootId, Name => $ARGS{'KeyName-New'}); - push (@Actions, $msg); -} - -my $arg; -foreach $arg (keys %ARGS) { - if ($arg =~ /^Disable-(\d*)$/) { - my $id = $1; - my $keyword = new RT::Keyword($session{'CurrentUser'}); - $keyword->Load($id); - my ($val, $msg) = $keyword->SetDisabled(1); - push (@Actions, $msg); - - - } - elsif ($arg =~ /^Enable-(\d*)$/) { - my $id = $1; - my $keyword = new RT::Keyword($session{'CurrentUser'}); - $keyword->Load($id); - my ($val, $msg) = $keyword->SetDisabled(0); - push (@Actions, $msg); - } - elsif ($arg =~ /^KeyName-(\d*)$/) { - my $id = $1; - my $keyword = new RT::Keyword ($session{'CurrentUser'}); - $keyword->Load($id); - if ($keyword->Name() ne $ARGS{"$arg"}) { - my ($val, $msg) = $keyword->SetName($ARGS{"$arg"}); - push (@Actions, $msg); - } - if (($ARGS{"KeyParent-$id"}) && - ($keyword->Parent ne $ARGS{"KeyParent-$id"})) { - my ($val, $msg) = $keyword->SetParent($ARGS{"KeyParent-$id"}); - push (@Actions, $msg); - } - } -} - - -my $Root = new RT::Keyword($session{'CurrentUser'}); -my $Keywords; -#If we have a root load it. -if ($RootId != 0) { - $Root->Load($RootId); - $Keywords = $Root->Children(); - -} -else { - $Keywords = new RT::Keywords($session{'CurrentUser'}); - $Keywords->LimitToParent(0); -} - -if ($ShowDisabled) { - $Keywords->{'find_disabled_rows'} = 1; -} - - - - - -<%ARGS> -$RootId => 0 -$Edit => undef -$ShowDisabled => 0 - -- cgit v1.2.1