summaryrefslogtreecommitdiff
path: root/chimere/widgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/widgets.py')
-rw-r--r--chimere/widgets.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/chimere/widgets.py b/chimere/widgets.py
index 7359115..4cccf32 100644
--- a/chimere/widgets.py
+++ b/chimere/widgets.py
@@ -204,7 +204,7 @@ class PointChooserWidget(forms.TextInput):
#TODO: manage area
tpl = u"<script type='text/javascript'><!--\n"\
u"%s// !--></script>\n" % js
- tpl += u"<div id='map_edit'></div>"\
+ tpl += u"</div><div id='map_edit'></div>"\
u"<div id='live_lonlat'>"\
u" <p><label for='live_latitude'>%s</label>"\
u" <input type='texte' name='live_latitude' id='live_latitude' "\
@@ -212,7 +212,6 @@ class PointChooserWidget(forms.TextInput):
u"<p><label for='live_longitude'>%s</label><input type='texte' "\
u"name='live_longitude' id='live_longitude' size='8' "\
u"disabled='true' value='%f'/></p>"\
- u"</div>"\
u"<input type='hidden' name='%s' id='id_%s' value='%s'/>" % (
_("Latitude"), value_y, _("Longitude"), value_x, name, name,
val)
@@ -224,8 +223,7 @@ class PointChooserWidget(forms.TextInput):
u' mylonlat.transform(EPSG_DISPLAY_PROJECTION, \n'\
u' EPSG_PROJECTION), true);\n' % (
value_x, value_y)
- tpl += "// --></script>\n"\
- u"<hr class='spacer'/>\n"
+ tpl += "// --></script>\n"
return mark_safe(tpl)
class PointField(models.PointField):