[web2py] Re: style input class="upload" the Boostrap way

2013-03-24 Thread Niphlod
create your own widget http://web2py.com/books/default/chapter/29/07#Widgets

On Sunday, March 24, 2013 9:17:04 AM UTC+1, Annet wrote:
>
> I am looking for a way to style this:
>
> 
>
> more in line with the Bootstrap styling of the input and button style, as 
> described
> in the buttons instead of text section of 
> http://twitter.github.com/bootstrap/base-css.html#forms
>
>
> Kind regards,
>
> Annet
>
>

-- 

--- 
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.




[web2py] Re: style input class="upload" the Boostrap way

2013-03-24 Thread Anthony
Are you using SQLFORM? Note, you can do SQLFORM(..., 
formstyle='bootstrap'). If that doesn't yield what you're looking for, you 
can do SQLFORM(..., formstyle=custom_function). See 
https://code.google.com/p/web2py/source/browse/gluon/sqlhtml.py#773 for an 
example of such a function.

Anthony

On Sunday, March 24, 2013 4:17:04 AM UTC-4, Annet wrote:
>
> I am looking for a way to style this:
>
> 
>
> more in line with the Bootstrap styling of the input and button style, as 
> described
> in the buttons instead of text section of 
> http://twitter.github.com/bootstrap/base-css.html#forms
>
>
> Kind regards,
>
> Annet
>
>

-- 

--- 
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.




[web2py] Re: style input class="upload" the Boostrap way

2013-03-25 Thread Annet
Thank you both for your replies.

Are you using SQLFORM? Note, you can do SQLFORM(..., 
> formstyle='bootstrap'). If that doesn't yield what you're looking for, you 
> can do SQLFORM(..., formstyle=custom_function). See 
> https://code.google.com/p/web2py/source/browse/gluon/sqlhtml.py#773 for 
> an example of such a function


formstyle='boostrap' solved some other problems I was having with my forms, 
however, 'browse' remains an ugly button. Web2py renders:



Whereas Bootstrap requires something like:


  
  Browse


I had a look at the file you reference and I am trying to figure out how to 
get this done, I'll let you know
when I solved the issue.

Kind regards,

Annet.

-- 

--- 
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.




[web2py] Re: style input class="upload" the Boostrap way

2013-03-26 Thread Anthony
If you just needed to alter that one widget, then use a custom widget, as 
Niphlod suggests. Customizing the widget affects only the input element, 
not the label, comment, etc.

Anthony

On Sunday, March 24, 2013 4:17:04 AM UTC-4, Annet wrote:
>
> I am looking for a way to style this:
>
> 
>
> more in line with the Bootstrap styling of the input and button style, as 
> described
> in the buttons instead of text section of 
> http://twitter.github.com/bootstrap/base-css.html#forms
>
>
> Kind regards,
>
> Annet
>
>

-- 

--- 
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.