This commit was generated by cvs2svn to compensate for changes in r4407,
[freeside.git] / rt / html / Ticket / Elements / ShowCustomers
1 %# Copyright (c) 2004 Ivan Kohler <ivan-rt@420.am>
2 %#
3 %# This work is made available to you under the terms of Version 2 of
4 %# the GNU General Public License. A copy of that license should have
5 %# been provided with this software, but in any event can be snarfed
6 %# from www.gnu.org.
7 %# 
8 %# This work is distributed in the hope that it will be useful, but
9 %# WITHOUT ANY WARRANTY; without even the implied warranty of
10 %# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 %# General Public License for more details.
12 <table>
13 % my $cust = 0;
14 % foreach my $customerURI (
15 %   grep { $_->Resolver->{'fstable'} eq 'cust_main' }
16 %   grep { $_->Scheme eq 'freeside' }
17 %    map { $_->TargetURI }
18 %        @{ $Ticket->_Links('Base')->ItemsArrayRef }
19 % ) {
20 %   $cust++;
21 %   my $cust_main = '';
22   <tr>
23     <td class="value">
24       <A HREF="<% $customerURI->Resolver->HREF %>"><% $customerURI->Resolver->AsStringLong |n %></A>
25     </td>
26   </tr>
27 % }
28 % unless ( $cust ) {
29   <tr>
30     <td class="labeltop">
31       <i>(none)<i>
32     </td>
33   </tr>
34
35 % }
36 </table>
37 <%ARGS>
38 $Ticket => undef
39 </%ARGS>
40