Is there a way to style a SQLFORM.grid view page

73 views
Skip to first unread message

mostwanted

unread,
Jan 8, 2020, 9:25:06 AM1/8/20
to web2py-users
Hi guys, complements of a new year.
I was wondering if there is a way to style the view page of an SQLFORM.grid displayed by the view button? How do I override the default view page styling?

Regards;

Mostwanted

Ari Lion BR Sp

unread,
Jan 8, 2020, 2:40:30 PM1/8/20
to web2py-users
I use a trick - but I think  w2p should have another way to do is 

    if request.args(-2) == 'new':
       redirect(URL('controller','funcition_edit',args=[request.args(-1)]))
    elif request.args(-3) == 'edit':
       idd = request.args(-1)
       redirect(URL('controller','funcition_edit', args=[idd], vars={'idd' : idd} ))


Massimo, please help us

Dave S

unread,
Jan 8, 2020, 6:58:56 PM1/8/20
to web2py-users
On Wednesday, January 8, 2020 at 6:25:06 AM UTC-8, mostwanted wrote:
Hi guys, complements of a new year.
I was wondering if there is a way to style the view page of an SQLFORM.grid displayed by the view button? How do I override the default view page styling?


What changes in styling do you want to do?   Do you have a view template?

/dps
 

Geordanis Baño Vega

unread,
Jan 15, 2020, 1:03:58 AM1/15/20
to web...@googlegroups.com
from de web2py pdf manual:
{{=form.custom.begin}}
Image name: <div>{{=form.custom.widget.name}}</div>
Image file: <div>{{=form.custom.widget.source}}</div>
Click here to upload: {{=form.custom.submit}}
{{=form.custom.end}}

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/aebfe870-15d1-4bff-b1a4-bddf5f658a55%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages