96207f4ccd23683a3963a9a85fe2dc4eb0bcb4b7
[freeside.git] / rt / share / html / Ticket / Elements / EditCustomers
1 %# Copyright (c) 2004 Ivan Kohler <ivan-rt@420.am>
2 %# Copyright (c) 2008 Freeside Internet Services, Inc.
3 %# 
4 %# This work is made available to you under the terms of Version 2 of
5 %# the GNU General Public License. A copy of that license should have
6 %# been provided with this software, but in any event can be snarfed
7 %# from www.gnu.org.
8 %# 
9 %# This work is distributed in the hope that it will be useful, but
10 %# WITHOUT ANY WARRANTY; without even the implied warranty of
11 %# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 %# General Public License for more details.
13 <TABLE width=100%>
14   <TR>
15     <TD VALIGN=TOP WIDTH=50% ROWSPAN=3>
16       <h3><&|/l&>Current Customers</&></h3>
17
18 <table>
19   <tr>
20     <td><i><&|/l&>(Check box to disassociate)</&></i></td>
21   </tr>
22   <tr>
23     <td class="value">
24 % foreach my $link ( @{ $Ticket->Customers->ItemsArrayRef } ) {
25
26       <INPUT TYPE=CHECKBOX NAME="DeleteLink--<%$link->Type%>-<%$link->Target%>">
27 %#        <& ShowLink, URI => $link->TargetURI &><br>
28         <% $link->TargetURI->Resolver->AsStringLong |n %></A>
29       <BR><BR>
30 % }
31     </td>
32   </tr>
33 </table>
34
35 </TD>
36
37 <TD VALIGN=TOP WIDTH=50% COLSPAN=2>
38 <h3><&|/l&>New Customer Links</&></h3>
39 </TD>
40 </TR>
41 <TR VALIGN="top">
42 %# rowspan
43   <td width=25%>
44     <&|/l&>Find customer</&><br>
45     <input name="CustomerString">
46     <input type=submit name="OnlySearchForCustomers" value="<&|/l&>Go!</&>">
47     <br><i>cust #, name, company or phone</i>
48   </td>
49   <td width=25%>
50     <&|/l&>Find service</&><br>
51     <input name="ServiceString">
52     <input type=submit name="OnlySearchForServices" value="<&|/l&>Go!</&>">
53     <br><i>user, email, ip, mac, phone</i>
54   </td>
55 </TR>
56 <TR>
57 %#rowspan...
58 <TD COLSPAN=2>
59 <& AddCustomers, Ticket         => $Ticket,
60                  CustomerString => $CustomerString,
61                  ServiceString  => $ServiceString &>
62 </TD>
63 </TR>
64 </TABLE>
65       
66 <%ARGS>
67 $CustomerString => undef
68 $ServiceString => undef
69 $Ticket => undef
70 </%ARGS>