Add Google Maps integration for Role profiles create/edit views.
commit97aa426dfb70f0d03d96c8f107afa3bcb2c56d51
authorPawel Solyga <Pawel.Solyga@gmail.com>
Sun, 1 Feb 2009 16:10:20 +0000 (1 16:10 +0000)
committerPawel Solyga <Pawel.Solyga@gmail.com>
Sun, 1 Feb 2009 16:10:20 +0000 (1 16:10 +0000)
treefe02f719a629aea25d93525ae1aec80940d2ba00
parentd18e8a124acfbd7b340d8fcc41955266cf8c16e5
Add Google Maps integration for Role profiles create/edit views.

Now when editing/creating your Role Profile page Google Maps widget will show up at the bottom of the form as "Location" field. When you type in your Street, City, Country or State it will automatically update the map with the location based on your address. The zoom level depends on the address information you provided. So for example if you just select Country it will be different then when you select both Country and City. The longitude and latitude fields are hidden and are updated with the coordinates from the address you provided. Also if the map is not accurate enough you can adjust your location by dragging the red market, which will change your location and save new coordinates into hidden fields. This patch also includes some style fixes in soc.views.models.role module.

Patch by: Mario Ferraro & Pawel Solyga
Reviewed by: Pawel Solyga
app/soc/content/css/soc-090120.css
app/soc/content/js/map-090201.js [new file with mode: 0644]
app/soc/templates/soc/role/edit.html [new file with mode: 0644]
app/soc/views/models/role.py