[web2py] Re: how to add a style to form tags

2013-10-28 Thread Niphlod
form.custom.begin is not an helper like A, LI, FORM, etc... so you can't use usual _attributes for it. form.custom.begin just carries ... that's because you're supposed to fill in between all your form widgets and then close it with form.custom.end, that in turn just carries the ending piece.

[web2py] Re: how to add a style to form tags

2013-10-28 Thread Paolo Caruccio
Perhaps this still works https://groups.google.com/d/msg/web2py/DyspJUl_IMM/njKjq9mEb_0J Replace form['_class'] = "form-horizontal" with form['_style'] = "display:inline;" Il giorno lunedì 28 ottobre 2013 22:00:20 UTC+1, arche...@gmail.com ha scritto: > > > I was wondering how to put a st

[web2py] Re: how to add a style to form tags

2013-10-28 Thread archeaneon
{{login_form['_style']="display:inline"}} does not work @Ramos, in this specific case, I would like the style to be inline with the form tag rather than anywhere else, since anywhere else would affect forms globally. On Monday, October 28, 2013 6:12:28 PM UTC-4, Paolo Caruccio wrote: > > Perhap

Re: [web2py] Re: how to add a style to form tags

2013-10-28 Thread António Ramos
@css form.myform { ... } only afects myform class, not all forms 2013/10/28 > {{login_form['_style']="display:inline"}} does not work > > @Ramos, in this specific case, I would like the style to be inline with > the form tag rather than anywhere else, since anywhere else would affect > forms

Re: [web2py] Re: how to add a style to form tags

2013-10-28 Thread archeaneon
Part of what I wanted to do was manipulate the inline style dynamically inline in the tag. It seems that it is being stated that a workaround is needed for this... but thank you for all your help! On Monday, October 28, 2013 6:42:13 PM UTC-4, Ramos wrote: > > @css > > form.myform { > ... > } > >

Re: [web2py] Re: how to add a style to form tags

2013-10-28 Thread Anthony
How are you creating the form? Is it the auth.login() form, or your own form? Do you need to use form.custom.begin to get the layout you need? On Monday, October 28, 2013 6:48:26 PM UTC-4, arche...@gmail.com wrote: > > Part of what I wanted to do was manipulate the inline style dynamically > inl

Re: [web2py] Re: how to add a style to form tags

2013-10-29 Thread archeaneon
What I ended up doing was just that; I wrote out what form.custom.begin was outputting and added the style tag manually. I was just wondering if there was a way to manipulate the tag without resorting to this. On Monday, October 28, 2013 7:34:53 PM UTC-4, Anthony wrote: > > How are you creating

Re: [web2py] Re: how to add a style to form tags

2013-10-29 Thread Anthony
On Tuesday, October 29, 2013 10:12:37 AM UTC-4, arche...@gmail.com wrote: > What I ended up doing was just that; I wrote out what form.custom.begin > was outputting and added the style tag manually. I was just wondering if > there was a way to manipulate the tag without resorting to this. > It