web/views/editforms.py
branchstable
changeset 3767 03924de0014d
parent 3761 2c3b72faf05d
child 3777 3ef8cdb5fb1c
child 3793 ab776b2833cb
--- a/web/views/editforms.py	Wed Oct 21 11:21:58 2009 +0200
+++ b/web/views/editforms.py	Wed Oct 21 11:34:11 2009 +0200
@@ -193,17 +193,18 @@
         """xxx-reledit div (class=field)
               +-xxx div (class="editableField")
               |   +-landing zone
-              +   +-value
-              +-form-xxx div
+              +-xxx-value div
+              +-xxx-form div
         """
         w = self.w
+        divid = form.event_args['divid']
         w(u'<div id="%s-reledit" class="field">' % form.event_args['divid'])
         w(u'<div id="%s" class="editableField" onclick="%s" title="%s">' % (
-                form.event_args['divid'], xml_escape(self._onclick % form.event_args),
+                divid, xml_escape(self._onclick % form.event_args),
                 self.req._(self._landingzonemsg)))
         w(lzone)
-        w(value)
         w(u'</div>')
+        w(u'<div id="%s-value" class="editableFieldValue">%s</div>' % (divid, value))
         w(form.form_render(renderer=renderer))
         w(u'</div>')