X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main%2Fcontact.html;h=feb61db8d097e2c3b4b938838d7f73704d720c6d;hb=c676664d00f6b98130b9d0c12b9ca524288725a3;hp=3ccee62e5c159babd2c0cac098fd511c7f5a9fba;hpb=0b94e40c533288be69a4fe60da36a385d31eff7f;p=freeside.git
diff --git a/httemplate/edit/cust_main/contact.html b/httemplate/edit/cust_main/contact.html
index 3ccee62e5..feb61db8d 100644
--- a/httemplate/edit/cust_main/contact.html
+++ b/httemplate/edit/cust_main/contact.html
@@ -3,8 +3,8 @@
<%$r%>Contact name (last, first) |
- > ,
- >
+ <%$style%>> ,
+ <%$style%>>
|
% if ( $conf->exists('show_ss') && !$pre ) {
@@ -21,7 +21,7 @@
Company |
- >
+ <%$style%>>
|
@@ -30,6 +30,7 @@
'object' => $cust_main,
'onchange' => $onchange,
'disabled' => $disabled,
+ 'style' => \@style,
'same_checked' => $opt{'same_checked'},
'geocode' => $opt{'geocode'},
'censustract' => $opt{'censustract'},
@@ -39,21 +40,21 @@
<% $daytime_label %> |
- >
+ <%$style%>>
|
<% $night_label %> |
- >
+ <%$style%>>
|
Fax |
- >
+ <%$style%>>
|
@@ -61,7 +62,7 @@
<% $stateid_label %> |
- > |
+ <%$style%>> |
<% $stateid_state_label %> |
<% include('/elements/select-state.html',
'state' => $cust_main->stateid_state,
@@ -69,6 +70,7 @@
'prefix' => 'stateid_',
'onchange' => $onchange,
'disabled' => $disabled,
+ 'style' => \@style,
)
%>
|
@@ -90,6 +92,10 @@ my $cust_main = $opt{'cust_main'};
my $pre = $opt{'pre'};
my $onchange = $opt{'onchange'};
my $disabled = $opt{'disabled'};
+my @style = ( $opt{'style'} ? @{ $opt{'style'} } : () );
+
+#push @style, 'background-color: #dddddd' if $disabled;
+my $style = scalar(@style) ? 'STYLE="'. join(';', @style). '"' : '';
my $conf = new FS::Conf;