summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2008-06-18 05:18:25 +0000
committerivan <ivan>2008-06-18 05:18:25 +0000
commitc2fd73cb8c3887bea9094e90f145bd4f17aa1916 (patch)
tree493e044e3d04b8270301308381da84bf755f20bf
parentab61533f4d0e3ad8aa7f728eec0821ed5053b5ac (diff)
somehow missed tr-select-cust_main-status.html on _1_7_BRANCH
-rw-r--r--httemplate/elements/tr-select-cust_main-status.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/httemplate/elements/tr-select-cust_main-status.html b/httemplate/elements/tr-select-cust_main-status.html
new file mode 100644
index 000000000..6700d7ed9
--- /dev/null
+++ b/httemplate/elements/tr-select-cust_main-status.html
@@ -0,0 +1,29 @@
+<% include ('tr-td-label.html', @_ ) %>
+
+ <TD <% $style %>>
+
+ <% include( '/elements/select-cust_main-status.html',
+ 'curr_value' => $curr_value,
+ %opt
+ )
+ %>
+
+ </TD>
+
+</TR>
+
+<%init>
+
+my %opt = @_;
+
+#my $onchange = $opt{'onchange'}
+# ? 'onChange="'. $opt{'onchange'}. '(this)"'
+# : '';
+
+my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';
+
+$opt{'statuses'} ||= [ FS::cust_main->statuses() ]; # { disabled=>'' } )
+
+my $curr_value = $opt{'curr_value'} || $opt{'value'};
+
+</%init>