X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main%2Fcontact.html;h=51c0960caf0f060fe88d39f074186852a6b505cc;hb=7aef2e455fe8a4722036f231ee8609ac63b2a9c9;hp=99bc558c3a65ab4e3a560275f73539d27342caf1;hpb=82de9040b2d99c05060be6396bab8bd74db96f6c;p=freeside.git
diff --git a/httemplate/edit/cust_main/contact.html b/httemplate/edit/cust_main/contact.html
index 99bc558c3..51c0960ca 100644
--- a/httemplate/edit/cust_main/contact.html
+++ b/httemplate/edit/cust_main/contact.html
@@ -1,14 +1,14 @@
<% &ntable("#cccccc") %>
- <%$r%>Contact name (last, first) |
-
+ | <%$r%><% mt('Contact name (last, first)') |h %> |
+
<%$style%>> ,
<%$style%>>
|
% if ( $conf->exists('show_ss') && !$pre ) {
- SS# |
+ <% mt('SS#') |h %> |
|
% } elsif ( !$pre ) {
@@ -18,14 +18,26 @@
+% if ( $conf->exists('cust-email-high-visibility') && !$pre ) {
+
+
+ <% $conf->exists('cust_main-require_invoicing_list_email') ? $r : '' %>Email address(es)
+ |
+
+
+ |
+
+% }
+
+% unless ( $conf->exists('cust-edit-alt-field-order') ) {
- Company |
+ <% mt('Company') |h %> |
<%$style%>>
|
-<% include('/elements/location.html',
+<& /elements/location.html,
'prefix' => $pre,
'object' => $cust_main,
'onchange' => $onchange,
@@ -34,8 +46,37 @@
'same_checked' => $opt{'same_checked'},
'geocode' => $opt{'geocode'},
'censustract' => $opt{'censustract'},
- )
-%>
+&>
+
+
+ <% $daytime_label %> |
+
+ <%$style%>>
+ |
+
+
+
+ <% $night_label %> |
+
+ <%$style%>>
+ |
+
+
+
+ <% $mobile_label %> |
+
+ <%$style%>>
+ |
+
+
+
+ <% mt('Fax') |h %> |
+
+ <%$style%>>
+ |
+
+
+% } else {
<% $daytime_label %> |
@@ -52,27 +93,53 @@
- Fax |
+ <% $mobile_label %> |
+
+ <%$style%>>
+ |
+
+
+<& /elements/location.html,
+ 'prefix' => $pre,
+ 'object' => $cust_main,
+ 'onchange' => $onchange,
+ 'disabled' => $disabled,
+ 'style' => \@style,
+ 'same_checked' => $opt{'same_checked'},
+ 'geocode' => $opt{'geocode'},
+ 'censustract' => $opt{'censustract'},
+&>
+
+
+ <% mt('Fax') |h %> |
<%$style%>>
|
+
+ <% mt('Company') |h %> |
+
+ <%$style%>>
+ |
+
+
+% }
+
% if ( $conf->exists('show_stateid') && !$pre ) {
<% $stateid_label %> |
<%$style%>> |
<% $stateid_state_label %> |
- <% include('/elements/select-state.html',
+ | <& /elements/select-state.html,
'state' => $cust_main->stateid_state,
'country' => $cust_main->country,
'prefix' => 'stateid_',
'onchange' => $onchange,
'disabled' => $disabled,
'style' => \@style,
- )
- %>
+ &>
|
% } elsif ( !$pre ) {
@@ -82,11 +149,10 @@
% }
-<%$r%>required fields
+<%$r%><% mt('required fields') |h %>
<%init>
-#my( $cust_main, $pre, $onchange, $disabled, %opt ) = @_;
my %opt = @_;
my $cust_main = $opt{'cust_main'};
my $pre = $opt{'pre'};
@@ -94,7 +160,6 @@ 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;
@@ -123,21 +188,16 @@ if ( $conf->exists('cust_main-require_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 $night_label = FS::Msgcat::_gettext('night') =~/^(night)?$/
- ? 'Night Phone'
- : FS::Msgcat::_gettext('night') || 'Night Phone';
+ ? 'Day Phone'
+ : FS::Msgcat::_gettext('daytime');
+my $night_label = FS::Msgcat::_gettext('night') =~/^(night)?$/
+ ? 'Night Phone'
+ : FS::Msgcat::_gettext('night') || 'Night Phone';
+my $mobile_label = FS::Msgcat::_gettext('mobile') =~/^(mobile)?$/
+ ? 'Mobile Phone'
+ : FS::Msgcat::_gettext('mobile') || 'Mobile Phone';
+
my $stateid_label = FS::Msgcat::_gettext('stateid') =~ /^(stateid)?$/
? 'Driver’s License'
: FS::Msgcat::_gettext('stateid') || 'Driver’s License';
@@ -147,4 +207,6 @@ my $stateid_state_label = FS::Msgcat::_gettext('stateid_state') =~ /^(stateid_st
my $r = qq!* !;
+my @invoicing_list = $cust_main->invoicing_list;
+
%init>