diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-11-22 20:13:02 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-11-22 20:13:02 +0100 | 
| commit | be70ae3016861cb13f1600c266522782b8e4dc90 (patch) | |
| tree | d22cd609e67665511cc9bcaa5c190c45f65bd569 /chimere/widgets.py | |
| parent | 83fc9015eb778b958a921e68c0580ed37990624f (diff) | |
| download | Chimère-be70ae3016861cb13f1600c266522782b8e4dc90.tar.bz2 Chimère-be70ae3016861cb13f1600c266522782b8e4dc90.zip  | |
Admin: improve layout of markers and routes
Diffstat (limited to 'chimere/widgets.py')
| -rw-r--r-- | chimere/widgets.py | 6 | 
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):  | 
