>
> It would be easy to integrate it, or any sort of lightbox like plugin, 

with SQLFORM if there is the capability to give a template to SQLFORM(). 
>
> Looking at the documentation it doesn't seem that there is a way. 
>

SQLFORM takes a formstyle argument, which can be a function/callable that 
takes the form and a list of form fields as its two arguments and returns 
the contents (in the form of HTML helpers) that go inside the FORM() 
helper. You can use this to create a completely customized form template. 
For an example, see the 
formstyle_bootstrap()<https://code.google.com/p/web2py/source/browse/gluon/sqlhtml.py#773>function
 used for default Bootstrap form formatting. Note, the book 
documentation regarding the formstyle argument is not up-to-date -- it 
still refers to a legacy option allowing a callable formstyle, but it was 
much less flexible than the current capability.

If you want to use the above approach, your formstyle function could 
identify the submit button in the list of form fields (i.e., via _type == 
'submit'), and either alter or exclude it.

Another simple way to just remove the submit button from a form is:

form = SQLFORM(..., buttons=[])

Anthony

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to