X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fcontacts.html;h=0b754d097070746d436c5217ee5dfb01f98d1e6b;hb=170aa1e8078280e7c03a6ebfc67280de66fa1b9d;hp=20770e45b8c694406719e12491802f2a37e30d34;hpb=f144c3a14169d99fd93f265da690d9ce38dbae68;p=freeside.git diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html index 20770e45b..0b754d097 100644 --- a/httemplate/view/cust_main/contacts.html +++ b/httemplate/view/cust_main/contacts.html @@ -1,16 +1,16 @@ % my %which = ( -% '' => 'Billing', -% 'ship_' => 'Service', +% '' => mt('Billing'), +% 'ship_' => mt('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# @@ -18,70 +18,65 @@ % } - 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') -% # && ( ( !$which && !$cust_main->has_ship_address ) -% # || ( $which && $cust_main->has_ship_address ) -% # ) -% && ! ( $which xor $cust_main->has_ship_address ) +% && ! ( $pre xor $cust_main->has_ship_address ) % ) -% ? 'Unit #' -% : ' '; +% ? mt('Unit #') +% : ' '; <% $address2_label %> - <% $cust_main->get("${pre}address2") %> + <% $cust_main->get("${pre}address2") |h %> % } - City - <% $cust_main->get("${pre}city") %> + <% mt('City') |h %> + <% $cust_main->get("${pre}city") |h %> % if ( $cust_main->get("${pre}county") ) { - County - <% $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") || ' ' %> @@ -99,7 +94,7 @@
% } % } - +<& contacts_new.html, $cust_main &> <%once> my $daytime_label = FS::Msgcat::_gettext('daytime') =~ /^(daytime)?$/