add latitude/longitude to prospects, customers and package locations, RT#15539
[freeside.git] / httemplate / view / cust_main / contacts.html
index 14cd918..3d4043a 100644 (file)
   <TD ALIGN="right"><% mt('Country') |h %></TD>
   <TD BGCOLOR="#ffffff"><% code2country( $cust_main->get("${pre}country") ) %></TD>
 </TR>
+
+% if ( $cust_main->get($pre.'latitude') && $cust_main->get($pre.'longitude') ) {
+  <& /elements/tr-coords.html, $cust_main->get($pre.'latitude'),
+                               $cust_main->get($pre.'longitude'),
+                               $cust_main->name_short,
+  &>
+% }
+
 <TR>
   <TD ALIGN="right"><% $daytime_label %></TD>
   <TD COLSPAN=3 BGCOLOR="#ffffff">
     <& /elements/phonenumber.html,
                   $cust_main->get("${pre}daytime"),
-                  'callable'=>1
+                  'callable'=>1,
+                  'calling_list_exempt'=>$cust_main->calling_list_exempt,
     &>
   </TD>
 </TR>
@@ -79,7 +88,8 @@
   <TD COLSPAN=3 BGCOLOR="#ffffff">
     <& /elements/phonenumber.html,
                   $cust_main->get("${pre}night"),
-                  'callable'=>1
+                  'callable'=>1,
+                  'calling_list_exempt'=>$cust_main->calling_list_exempt,
     &>
   </TD>
 </TR>
@@ -88,7 +98,8 @@
   <TD COLSPAN=3 BGCOLOR="#ffffff">
     <& /elements/phonenumber.html,
                   $cust_main->get("${pre}mobile"),
-                  'callable'=>1
+                  'callable'=>1,
+                  'calling_list_exempt'=>$cust_main->calling_list_exempt,
     &>
   </TD>
 </TR>