summaryrefslogtreecommitdiff
path: root/httemplate/view/svc_dish.cgi
blob: 58da7075a0e8fa6abbe93e4f332a103c8eb92044 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<% include('elements/svc_Common.html',
            'table'        => 'svc_dish',
            'labels'       => \%labels,
            'fields'       => \@fields,
          )
%>
<%init>

my $fields = FS::svc_dish->table_info->{'fields'};
my %labels = map { $_ =>  ( ref($fields->{$_})
                             ? $fields->{$_}{'label'}
                             : $fields->{$_}
                         );
                 } keys %$fields;
my @fields = ('acctnum',
              { field => 'installdate', type => 'date' },
              { field => 'note', 
                value => sub { encode_entities($_[0]->note) } 
              },
              );
</%init>