projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
optional better visibility for invoicing email field, RT12944
[freeside.git]
/
httemplate
/
edit
/
cust_main
/
contact.html
diff --git
a/httemplate/edit/cust_main/contact.html
b/httemplate/edit/cust_main/contact.html
index
01d024c
..
a53c789
100644
(file)
--- a/
httemplate/edit/cust_main/contact.html
+++ b/
httemplate/edit/cust_main/contact.html
@@
-1,14
+1,14
@@
<% &ntable("#cccccc") %>
<TR>
<% &ntable("#cccccc") %>
<TR>
- <TH ALIGN="right"><%$r%>
Contact name<BR>(last, first)
</TH>
+ <TH ALIGN="right"><%$r%>
<% mt('Contact name (last, first)') |h %>
</TH>
<TD COLSPAN=7>
<INPUT TYPE="text" NAME="<%$pre%>last" VALUE="<% $cust_main->get($pre.'last') |h %>" onChange="<% $onchange %>" <%$disabled%> <%$style%>> ,
<INPUT TYPE="text" NAME="<%$pre%>first" VALUE="<% $cust_main->get($pre.'first') |h %>" onChange="<% $onchange %>" <%$disabled%> <%$style%>>
</TD>
% if ( $conf->exists('show_ss') && !$pre ) {
<TD COLSPAN=7>
<INPUT TYPE="text" NAME="<%$pre%>last" VALUE="<% $cust_main->get($pre.'last') |h %>" onChange="<% $onchange %>" <%$disabled%> <%$style%>> ,
<INPUT TYPE="text" NAME="<%$pre%>first" VALUE="<% $cust_main->get($pre.'first') |h %>" onChange="<% $onchange %>" <%$disabled%> <%$style%>>
</TD>
% if ( $conf->exists('show_ss') && !$pre ) {
- <TD ALIGN="right">
SS#
</TD>
+ <TD ALIGN="right">
<% mt('SS#') |h %>
</TD>
<TD><INPUT TYPE="text" NAME="ss" VALUE="<% $opt{ss} %>" SIZE=11></TD>
% } elsif ( !$pre ) {
<TD><INPUT TYPE="text" NAME="ss" VALUE="<% $opt{ss} %>" SIZE=11></TD>
% } elsif ( !$pre ) {
@@
-18,14
+18,25
@@
</TR>
</TR>
+% if ( $conf->exists('cust-email-high-visibility') && !$pre ) {
+ <TR>
+ <TD ALIGN="right" WIDTH="200">
+ <% $conf->exists('cust_main-require_invoicing_list_email') ? $r : '' %>Email address(es)
+ </TD>
+ <TD bgcolor="#FFFF00">
+ <INPUT TYPE="text" NAME="invoicing_list" VALUE="<% join(', ', grep { $_ !~ /^(POST|FAX)$/ } @invoicing_list ) %>">
+ </TD>
+ </TR>
+% }
+
<TR>
<TR>
- <TD ALIGN="right">
Company
</TD>
+ <TD ALIGN="right">
<% mt('Company') |h %>
</TD>
<TD COLSPAN=7>
<INPUT TYPE="text" NAME="<%$pre%>company" VALUE="<% $cust_main->get($pre.'company') |h %>" SIZE=70 onChange="<% $onchange %>" <%$disabled%> <%$style%>>
</TD>
</TR>
<TD COLSPAN=7>
<INPUT TYPE="text" NAME="<%$pre%>company" VALUE="<% $cust_main->get($pre.'company') |h %>" SIZE=70 onChange="<% $onchange %>" <%$disabled%> <%$style%>>
</TD>
</TR>
-<
% include('/elements/location.html'
,
+<
& /elements/location.html
,
'prefix' => $pre,
'object' => $cust_main,
'onchange' => $onchange,
'prefix' => $pre,
'object' => $cust_main,
'onchange' => $onchange,
@@
-34,8
+45,7
@@
'same_checked' => $opt{'same_checked'},
'geocode' => $opt{'geocode'},
'censustract' => $opt{'censustract'},
'same_checked' => $opt{'same_checked'},
'geocode' => $opt{'geocode'},
'censustract' => $opt{'censustract'},
- )
-%>
+&>
<TR>
<TD ALIGN="right"><% $daytime_label %></TD>
<TR>
<TD ALIGN="right"><% $daytime_label %></TD>
@@
-52,7
+62,7
@@
</TR>
<TR>
</TR>
<TR>
- <TD ALIGN="right">
Fax
</TD>
+ <TD ALIGN="right">
<% mt('Fax') |h %>
</TD>
<TD COLSPAN=5>
<INPUT TYPE="text" NAME="<%$pre%>fax" VALUE="<% $cust_main->get($pre.'fax') %>" SIZE=12 onChange="<% $onchange %>" <%$disabled%> <%$style%>>
</TD>
<TD COLSPAN=5>
<INPUT TYPE="text" NAME="<%$pre%>fax" VALUE="<% $cust_main->get($pre.'fax') %>" SIZE=12 onChange="<% $onchange %>" <%$disabled%> <%$style%>>
</TD>
@@
-64,15
+74,14
@@
<TD ALIGN="right"><% $stateid_label %></TD>
<TD><INPUT TYPE="text" NAME="stateid" VALUE="<% $opt{stateid} %>" SIZE=12 onChange="<% $onchange %>" <%$disabled%> <%$style%>></TD>
<TD ALIGN="right"><% $stateid_state_label %></TD>
<TD ALIGN="right"><% $stateid_label %></TD>
<TD><INPUT TYPE="text" NAME="stateid" VALUE="<% $opt{stateid} %>" SIZE=12 onChange="<% $onchange %>" <%$disabled%> <%$style%>></TD>
<TD ALIGN="right"><% $stateid_state_label %></TD>
- <TD><
% include('/elements/select-state.html'
,
+ <TD><
& /elements/select-state.html
,
'state' => $cust_main->stateid_state,
'country' => $cust_main->country,
'prefix' => 'stateid_',
'onchange' => $onchange,
'disabled' => $disabled,
'style' => \@style,
'state' => $cust_main->stateid_state,
'country' => $cust_main->country,
'prefix' => 'stateid_',
'onchange' => $onchange,
'disabled' => $disabled,
'style' => \@style,
- )
- %>
+ &>
</TD>
</TR>
% } elsif ( !$pre ) {
</TD>
</TR>
% } elsif ( !$pre ) {
@@
-82,11
+91,10
@@
% }
</TABLE>
% }
</TABLE>
-<%$r%>
required fields
<BR>
+<%$r%>
<% mt('required fields') |h %>
<BR>
<%init>
<%init>
-#my( $cust_main, $pre, $onchange, $disabled, %opt ) = @_;
my %opt = @_;
my $cust_main = $opt{'cust_main'};
my $pre = $opt{'pre'};
my %opt = @_;
my $cust_main = $opt{'cust_main'};
my $pre = $opt{'pre'};
@@
-94,7
+102,6
@@
my $onchange = $opt{'onchange'};
my $disabled = $opt{'disabled'};
my @style = ( $opt{'style'} ? @{ $opt{'style'} } : () );
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;
my $style = scalar(@style) ? 'STYLE="'. join(';', @style). '"' : '';
my $conf = new FS::Conf;
@@
-123,15
+130,6
@@
if ( $conf->exists('cust_main-require_censustract') ) {
$opt{censustract} ||= $cust_main->censustract;
}
$opt{censustract} ||= $cust_main->censustract;
}
-#my($county_html, $state_html, $country_html) =
-# FS::cust_main_county::regionselector( $cust_main->get($pre.'county'),
-# $cust_main->get($pre.'state'),
-# $cust_main->get($pre.'country'),
-# $pre,
-# $onchange,
-# $disabled,
-# );
-
my $daytime_label = FS::Msgcat::_gettext('daytime') =~ /^(daytime)?$/
? 'Day Phone'
: FS::Msgcat::_gettext('daytime');
my $daytime_label = FS::Msgcat::_gettext('daytime') =~ /^(daytime)?$/
? 'Day Phone'
: FS::Msgcat::_gettext('daytime');
@@
-147,4
+145,6
@@
my $stateid_state_label = FS::Msgcat::_gettext('stateid_state') =~ /^(stateid_st
my $r = qq!<font color="#ff0000">*</font> !;
my $r = qq!<font color="#ff0000">*</font> !;
+my @invoicing_list = $cust_main->invoicing_list;
+
</%init>
</%init>