summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-taxproduct.html
diff options
context:
space:
mode:
authorjeff <jeff>2008-08-28 07:38:40 +0000
committerjeff <jeff>2008-08-28 07:38:40 +0000
commit669bd6b315633c99ac61441198c2c4e45401c36b (patch)
treeaf72b9ad7bf116b147700f63f5b2895b0c9c9e5b /httemplate/elements/tr-select-taxproduct.html
parent2c37cd91ea7951b70ea5d420e989128d78ce0a80 (diff)
multiple usage classes checkpoint
Diffstat (limited to 'httemplate/elements/tr-select-taxproduct.html')
-rw-r--r--httemplate/elements/tr-select-taxproduct.html18
1 files changed, 7 insertions, 11 deletions
diff --git a/httemplate/elements/tr-select-taxproduct.html b/httemplate/elements/tr-select-taxproduct.html
index f9f192a28..951222475 100644
--- a/httemplate/elements/tr-select-taxproduct.html
+++ b/httemplate/elements/tr-select-taxproduct.html
@@ -1,22 +1,18 @@
% if ( $conf->exists('enable_taxproducts') ) {
-
- <TR>
- <TD COLSPAN="2">
- <% include('select-taxproduct.html', @_) %>
- </TD>
- </TR>
+ <%include('tr-td-label.html', @_) %>
+ <TD <% $cell_style %>><% include('select-taxproduct.html', @_) %></TD>
+ </TR>
% } else {
-
- <INPUT TYPE="hidden" NAME="taxproductnum" VALUE="<% $opt{taxproductnum} %>">
- <INPUT TYPE="hidden" NAME="tax_override" VALUE="<% $opt{tax_override} %>">
-
+ <INPUT TYPE="hidden" NAME="<% $name %>" VALUE="<% $opt{value} %>">
% }
<%init>
-my $conf = new FS::Conf;
+my $conf = new FS::conf;
my %opt = @_;
+my $cell_style = $opt{cell_style} ? 'STYLE="'. $opt{cell_style}. '"' : '';
+my $name = $opt{name} || 'taxproductnum';
</%init>