no need for FS calendar buttons in RT 4.2
[freeside.git] / rt / share / html / 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%>
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 ( @{ $Object->Customers->ItemsArrayRef } ) {
25
26       <INPUT TYPE=CHECKBOX NAME="DeleteLink--<%$link->Type%>-<%$link->Target%>">
27 %#        <& ShowLink, URI => $link->TargetURI &><br>
28         <A HREF="<% $link->TargetURI->Resolver->HREF %>"><% $link->TargetURI->Resolver->AsStringLong |n %></A>
29       <BR>
30 % }
31     </td>
32   </tr>
33 </table>
34                             
35 </TD>
36
37 <TD VALIGN=TOP>
38 <h3><&|/l&>New Customer Links</&></h3>
39 <&|/l&>Find customer</&><BR>
40 <input name="CustomerString">
41 <input type=submit name="OnlySearchForCustomers" value="<&|/l&>Go!</&>">
42 <br><i>cust #, name, company or phone</i>
43 <BR>
44 %#<BR>
45 %#<&|/l&>Find service</&><BR>
46 %#<input name="ServiceString">
47 %#<input type=submit name="OnlySearchForServices" value="<&|/l&>Go!</&>">
48 %#<br><i>username, username@domain, domain, or IP address</i>
49 %#<BR>
50
51 <& AddCustomers, Object         => $Object,
52                  CustomerString => $CustomerString,
53                  ServiceString  => $ServiceString,  &>
54
55 </TD>
56 </TR>
57 </TABLE>
58       
59 <%ARGS>
60 $CustomerString => undef
61 $ServiceString => undef
62 $Object => undef
63 </%ARGS>