X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select.html;h=cf1b3cc608ab0be1a5964b3626cb32000a867c08;hb=51e2a2439d923d63a5a2321864c69f82272cd362;hp=f9d54f118962570f363febea14f7ab507c0bb29b;hpb=4cacb3fa439b56fc7c9a742b69ec3f6ffd660433;p=freeside.git diff --git a/httemplate/elements/tr-select.html b/httemplate/elements/tr-select.html index f9d54f118..cf1b3cc60 100644 --- a/httemplate/elements/tr-select.html +++ b/httemplate/elements/tr-select.html @@ -1,63 +1,22 @@ -<% include('tr-td-label.html', @_ ) %> +% unless ( $opt{'js_only'} ) { - <% $style %>> + <% include('tr-td-label.html', %opt ) %> - - - - - + <% include('select.html', %opt ) %> +% unless ( $opt{'js_only'} ) { + + +% } <%init> my %opt = @_; -my $onchange = $opt{'onchange'} - ? 'onChange="'. $opt{'onchange'}. '(this)"' - : ''; - -my $labels = $opt{'option_labels'} || $opt{'labels'}; - my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : ''; -my $curr_value = $opt{'curr_value'}; - my $colspan = $opt{'colspan'} ? 'COLSPAN="'.$opt{'colspan'}.'"' : '';