web/views/formrenderers.py
changeset 2181 94ca417b9b07
parent 2144 51c84d585456
parent 2148 2b2b9626a98f
child 2234 1fbcf202882d
equal deleted inserted replaced
2144:51c84d585456 2181:94ca417b9b07
   204                 w(self.render_help(form, field))
   204                 w(self.render_help(form, field))
   205             w(u'</td></tr>')
   205             w(u'</td></tr>')
   206         w(u'</table>')
   206         w(u'</table>')
   207 
   207 
   208     def render_buttons(self, w, form):
   208     def render_buttons(self, w, form):
       
   209         if not form.form_buttons:
       
   210             return
   209         w(u'<table class="%s">\n<tr>\n' % self.button_bar_class)
   211         w(u'<table class="%s">\n<tr>\n' % self.button_bar_class)
   210         for button in form.form_buttons:
   212         for button in form.form_buttons:
   211             w(u'<td>%s</td>\n' % button.render(form))
   213             w(u'<td>%s</td>\n' % button.render(form))
   212         w(u'</tr></table>')
   214         w(u'</tr></table>')
   213 
   215