0003-backoffice-add-mini-map-to-geolocated-forms-10581.patch
wcs/backoffice/management.py | ||
---|---|---|
1773 | 1773 |
r += htmltext('<p>%s</p>') % formdata.get_user().display_name |
1774 | 1774 |
r += htmltext('</div>') |
1775 | 1775 | |
1776 |
if formdata.geolocations: |
|
1777 |
r += htmltext('<div class="geolocations">') |
|
1778 |
r += htmltext('<h3>%s</h3>') % _('Geolocation') |
|
1779 |
for geoloc_key in formdata.formdef.geolocations: |
|
1780 |
if not geoloc_key in formdata.geolocations: |
|
1781 |
continue |
|
1782 |
geoloc_value = formdata.geolocations[geoloc_key] |
|
1783 |
map_widget = MapWidget('geoloc_%s' % geoloc_key, |
|
1784 |
readonly=True, |
|
1785 |
value='%(lat)s;%(lon)s' % geoloc_value) |
|
1786 |
r += map_widget.render() |
|
1787 |
r += htmltext('</div>') |
|
1788 | ||
1776 | 1789 |
if formdata.user_id and get_publisher().is_using_postgresql(): |
1777 | 1790 |
# display list of open formdata for the same user |
1778 | 1791 |
user_roles = [logged_users_role().id] + (get_request().user.roles or []) |
wcs/qommon/static/css/dc2/admin.css | ||
---|---|---|
1332 | 1332 |
div.bo-block.data-source-preview tt { |
1333 | 1333 |
padding-right: 1ex; |
1334 | 1334 |
} |
1335 | ||
1336 |
div#sidebar div.MapWidget { |
|
1337 |
margin: 0 1px; |
|
1338 |
border: 1px solid #888; |
|
1339 |
} |
|
1335 |
- |