Show map link from address.
authorIain Patterson <me@iain.cx>
Mon, 13 May 2013 10:21:49 +0000 (06:21 -0400)
committerIain Patterson <me@iain.cx>
Mon, 13 May 2013 12:48:48 +0000 (08:48 -0400)
Link to Google Maps for existing addresses.

lib/contact.php
lib/hub.php

index b33c97a..a4610a7 100644 (file)
     /* Postcode. */
     echo "<tr>\n";
     echo "  <td>Postcode</td>\n";
-    echo "  <td>"; input("postcode", $address->getPostcode()); echo "</td>\n";
+    echo "  <td>"; input("postcode", $address->getPostcode()); echo get_address_map_link($address); echo "</td>\n";
     echo "</tr>\n";
 
     /* Telephone. */
index 4e34c17..51aec9a 100644 (file)
     /* Postcode. */
     echo "<tr>\n";
     echo "  <td>Postcode</td>\n";
-    echo "  <td>"; input("postcode", $address->getPostcode()); echo "</td>\n";
+    echo "  <td>"; input("postcode", $address->getPostcode()); echo get_address_map_link($address); echo "</td>\n";
     echo "</tr>\n";
 
     /* Telephone. */