X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-cust_pkg-status.html;h=6cc29d0aa98d77668b2e7cf343c44d002808b528;hp=22ee146cd46b95ac6270bd48f1621ca6ac38ba44;hb=HEAD;hpb=3ce7691203a7737406bf2d4442f7fd84b81f847e diff --git a/httemplate/elements/tr-select-cust_pkg-status.html b/httemplate/elements/tr-select-cust_pkg-status.html index 22ee146cd..6cc29d0aa 100644 --- a/httemplate/elements/tr-select-cust_pkg-status.html +++ b/httemplate/elements/tr-select-cust_pkg-status.html @@ -1,14 +1,29 @@ -% -% my( $status, %opt ) = @_; -% -% $opt{'statuses'} ||= [ FS::cust_pkg->statuses() ]; # { disabled=>'' } ) -% -% - - - - <% $opt{'label'} || 'Status' %> - - <% include( '/elements/select-cust_pkg-status.html', $status, %opt ) %> +<% include ('tr-td-label.html', 'label' => 'Status', @_ ) %> + + > + + <% include( '/elements/select-cust_pkg-status.html', + 'curr_value' => $curr_value, + %opt + ) + %> + + + +<%init> + +my %opt = @_; + +#my $onchange = $opt{'onchange'} +# ? 'onChange="'. $opt{'onchange'}. '(this)"' +# : ''; + +my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : ''; + +$opt{'statuses'} ||= [ FS::cust_pkg->statuses() ]; # { disabled=>'' } ) + +my $curr_value = $opt{'curr_value'} || $opt{'value'}; + +