> How do I append the search button to the field, like on the twitter-bootstrap 
> site <http://twitter.github.com/bootstrap/base-css.html#forms>?
>


Given your example, closer to twitter would be something like:

search_form = SQLFORM.factory(Field('Search', requires=IS_ALPHANUMERIC()))
parent=search_form.element('input[type=submit]').parent
parent.components 
=[TAG.A(TAG.I(_class='icon-search'),'submit',_class='btn',href='#')]


Annet
 

-- 



Reply via email to