summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_main/contact.html
diff options
context:
space:
mode:
authorivan <ivan>2007-12-17 01:00:29 +0000
committerivan <ivan>2007-12-17 01:00:29 +0000
commit530b42f465b0ab31fbb4c2754d0e385b330f3b5f (patch)
tree665fcdb94a895c88d00db926197bf2ab4b98fb69 /httemplate/edit/cust_main/contact.html
parentb8e867851869e8dc53b117f91dd3de10ea56f66b (diff)
add cust_main-require_address2 config, reimplement address2-search config ("Unit #" search in searchbar), visual indication of require_invoicing_list_email, closes: RT#2926
Diffstat (limited to 'httemplate/edit/cust_main/contact.html')
-rw-r--r--httemplate/edit/cust_main/contact.html18
1 files changed, 16 insertions, 2 deletions
diff --git a/httemplate/edit/cust_main/contact.html b/httemplate/edit/cust_main/contact.html
index ac0debd12..fdc518e54 100644
--- a/httemplate/edit/cust_main/contact.html
+++ b/httemplate/edit/cust_main/contact.html
@@ -32,8 +32,16 @@
</TD>
</TR>
+% my $address2_label_style =
+% ( $disabled
+% || ! $conf->exists('cust_main-require_address2')
+% || ( !$pre && !$opt{'same_checked'} )
+% )
+% ? 'visibility:hidden'
+% : '';
+
<TR>
- <TD ALIGN="right">&nbsp;</TD>
+ <TD ALIGN="right"><FONT ID="<% $pre %>address2_required" color="#ff0000" STYLE="<% $address2_label_style %>">*</FONT>&nbsp;<FONT ID="<% $pre %>address2_label" STYLE="<% $address2_label_style %>"><B>Unit&nbsp;#</B></FONT></TD>
<TD COLSPAN=7>
<INPUT TYPE="text" NAME="<%$pre%>address2" VALUE="<% $cust_main->get($pre.'address2') %>" SIZE=70 onChange="<% $onchange %>" <%$disabled%>>
</TD>
@@ -106,7 +114,13 @@
<%init>
-my( $cust_main, $pre, $onchange, $disabled, %opt ) = @_;
+#my( $cust_main, $pre, $onchange, $disabled, %opt ) = @_;
+my %opt = @_;
+my $cust_main = $opt{'cust_main'};
+my $pre = $opt{'pre'};
+my $onchange = $opt{'onchange'};
+my $disabled = $opt{'disabled'};
+
my $conf = new FS::Conf;
foreach (qw(ss stateid)) {