web/views/formrenderers.py
branchstable
changeset 5828 c29c90223125
parent 5769 b3b48e0b8e3b
child 5829 f898991c6de5
equal deleted inserted replaced
5827:aad4496a279a 5828:c29c90223125
   407             attrs_fs_label += ('<div class="iformTitle"><span>%s</span></div>'
   407             attrs_fs_label += ('<div class="iformTitle"><span>%s</span></div>'
   408                                % self._cw._(self.main_form_title))
   408                                % self._cw._(self.main_form_title))
   409         attrs_fs_label += '<div class="formBody">'
   409         attrs_fs_label += '<div class="formBody">'
   410         return attrs_fs_label + super(EntityFormRenderer, self).open_form(form, values)
   410         return attrs_fs_label + super(EntityFormRenderer, self).open_form(form, values)
   411 
   411 
       
   412     def close_form(self, form, values):
       
   413         """seems dumb but important for consistency w/ close form, and necessary
       
   414         for form renderers overriding open_form to use something else or more than
       
   415         and <form>
       
   416         """
       
   417         return super(EntityFormRenderer, self).close_form(form, values) + '</div>'
       
   418 
   412     def render_buttons(self, w, form):
   419     def render_buttons(self, w, form):
   413         if len(form.form_buttons) == 3:
   420         if len(form.form_buttons) == 3:
   414             w("""<table width="100%%">
   421             w("""<table width="100%%">
   415   <tbody>
   422   <tbody>
   416    <tr><td align="center">
   423    <tr><td align="center">