diff options
author | ivan <ivan> | 2010-01-03 06:42:05 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-01-03 06:42:05 +0000 |
commit | 5d0122106ded20db23f3c56be74413131eb4e286 (patch) | |
tree | d373a604692b05d083b6a9a6862b296443a55412 /rt/html/Ticket | |
parent | efe2a7b5bf12564bed66c1c713f445effe3513a3 (diff) |
moved to new location in RT 3.8
Diffstat (limited to 'rt/html/Ticket')
-rw-r--r-- | rt/html/Ticket/Elements/AddCustomers | 52 | ||||
-rw-r--r-- | rt/html/Ticket/Elements/EditCustomers | 63 | ||||
-rw-r--r-- | rt/html/Ticket/Elements/ShowCustomers | 38 |
3 files changed, 0 insertions, 153 deletions
diff --git a/rt/html/Ticket/Elements/AddCustomers b/rt/html/Ticket/Elements/AddCustomers deleted file mode 100644 index e04c07702..000000000 --- a/rt/html/Ticket/Elements/AddCustomers +++ /dev/null @@ -1,52 +0,0 @@ -%# Copyright (c) 2004 Ivan Kohler <ivan-rt@420.am> -%# 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. -<BR> -<%$msg%><br> - -% if (@Customers) { - -<br><i>(Check box to link)<i> -<table> -% foreach my $customer (@Customers) { -<tr> - <td> - <input type="checkbox" name="Ticket-AddCustomer-<% $customer->{'custnum'} %>" VALUE="1" <% scalar(@Customers) == 1 ? 'CHECKED' : '' %>> - <A HREF="<%$freeside_url%>/view/cust_main.cgi?<% $customer->{'custnum'} %>"><% &RT::URI::freeside::small_custview($customer->{'custnum'}, &RT::URI::freeside::FreesideGetConfig('countrydefault'), 1) |n %> - </td> -</tr> -% } -</table> - -% } - -<%INIT> -my ($msg); - -my $freeside_url = &RT::URI::freeside::FreesideURL(); - -my @Customers = (); -if ( $CustomerString ) { - @Customers = &RT::URI::freeside::smart_search( 'search' => $CustomerString ); -} - -my @Services = (); -if ($ServiceString) { - @Services = (); #service_search(); -} - -</%INIT> - -<%ARGS> -$CustomerString => undef -$ServiceString => undef -</%ARGS> diff --git a/rt/html/Ticket/Elements/EditCustomers b/rt/html/Ticket/Elements/EditCustomers deleted file mode 100644 index 0ba6e447b..000000000 --- a/rt/html/Ticket/Elements/EditCustomers +++ /dev/null @@ -1,63 +0,0 @@ -%# Copyright (c) 2004 Ivan Kohler <ivan-rt@420.am> -%# 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. -<TABLE width=100%> - <TR> - <TD VALIGN=TOP WIDTH=50%> - <h3><&|/l&>Current Customers</&></h3> - -<table> - <tr> - <td><i><&|/l&>(Check box to disassociate)</&></i></td> - </tr> - <tr> - <td class="value"> -% foreach my $link ( @{ $Ticket->Customers->ItemsArrayRef } ) { - - <INPUT TYPE=CHECKBOX NAME="DeleteLink--<%$link->Type%>-<%$link->Target%>"> -%# <& ShowLink, URI => $link->TargetURI &><br> - <A HREF="<% $link->TargetURI->Resolver->HREF %>"><% $link->TargetURI->Resolver->AsStringLong |n %></A> - <BR> -% } - </td> - </tr> -</table> - -</TD> - -<TD VALIGN=TOP> -<h3><&|/l&>New Customer Links</&></h3> -<&|/l&>Find customer</&><BR> -<input name="CustomerString"> -<input type=submit name="OnlySearchForCustomers" value="<&|/l&>Go!</&>"> -<br><i>cust #, name, company or phone</i> -<BR> -%#<BR> -%#<&|/l&>Find service</&><BR> -%#<input name="ServiceString"> -%#<input type=submit name="OnlySearchForServices" value="<&|/l&>Go!</&>"> -%#<br><i>username, username@domain, domain, or IP address</i> -%#<BR> - -<& AddCustomers, Ticket => $Ticket, - CustomerString => $CustomerString, - ServiceString => $ServiceString, &> - -</TD> -</TR> -</TABLE> - -<%ARGS> -$CustomerString => undef -$ServiceString => undef -$Ticket => undef -</%ARGS> diff --git a/rt/html/Ticket/Elements/ShowCustomers b/rt/html/Ticket/Elements/ShowCustomers deleted file mode 100644 index 3acf92dd4..000000000 --- a/rt/html/Ticket/Elements/ShowCustomers +++ /dev/null @@ -1,38 +0,0 @@ -%# Copyright (c) 2004 Ivan Kohler <ivan-rt@420.am> -%# -%# 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. -<table> -% my $cust = 0; -% foreach my $custResolver ( map { $_->TargetURI->Resolver } -% @{ $Ticket->Customers->ItemsArrayRef } -% ) -% { -% $cust++; -% my $cust_main = ''; - <tr> - <td class="value"> - <A HREF="<% $custResolver->HREF %>"><% $custResolver->AsStringLong |n %></A> - </td> - </tr> -% } -% unless ( $cust ) { - <tr> - <td class="labeltop"> - <i>(none)<i> - </td> - </tr> - -% } -</table> -<%ARGS> -$Ticket => undef -</%ARGS> - |