On Monday, November 14, 2011 9:34:30 AM UTC-5, Massimo Di Pierro wrote:
>
> You can add other buttons like
>
> buttons = [INPUT(_type="submit"),
> INPUT(_type="button",_onclick="history.go(-1);return False")]
>
Can you show a complete example? I just tried the above with SQLFORM and
SQLFORM.factory, and it shows neither of the buttons listed above. I also
can't find any code that references the 'buttons' argument, except for:
if (not readonly) and ('submit' in buttons):
widget = INPUT(_type='submit',
_value=submit_button)
xfields.append(('submit_record'+SQLFORM.ID_ROW_SUFFIX,
'', widget,col3.get('submit_button', '')))
self.custom.submit = widget
Anthony