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:

<input id="heroUnitFile_file" class=input-file" type="file" name="file">

Whereas Bootstrap requires something like:

<div class="input-append">
  <input class="span2" id="appendedInputButton" type="text">
  <button class="btn" type="button">Browse</button>
</div>

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.


Reply via email to