improve display of ticket service links, #17067
[freeside.git] / rt / share / 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 <%init>
13 my %data = $m->comp('Customers', Ticket => $Ticket);
14 </%init>
15 <style>
16 .small_custview {
17   padding-top: 1em;
18 }
19 </style>
20 <table>
21 % foreach my $custnum (@{ $data{custnums} }) {
22 %   my $cust = $data{cust_main}{$custnum};
23   <tr>
24     <td class="value">
25       <% $cust->AsStringLong |n %>
26 %   foreach my $svc ( @{ $data{cust_svc}{$custnum} || [] } ) {
27       <% $svc->AsString |n %>
28       <br>
29 %   }
30     </td>
31   </tr>
32 % }
33
34 % unless ( @{ $data{custnums} } ) {
35   <tr>
36     <td class="labeltop">
37       <i>(none)<i>
38     </td>
39   </tr>
40
41 % }
42 </table>
43 <%ARGS>
44 $Ticket => undef
45 </%ARGS>
46