X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fcontacts.html;h=9a55e54880b6f6ef53f57ab947f628f2efcbc4e2;hb=93ec97f7d887bfd8e172f476edd8477546b5d597;hp=8f8a9eb42a9db300aa93b4df3f57a5a525cf45e8;hpb=7861a60dd0b96ebd171e6f77f3a70a6f4aea0344;p=freeside.git
diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html
index 8f8a9eb42..9a55e5488 100644
--- a/httemplate/view/cust_main/contacts.html
+++ b/httemplate/view/cust_main/contacts.html
@@ -1,86 +1,100 @@
% my %which = (
-% '' => 'Billing',
-% 'ship_' => 'Service',
+% '' => emt('Billing'),
+% 'ship_' => emt('Service'),
% );
% foreach my $which ( '', 'ship_' ) {
% my $pre = $cust_main->get("${which}last") ? $which : '';
-<% $which{$which} %> address
+<% $which{$which} %> <% mt('address') |h %>
<% ntable("#cccccc") %>
<% ntable("#cccccc",2) %>
|
- Contact name |
+ <% mt('Contact name') |h %> |
- <% $cust_main->get("${pre}last"). ', '. $cust_main->get("${pre}first") %>
+ <% $cust_main->get("${pre}last"). ', '. $cust_main->get("${pre}first") |h %>
|
% if ( $which eq '' && $conf->exists('show_ss') ) {
- SS# |
- <% $cust_main->ss || ' ' %> |
+ <% mt('SS#') |h %> |
+ <% $cust_main->masked('ss') || ' ' %> |
% }
- Company |
- <% $cust_main->get("${pre}company") %> |
+ <% mt('Company') |h %> |
+ <% $cust_main->get("${pre}company") |h %> |
- Address |
- <% $cust_main->get("${pre}address1") %> |
+ <% mt('Address') |h %> |
+ <% $cust_main->get("${pre}address1") |h %> |
+
% if ( $cust_main->get("${pre}address2") ) {
+% my $address2_label =
+% ( $conf->exists('cust_main-require_address2')
+% && ! ( $pre xor $cust_main->has_ship_address )
+% )
+% ? emt('Unit #')
+% : ' ';
+
+
+ <% $address2_label %> |
+ <% $cust_main->get("${pre}address2") |h %> |
+
-
- |
- <% $cust_main->get("${pre}address2") %> |
-
% }
- City |
- <% $cust_main->get("${pre}city") %> |
-% if ( $cust_main->get("${pre}county" ) ) {
- County |
- <% $cust_main->get->("${pre}county") %> |
+ <% mt('City') |h %> |
+ <% $cust_main->get("${pre}city") |h %> |
+% if ( $cust_main->get("${pre}county") ) {
+ <% mt('County') |h %> |
+ <% $cust_main->get("${pre}county") |h %> |
% }
- State |
- <% state_label( $cust_main->get("${pre}state"), $cust_main->get("${pre}country") ) %> |
- Zip |
+ <% mt('State') |h %> |
+ <% state_label( $cust_main->get("${pre}state"), $cust_main->get("${pre}country") ) |h %> |
+ <% mt('Zip') |h %> |
<% $cust_main->get("${pre}zip") %> |
- Country |
+ <% mt('Country') |h %> |
<% code2country( $cust_main->get("${pre}country") ) %> |
<% $daytime_label %> |
- <% include('/elements/phonenumber.html',
+ <& /elements/phonenumber.html,
$cust_main->get("${pre}daytime"),
'callable'=>1
- )
- %>
+ &>
|
<% $night_label %> |
- <% include('/elements/phonenumber.html',
+ <& /elements/phonenumber.html,
$cust_main->get("${pre}night"),
'callable'=>1
- )
- %>
+ &>
|
- Fax |
+ <% mt('Fax') |h %> |
<% $cust_main->get("${pre}fax") || ' ' %>
|
+% if ( $which eq '' && $conf->exists('show_stateid') ) {
+
+ <% $stateid_label %> |
+ <% $cust_main->masked('stateid') || ' ' %> |
+ <% $stateid_state_label %> |
+ <% $cust_main->stateid_state || ' ' %> |
+
+% }
% if ( $which ne 'ship_' ) {
% }
% }
-
+<& contacts_new.html, $cust_main &>
<%once>
my $daytime_label = FS::Msgcat::_gettext('daytime') =~ /^(daytime)?$/
@@ -89,6 +103,12 @@ my $daytime_label = FS::Msgcat::_gettext('daytime') =~ /^(daytime)?$/
my $night_label = FS::Msgcat::_gettext('night') =~ /^(night)?$/
? 'Night Phone'
: FS::Msgcat::_gettext('night');
+my $stateid_label = FS::Msgcat::_gettext('stateid') =~ /^(stateid)?$/
+ ? 'Driver’s License'
+ : FS::Msgcat::_gettext('stateid');
+my $stateid_state_label = FS::Msgcat::_gettext('stateid_state') =~ /^(stateid_state)?$/
+ ? 'Driver’s License State'
+ : FS::Msgcat::_gettext('stateid_state');
%once>
<%init>