From e1436e5c0c645268b61bb150eb51df6584a907b1 Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Sun, 24 Oct 2010 10:43:54 +0000 Subject: - use google geocode to locate city on maps --- root/html/includes/host_information.tt | 43 ++++++++++++++++++++++++++++----- root/static/images/page-zoom.png | Bin 0 -> 14528 bytes 2 files changed, 37 insertions(+), 6 deletions(-) create mode 100644 root/static/images/page-zoom.png diff --git a/root/html/includes/host_information.tt b/root/html/includes/host_information.tt index fd6123c..94fa7e3 100644 --- a/root/html/includes/host_information.tt +++ b/root/html/includes/host_information.tt @@ -14,7 +14,7 @@ [% IF NOT edit %] [% c.model('Mirrors').country_info(host.country).name | html %] [% ELSE %] - [% FOREACH country = c.model('Mirrors').country_list %] @@ -27,12 +27,18 @@ City [% IF edit %] - + + + + [% ELSE %] [% host.city | html %] [% END %] +[% IF edit %] +Click on the map to update latitude and longitude +[% END %] Latitude [% IF edit %] @@ -51,9 +57,6 @@ [% END %] -[% IF edit %] -Click on the map to update latitude and longitude -[% END %] Synchronized from @@ -120,17 +123,23 @@ your update request.
src="http://maps.google.com/maps/api/js?sensor=false">
diff --git a/root/static/images/page-zoom.png b/root/static/images/page-zoom.png new file mode 100644 index 0000000..bbd3624 Binary files /dev/null and b/root/static/images/page-zoom.png differ -- cgit v1.2.1