web/views/editforms.py
changeset 2390 c0d09a4ca3dc
parent 2389 c399bd6a9c38
child 2458 4d114865098f
equal deleted inserted replaced
2389:c399bd6a9c38 2390:c0d09a4ca3dc
   181                                        form_buttons=[SubmitButton(),
   181                                        form_buttons=[SubmitButton(),
   182                                                      Button(stdmsgs.BUTTON_CANCEL,
   182                                                      Button(stdmsgs.BUTTON_CANCEL,
   183                                                             onclick=cancelclick)])
   183                                                             onclick=cancelclick)])
   184         field = guess_field(entity.e_schema, entity.schema.rschema(rtype), role)
   184         field = guess_field(entity.e_schema, entity.schema.rschema(rtype), role)
   185         form.append_field(field)
   185         form.append_field(field)
   186         self.w(u'<div id="%s-reledit" class="field">%s&nbsp;' % (divid, value))
   186         self.w(u'<div id="%s-reledit" class="field">' % divid)
   187         self.w(tags.div(lzone, klass='editableField', id=divid,
   187         self.w(tags.div(lzone, klass='editableField', id=divid,
   188                         onclick=self._onclick % event_data))
   188                         onclick=self._onclick % event_data))
       
   189         self.w(value)
   189         renderer = self._build_renderer(entity, rtype, role)
   190         renderer = self._build_renderer(entity, rtype, role)
   190         self.w(form.form_render(renderer=renderer))
   191         self.w(form.form_render(renderer=renderer))
   191         self.w(u'</div>')
   192         self.w(u'</div>')
   192 
   193 
   193     def _attribute_form(self, entity, value, rtype, role, reload, row, col, default, lzone):
   194     def _attribute_form(self, entity, value, rtype, role, reload, row, col, default, lzone):