X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages%2Flocation.html;h=1bfca00f2b506d9980408cf03d434d08d5e59d85;hb=8cbe016ac2c28cd209c48f053f361573368e7988;hp=6658415b51f41e54fd3ec99a10ec40bad02b52dd;hpb=998f029ef805c73e90543b34192e16d38a23c69c;p=freeside.git
diff --git a/httemplate/view/cust_main/packages/location.html b/httemplate/view/cust_main/packages/location.html
index 6658415b5..1bfca00f2 100644
--- a/httemplate/view/cust_main/packages/location.html
+++ b/httemplate/view/cust_main/packages/location.html
@@ -1,15 +1,27 @@
-
+ |
% unless ( $cust_pkg->locationnum ) {
(<% mt('default service address') |h %>)
% }
- <% $loc->location_label( 'join_string' => ' ',
- 'double_space' => ' ',
- 'escape_function' => \&encode_entities,
- 'countrydefault' => $countrydefault,
- )
- %>
+ <% $loc->location_label( 'join_string' => ' ',
+ 'double_space' => ' ',
+ 'escape_function' => \&encode_entities,
+ 'countrydefault' => $countrydefault,
+ )
+ %>
+
+% if ( $loc->latitude && $loc->longitude ) {
+
+
+ <% $loc->latitude %>, <% $loc->longitude %>
+ <& /elements/coord-links.html,
+ $loc->latitude,
+ $loc->longitude,
+ $opt{'cust_main'}->name_short. ': '. $opt{'part_pkg'}->pkg
+ &>
+
+% }
% unless ( $cust_pkg->locationnum ) {
@@ -19,10 +31,11 @@
% && $FS::CurrentUser::CurrentUser->access_right('Change customer package')
% )
% {
+
( <%pkg_change_location_link($cust_pkg)%> )
% if ( $cust_pkg->locationnum ) {
- ( <%edit_location_link($cust_pkg->locationnum)%> )
+ ( <%edit_location_link($cust_pkg->locationnum)%> )
% }
% }
|