summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-taxproduct.html
blob: 759d0c01c03d6a17a4f19ade81362417f5ed70f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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>