summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-cust_main-status.html
blob: 6700d7ed92a3aee5d59cf59606cde4cb5df06ee7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<% include ('tr-td-label.html', @_ ) %>

  <TD <% $style %>>

    <% include( '/elements/select-cust_main-status.html', 
                  'curr_value' => $curr_value,
                  %opt
              )
    %>

  </TD>

</TR>

<%init>

my %opt = @_;

#my $onchange = $opt{'onchange'}
#                 ? 'onChange="'. $opt{'onchange'}. '(this)"'
#                 : '';

my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';

$opt{'statuses'} ||= [ FS::cust_main->statuses() ]; # { disabled=>'' } )

my $curr_value = $opt{'curr_value'} || $opt{'value'};

</%init>