diff options
Diffstat (limited to 'httemplate/elements/tr-select-taxproduct.html')
-rw-r--r-- | httemplate/elements/tr-select-taxproduct.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/httemplate/elements/tr-select-taxproduct.html b/httemplate/elements/tr-select-taxproduct.html new file mode 100644 index 0000000..759d0c01 --- /dev/null +++ b/httemplate/elements/tr-select-taxproduct.html @@ -0,0 +1,18 @@ +% if ( $conf->exists('enable_taxproducts') ) { + <%include('tr-td-label.html', @_) %> + <TD <% $cell_style %>><% include('select-taxproduct.html', @_) %></TD> + </TR> + +% } else { + <INPUT TYPE="hidden" NAME="<% $name %>" VALUE="<% $opt{value} %>"> +% } + +<%init> + +my $conf = new FS::Conf; + +my %opt = @_; +my $cell_style = $opt{cell_style} ? 'STYLE="'. $opt{cell_style}. '"' : ''; +my $name = $opt{element_name} || $opt{field} || 'taxproductnum'; + +</%init> |