communigate (phase 2): rules: adding conditions and actions to rule edit. RT#7514
[freeside.git] / httemplate / elements / input-text.html
index 9db0643..fb50a50 100644 (file)
@@ -31,13 +31,17 @@ $opt{'disabled'} = &{ $opt{'disabled'} }( \%opt )
 $opt{'disabled'} = 'DISABLED'
   if $opt{'disabled'} && $opt{'disabled'} !~ /disabled/i; # uuh... yeah?
 
-my @style = ();
+my @style = ref($opt{'style'})
+              ? @{ $opt{'style'} }
+              : $opt{'style'}
+                ? ( $opt{'style'} )
+                : ();
 
 push @style, 'text-align: '. $opt{'text-align'}
   if $opt{'text-align'};
 
 push @style, 'background-color: #dddddd'
-  if $opt{'disabled'};
+  if $opt{'disabled'} && ! $opt{'nodarken_disabled'};
 
 my $style = scalar(@style) ? 'STYLE="'. join(';', @style). '"' : '';