changeset 2181 | 94ca417b9b07 |
parent 2144 | 51c84d585456 |
parent 2148 | 2b2b9626a98f |
child 2234 | 1fbcf202882d |
--- a/web/views/formrenderers.py Tue Jun 23 13:36:38 2009 +0200 +++ b/web/views/formrenderers.py Sat Jun 27 00:56:30 2009 +0200 @@ -206,6 +206,8 @@ w(u'</table>') def render_buttons(self, w, form): + if not form.form_buttons: + return w(u'<table class="%s">\n<tr>\n' % self.button_bar_class) for button in form.form_buttons: w(u'<td>%s</td>\n' % button.render(form))