Richard
unread,May 31, 2009, 8:25:33 PM5/31/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py Web Framework
hello,
I am using the col3 argument to SQLFORM to add some data:
button = INPUT(_type='button', _value='test')
link = A('test', _href=URL(r=request, f='test'))
col3 = dict(name=button, project=link)
form = SQLFORM(db.model, col3=col3)
Strangely this works for links but not inputs. Inputs are not included
in the form - is there a reason for this? I am trying to add a button
to the form.
For now I am using the form[0][0][2].append(...) syntax but would
prefer to use the cleaner col3 argument.
Incidentally, could a HTML helper be added for BUTTON()? The CSS file
I use assumes I am using <button> rather than <input type='button'>.
thanks,
Richard