X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fcontacts.html;h=48371550b599413359846aff7e9adb3adbcdef1a;hb=6b12c14cc10503d6b0783e8ef71fe44d9a9b37b6;hp=456d117a64289b0ee8063f74c7426b2c2e0145f0;hpb=673b9a458d9138523026963df6fa3b4683e09bae;p=freeside.git
diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html
index 456d117a6..48371550b 100644
--- a/httemplate/view/cust_main/contacts.html
+++ b/httemplate/view/cust_main/contacts.html
@@ -33,13 +33,13 @@ Billing address
City |
<%= $cust_main->city %> |
State |
- <%= $cust_main->state %> |
+ <%= state_label($cust_main->state, $cust_main->country) %> |
Zip |
<%= $cust_main->zip %> |
Country |
- <%= $cust_main->country %> |
+ <%= code2country($cust_main->country) %> |
<%
my $daytime_label = FS::Msgcat::_gettext('daytime') =~ /^(daytime)?$/
@@ -51,14 +51,22 @@ Billing address
%>
<%= $daytime_label %> |
-
- <%= $cust_main->daytime || ' ' %>
+ |
+ <%= include('/elements/phonenumber.html',
+ $cust_main->daytime,
+ 'callable'=>1
+ )
+ %>
|
<%= $night_label %> |
-
- <%= $cust_main->night || ' ' %>
+ |
+ <%= include('/elements/phonenumber.html',
+ $cust_main->night,
+ 'callable'=>1
+ )
+ %>
|
@@ -106,18 +114,26 @@ Service address
Country |
- <%= $cust_main->get("${pre}country") %> |
+ <%= code2country( $cust_main->get("${pre}country") ) %> |
<%= $daytime_label %> |
- <%= $cust_main->get("${pre}daytime") || ' ' %>
+ <%= include('/elements/phonenumber.html',
+ $cust_main->get("${pre}daytime"),
+ 'callable'=>1
+ )
+ %>
|
<%= $night_label %> |
- <%= $cust_main->get("${pre}night") || ' ' %>
+ <%= include('/elements/phonenumber.html',
+ $cust_main->get("${pre}night"),
+ 'callable'=>1
+ )
+ %>
|