From f8ecdcae961003312ce3c65113c87a9a2565fdd2 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 3 Jan 2010 08:07:15 +0000 Subject: port skinning, customer display/edit from RT 3.6 integration to RT 3.8 integration --- rt/html/Elements/AddCustomers | 59 ------------------------------- rt/html/Elements/EditCustomers | 63 ---------------------------------- rt/html/Elements/FreesideInvoiceSearch | 20 ----------- rt/html/Elements/FreesideNewCust | 3 -- rt/html/Elements/FreesideSearch | 13 ------- rt/html/Elements/FreesideSvcSearch | 13 ------- rt/html/Ticket/ModifyCustomers.html | 49 -------------------------- 7 files changed, 220 deletions(-) delete mode 100644 rt/html/Elements/AddCustomers delete mode 100644 rt/html/Elements/EditCustomers delete mode 100644 rt/html/Elements/FreesideInvoiceSearch delete mode 100644 rt/html/Elements/FreesideNewCust delete mode 100644 rt/html/Elements/FreesideSearch delete mode 100644 rt/html/Elements/FreesideSvcSearch delete mode 100644 rt/html/Ticket/ModifyCustomers.html (limited to 'rt/html') diff --git a/rt/html/Elements/AddCustomers b/rt/html/Elements/AddCustomers deleted file mode 100644 index aaf8ca8ba..000000000 --- a/rt/html/Elements/AddCustomers +++ /dev/null @@ -1,59 +0,0 @@ -%# Copyright (c) 2004 Ivan Kohler -%# Copyright (c) 2008 Freeside Internet Services, Inc. -%# -%# This work is made available to you under the terms of Version 2 of -%# the GNU General Public License. A copy of that license should have -%# been provided with this software, but in any event can be snarfed -%# from www.gnu.org. -%# -%# This work is distributed in the hope that it will be useful, but -%# WITHOUT ANY WARRANTY; without even the implied warranty of -%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -%# General Public License for more details. -
-<%$msg%>
- -% if (@Customers) { - -
(Check box to link) - -% foreach my $customer (@Customers) { - - - -% } -
- > - <% &RT::URI::freeside::small_custview($customer->{'custnum'}, &RT::URI::freeside::FreesideGetConfig('countrydefault'), 1) |n %> -
- -% } - -<%INIT> -my ($msg); - -my $freeside_url = &RT::URI::freeside::FreesideURL(); - -warn "/Elements/AddCustomers called with CustomerString $CustomerString\n" - if $Debug; - -my @Customers = (); -if ( $CustomerString ) { - @Customers = &RT::URI::freeside::smart_search( 'search' => $CustomerString ); -} - -my @Services = (); -if ($ServiceString) { - @Services = (); #service_search(); -} - -warn "/Elements/AddCustomers displaying ". scalar(@Customers). " customers\n" - if $Debug; - - - -<%ARGS> -$CustomerString => undef -$ServiceString => undef -$Debug => 0 - diff --git a/rt/html/Elements/EditCustomers b/rt/html/Elements/EditCustomers deleted file mode 100644 index 68efb5f40..000000000 --- a/rt/html/Elements/EditCustomers +++ /dev/null @@ -1,63 +0,0 @@ -%# Copyright (c) 2004 Ivan Kohler -%# Copyright (c) 2008 Freeside Internet Services, Inc. -%# -%# This work is made available to you under the terms of Version 2 of -%# the GNU General Public License. A copy of that license should have -%# been provided with this software, but in any event can be snarfed -%# from www.gnu.org. -%# -%# This work is distributed in the hope that it will be useful, but -%# WITHOUT ANY WARRANTY; without even the implied warranty of -%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -%# General Public License for more details. - - - - - - -
-

<&|/l&>Current Customers

- - - - - - - - -
<&|/l&>(Check box to disassociate)
-% foreach my $link ( @{ $Object->Customers->ItemsArrayRef } ) { - - -%# <& ShowLink, URI => $link->TargetURI &>
- <% $link->TargetURI->Resolver->AsStringLong |n %> -
-% } -
- -
-

<&|/l&>New Customer Links

-<&|/l&>Find customer
- - -
cust #, name, company or phone -
-%#
-%#<&|/l&>Find service
-%# -%# -%#
username, username@domain, domain, or IP address -%#
- -<& AddCustomers, Object => $Object, - CustomerString => $CustomerString, - ServiceString => $ServiceString, &> - -
- -<%ARGS> -$CustomerString => undef -$ServiceString => undef -$Object => undef - diff --git a/rt/html/Elements/FreesideInvoiceSearch b/rt/html/Elements/FreesideInvoiceSearch deleted file mode 100644 index 3842b2ff9..000000000 --- a/rt/html/Elements/FreesideInvoiceSearch +++ /dev/null @@ -1,20 +0,0 @@ -% if ( $FS::CurrentUser::CurrentUser->access_right('View invoices') ) { - -
- - - -% if ( $FS::CurrentUser::CurrentUser->access_right('List invoices') ) { - Advanced -% } -
- - -
- -% } diff --git a/rt/html/Elements/FreesideNewCust b/rt/html/Elements/FreesideNewCust deleted file mode 100644 index f60e99559..000000000 --- a/rt/html/Elements/FreesideNewCust +++ /dev/null @@ -1,3 +0,0 @@ -
-  -
diff --git a/rt/html/Elements/FreesideSearch b/rt/html/Elements/FreesideSearch deleted file mode 100644 index 8e609bb4b..000000000 --- a/rt/html/Elements/FreesideSearch +++ /dev/null @@ -1,13 +0,0 @@ -% if ( $FS::CurrentUser::CurrentUser->access_right('List customers') ) { -
- -
-Advanced - -
-% } diff --git a/rt/html/Elements/FreesideSvcSearch b/rt/html/Elements/FreesideSvcSearch deleted file mode 100644 index d68122da5..000000000 --- a/rt/html/Elements/FreesideSvcSearch +++ /dev/null @@ -1,13 +0,0 @@ -% if ( $FS::CurrentUser::CurrentUser->access_right('View customer services') ) { -
- -
- Advanced - -
-% } diff --git a/rt/html/Ticket/ModifyCustomers.html b/rt/html/Ticket/ModifyCustomers.html deleted file mode 100644 index 72d103b23..000000000 --- a/rt/html/Ticket/ModifyCustomers.html +++ /dev/null @@ -1,49 +0,0 @@ -%# Copyright (c) 2004 Ivan Kohler -%# -%# This work is made available to you under the terms of Version 2 of -%# the GNU General Public License. A copy of that license should have -%# been provided with this software, but in any event can be snarfed -%# from www.gnu.org. -%# -%# This work is distributed in the hope that it will be useful, but -%# WITHOUT ANY WARRANTY; without even the implied warranty of -%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -%# General Public License for more details. -<& /Elements/Header, Title => loc("Customers for ticket #[_1]", $Ticket->Id) &> -<& /Ticket/Elements/Tabs, - Ticket => $Ticket, - current_tab => "Ticket/ModifyCustomers.html?id=".$Ticket->Id, - Title => loc("Customers for ticket #[_1]", $Ticket->Id) &> - -<& /Elements/ListActions, actions => \@results &> - -
- - -<& /Elements/TitleBoxStart, title => loc('Edit Customer Links'), color => "#7f007b"&> -<& Elements/EditCustomers, Ticket => $Ticket, CustomerString => $CustomerString, ServiceString => $ServiceString &> -<& /Elements/TitleBoxEnd &> -<& /Elements/Submit, color => "#7f007b", Label => loc('Save Changes') &> -
- - -<%INIT> - -my @results = (); -my $Ticket = LoadTicket($id); - -# if we're trying to search for customers/services and nothing else -unless ( $OnlySearchForCustomers || $OnlySearchForServices) { - @results = ProcessTicketCustomers( TicketObj => $Ticket, ARGSRef => \%ARGS); -} - - - - -<%ARGS> -$OnlySearchForCustomers => undef -$OnlySearchForServices => undef -$CustomerString => undef -$ServiceString => undef -$id => undef - -- cgit v1.2.1