Re: [web2py] Re: Change layout of CRUD forms

2011-06-10 Thread Jim Steil
Thanks, that's exactly what I missed going through the book.  I'll work 
through this and see what I can come up with.


-Jim

On 6/10/2011 9:21 AM, Anthony wrote:
Have you tried the method described here: 
http://web2py.com/book/default/chapter/07#Custom-forms?
You can also create custom widgets, but I don't think you'd need to in 
this case. And you can also do some form customization via server-side 
DOM parsing 
(http://web2py.com/book/default/chapter/05#Server-side-DOM-and-Parsing; http://www.web2pyslices.com/main/slices/take_slice/43).

Anthony

On Friday, June 10, 2011 10:10:12 AM UTC-4, Jim S wrote:

Hi

I'm looking for a way to modify the presentation of a CRUD form. 
Specifically I want the following:


Name:INPUT_FIELD_FOR_FIRST_NAME   INPUT_FIELD_FOR_LAST_NAME
Address:  INPUT_FIELD_FOR_ADDRESS
City/State/ZIP:  INPUT_FIELD_FOR_CITY, INPUT_FIELD_FOR_STATE,
INPUT_FIELD_FOR_ZIP

I've been looking around the web but can't seem to find anything
that specifically addresses this.  Coming from a TurboGears 1.0
background I could do this by creating custom widgets and nesting
them in forms.  Obviously no auto-CRUD available there but I'm
wondering how I can most easily accomplish the same thing using
CRUD.  Or, am I asking too much from a CRUD interface?

Thanks

-Jim



[web2py] Re: Change layout of CRUD forms

2011-06-10 Thread Anthony
Have you tried the method described here: 
http://web2py.com/book/default/chapter/07#Custom-forms?
 
You can also create custom widgets, but I don't think you'd need to in this 
case. And you can also do some form customization via server-side DOM 
parsing (
http://web2py.com/book/default/chapter/05#Server-side-DOM-and-Parsing; 
http://www.web2pyslices.com/main/slices/take_slice/43).
 
Anthony
 

On Friday, June 10, 2011 10:10:12 AM UTC-4, Jim S wrote:

> Hi
>
> I'm looking for a way to modify the presentation of a CRUD form.  
> Specifically I want the following:
>
> Name:INPUT_FIELD_FOR_FIRST_NAME   INPUT_FIELD_FOR_LAST_NAME
> Address:  INPUT_FIELD_FOR_ADDRESS
> City/State/ZIP:  INPUT_FIELD_FOR_CITY, INPUT_FIELD_FOR_STATE, 
> INPUT_FIELD_FOR_ZIP
>
> I've been looking around the web but can't seem to find anything that 
> specifically addresses this.  Coming from a TurboGears 1.0 background I 
> could do this by creating custom widgets and nesting them in forms.  
> Obviously no auto-CRUD available there but I'm wondering how I can most 
> easily accomplish the same thing using CRUD.  Or, am I asking too much from 
> a CRUD interface?
>
> Thanks
>
> -Jim
>