X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fcontacts.html;h=9c2b38f9acb7fb5e60addf0ac56c3d9b69098911;hp=48371550b599413359846aff7e9adb3adbcdef1a;hb=3ce7691203a7737406bf2d4442f7fd84b81f847e;hpb=15e561850b61b10a92a46d8f3e316d53d4970087
diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html
index 48371550b..9c2b38f9a 100644
--- a/httemplate/view/cust_main/contacts.html
+++ b/httemplate/view/cust_main/contacts.html
@@ -1,58 +1,64 @@
-<%
- my( $cust_main ) = @_;
- my $conf = new FS::Conf;
-%>
+%
+% my( $cust_main ) = @_;
+% my $conf = new FS::Conf;
+%
+
Billing address
-<%= ntable("#cccccc") %>
<%= ntable("#cccccc",2) %>
+<% ntable("#cccccc") %> |
<% ntable("#cccccc",2) %>
|
Contact name |
- <%= $cust_main->last. ', '. $cust_main->first %>
+ <% $cust_main->last. ', '. $cust_main->first %>
|
-<% if ( $conf->exists('show_ss') ) { %>
+% if ( $conf->exists('show_ss') ) {
+
SS# |
- <%= $cust_main->ss || ' ' %> |
-<% } %>
+ <% $cust_main->ss || ' ' %> |
+% }
+
Company |
- <%= $cust_main->company %> |
+ <% $cust_main->company %> |
Address |
- <%= $cust_main->address1 %> |
+ <% $cust_main->address1 %> |
-<% if ( $cust_main->address2 ) { %>
+% if ( $cust_main->address2 ) {
+
|
- <%= $cust_main->address2 %> |
+ <% $cust_main->address2 %> |
-<% } %>
+% }
+
City |
- <%= $cust_main->city %> |
+ <% $cust_main->city %> |
State |
- <%= state_label($cust_main->state, $cust_main->country) %> |
+ <% state_label($cust_main->state, $cust_main->country) %> |
Zip |
- <%= $cust_main->zip %> |
+ <% $cust_main->zip %> |
Country |
- <%= code2country($cust_main->country) %> |
-
-<%
- 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');
-%>
-
- <%= $daytime_label %> |
+ <% code2country($cust_main->country) %> |
+
+%
+% 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');
+%
+
+
+ <% $daytime_label %> |
- <%= include('/elements/phonenumber.html',
+ <% include('/elements/phonenumber.html',
$cust_main->daytime,
'callable'=>1
)
@@ -60,9 +66,9 @@ Billing address
|
- <%= $night_label %> |
+ <% $night_label %> |
- <%= include('/elements/phonenumber.html',
+ <% include('/elements/phonenumber.html',
$cust_main->night,
'callable'=>1
)
@@ -72,54 +78,56 @@ Billing address
|
Fax |
- <%= $cust_main->fax || ' ' %>
+ <% $cust_main->fax || ' ' %>
|
+% if ( defined $cust_main->dbdef_table->column('ship_last') ) {
+% my $pre = $cust_main->ship_last ? 'ship_' : '';
+%
-<% if ( defined $cust_main->dbdef_table->column('ship_last') ) {
- my $pre = $cust_main->ship_last ? 'ship_' : '';
-%>
Service address
-<%= ntable("#cccccc") %><%= ntable("#cccccc",2) %>
+<% ntable("#cccccc") %> |
<% ntable("#cccccc",2) %>
|
Contact name |
- <%= $cust_main->get("${pre}last"). ', '. $cust_main->get("${pre}first") %>
+ <% $cust_main->get("${pre}last"). ', '. $cust_main->get("${pre}first") %>
|
Company |
- <%= $cust_main->get("${pre}company") %> |
+ <% $cust_main->get("${pre}company") %> |
Address |
- <%= $cust_main->get("${pre}address1") %> |
+ <% $cust_main->get("${pre}address1") %> |
-<% if ( $cust_main->get("${pre}address2") ) { %>
+% if ( $cust_main->get("${pre}address2") ) {
+
|
- <%= $cust_main->get("${pre}address2") %> |
+ <% $cust_main->get("${pre}address2") %> |
-<% } %>
+% }
+
City |
- <%= $cust_main->get("${pre}city") %> |
+ <% $cust_main->get("${pre}city") %> |
State |
- <%= $cust_main->get("${pre}state") %> |
+ <% $cust_main->get("${pre}state") %> |
Zip |
- <%= $cust_main->get("${pre}zip") %> |
+ <% $cust_main->get("${pre}zip") %> |
Country |
- <%= code2country( $cust_main->get("${pre}country") ) %> |
+ <% code2country( $cust_main->get("${pre}country") ) %> |
- <%= $daytime_label %> |
+ <% $daytime_label %> |
- <%= include('/elements/phonenumber.html',
+ <% include('/elements/phonenumber.html',
$cust_main->get("${pre}daytime"),
'callable'=>1
)
@@ -127,9 +135,9 @@ Service address
|
- <%= $night_label %> |
+ <% $night_label %> |
- <%= include('/elements/phonenumber.html',
+ <% include('/elements/phonenumber.html',
$cust_main->get("${pre}night"),
'callable'=>1
)
@@ -139,9 +147,9 @@ Service address
|
Fax |
- <%= $cust_main->get("${pre}fax") || ' ' %>
+ <% $cust_main->get("${pre}fax") || ' ' %>
|
+% }
-<% } %>