From: ivan <ivan>
Date: Wed, 18 Jun 2008 05:18:25 +0000 (+0000)
Subject: somehow missed tr-select-cust_main-status.html on _1_7_BRANCH
X-Git-Tag: freeside_1_7_4rc1~283
X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=c2fd73cb8c3887bea9094e90f145bd4f17aa1916;p=freeside.git

somehow missed tr-select-cust_main-status.html on _1_7_BRANCH
---

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>