[freeside-commits] freeside/httemplate/view/cust_main/packages location.html, 1.11, 1.12 section.html, 1.6, 1.7

Ivan,,, ivan at wavetail.420.am
Mon Dec 12 21:09:34 PST 2011


Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main/packages
In directory wavetail.420.am:/tmp/cvs-serv14835/httemplate/view/cust_main/packages

Modified Files:
	location.html section.html 
Log Message:
add latitude/longitude to prospects, customers and package locations, RT#15539

Index: section.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/packages/section.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -w -d -r1.6 -r1.7
--- section.html	21 Nov 2011 00:38:16 -0000	1.6
+++ section.html	13 Dec 2011 05:09:32 -0000	1.7
@@ -26,6 +26,7 @@
 %       'bgcolor'  => $bgcolor,
 %       'cust_pkg' => $cust_pkg,
 %       'part_pkg' => $cust_pkg->part_pkg,
+%       'cust_main' => $opt{'cust_main'},
 %       %conf_opt,
 %     );
 %

Index: location.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/packages/location.html,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -w -d -r1.11 -r1.12
--- location.html	18 May 2011 01:06:28 -0000	1.11
+++ location.html	13 Dec 2011 05:09:32 -0000	1.12
@@ -1,4 +1,4 @@
-<TD CLASS="inv" BGCOLOR="<% $bgcolor %>">
+<TD CLASS="inv" BGCOLOR="<% $bgcolor %>" WIDTH="20%">
 
 % unless ( $cust_pkg->locationnum ) {
   <I><FONT SIZE=-1>(<% mt('default service address') |h %>)</FONT><BR>
@@ -11,6 +11,18 @@
                          )
   %>
 
+%   if ( $loc->latitude && $loc->longitude ) {
+        <BR>
+        <FONT SIZE=-1>
+        <% $loc->latitude %>, <% $loc->longitude %>
+        <& /elements/coord-links.html,
+             $loc->latitude,
+             $loc->longitude,
+             $opt{'cust_main'}->name_short. ': '. $opt{'part_pkg'}->pkg
+        &>
+        </FONT>
+%   }
+
 % unless ( $cust_pkg->locationnum ) {
   </I>
 % }
@@ -19,10 +31,11 @@
 %      && $FS::CurrentUser::CurrentUser->access_right('Change customer package')
 %    )
 % {
+  <BR>
   <FONT SIZE=-1>
     (&nbsp;<%pkg_change_location_link($cust_pkg)%>&nbsp;)
 %   if ( $cust_pkg->locationnum ) {
-&nbsp;(&nbsp;<%edit_location_link($cust_pkg->locationnum)%>&nbsp;)
+        (&nbsp;<%edit_location_link($cust_pkg->locationnum)%>&nbsp;)
 %   }
   </FONT>
 % } 



More information about the freeside-commits mailing list