Re: [web2py] Re: Change form layout

2013-06-24 Thread Javier Pepe
You can try whith: http://dev.s-cubism.com/plugin_solidform On Mon, Jun 24, 2013 at 12:02 PM, Tom Russell wrote: > Ah, I see now. > > Thanks > > > On Mon, Jun 24, 2013 at 10:50 AM, Anthony wrote: > >> No, 3 columns means: >> >> Col 1 Col 2 Col 3 >> label widget comment >> >> It's st

Re: [web2py] Re: Change form layout

2013-06-24 Thread Tom Russell
Ah, I see now. Thanks On Mon, Jun 24, 2013 at 10:50 AM, Anthony wrote: > No, 3 columns means: > > Col 1 Col 2 Col 3 > label widget comment > > It's still one field per row. When in doubt, try it out. :-) > > Anthony > > > On Monday, June 24, 2013 10:26:08 AM UTC-4, Tom Russell wrote:

Re: [web2py] Re: Change form layout

2013-06-24 Thread Anthony
No, 3 columns means: Col 1 Col 2 Col 3 label widget comment It's still one field per row. When in doubt, try it out. :-) Anthony On Monday, June 24, 2013 10:26:08 AM UTC-4, Tom Russell wrote: > > Thanks again for the info. > > I guess I still do not get it though if I set my formstyle

Re: [web2py] Re: Change form layout

2013-06-24 Thread Tom Russell
Thanks again for the info. I guess I still do not get it though if I set my formstyle to table3cols would'nt my form at least be laid out like: Name Address City State Or am I not looking at this correctly? On Mon, Jun 24, 2013 at 10:16 AM, Anthony wrote: > Your best bet is to look at how th

Re: [web2py] Re: Change form layout

2013-06-24 Thread Anthony
Your best bet is to look at how the built-in ones work, starting here: https://code.google.com/p/web2py/source/browse/gluon/sqlhtml.py#752. Copy the one of those that is closest to what you want and modify it as necessary. def myformstyle(): [custom code here] form = SQLFORM(..., formstyle

Re: [web2py] Re: Change form layout

2013-06-24 Thread Tom Russell
Thanks for the responses. The formstyle looks interesting but I cannot make heads or tails out of the way to use it. Are there any examples of this some place? Thanks On Mon, Jun 24, 2013 at 9:55 AM, Anthony wrote: > I assume that means you are relying on a generic view to display your > tabl

Re: [web2py] Re: Change form layout

2013-06-24 Thread Anthony
I assume that means you are relying on a generic view to display your table. If so, you can instead create a non-generic view (which you should probably do anyway), or you can build the form DOM on the server using web2py HTML helpers (probably not the way to go). The custom formstyle option al

Re: [web2py] Re: Change form layout

2013-06-24 Thread Tom Russell
Thanks for the response. So now I am really confused because I have no idea where to put this code if I am using a SQLFORM.factory? Basically I just want to add row fluid to make the layout a little easier to navigate. I do not have a html file to set this code in for this form. Thanks. On Mon,

[web2py] Re: Change form layout

2013-06-24 Thread Anthony
http://web2py.com/books/default/chapter/29/07#Custom-forms I don't think it's in the book yet, but you can also create a custom formstyle if you need to use the layout in multiple places: https://groups.google.com/d/msg/web2py/QmoRmapiOwA/tZqeEbii6QgJ Anthony On Monday, June 24, 2013 8:53:16 A