Even when you do SQLFORM(..., formstyle='bootstrap') , the auto generated forms still come out looking very terrible. so I would advice that you do {{=form.custom.begin}} and {{=form.custom.end}} to really tweak your form to your hearts desire.
On Sunday, September 2, 2012 12:57:54 PM UTC+1, Anthony wrote: > > Does: > > SQLFORM(..., formstyle='bootstrap') > > Do what you want? > > Anthony > > On Sunday, September 2, 2012 3:53:20 AM UTC-4, Annet wrote: >> >> This is a form in bootstrap: >> >> <form class="form-horizontal"> >> <div class="control-group"> >> <label class="control-label" for="inputEmail">Email</label> >> <div class="controls"> >> <input type="text" id="inputEmail" placeholder="Email"> >> </div> >> </div> >> ... >> </form> >> >> This is my form in web2py: >> >> <form class="form-horizontal" method="post" enctype="multipart/form-data" >> action=""> >> <div id="no_table_subClass__row"> >> <div class="w2p_fl"> >> <label id="no_table_subClass__label" >> for="no_table_subClass">Subclass</label> >> </div> >> <div class="w2p_fw"> >> <select id="no_table_subClass" class="generic-widget" >> name="subClass"> >> </div> >> <div class="w2p_fc"></div> >> </div> >> ... >> </form> >> >> Is there a way to add >> >> class="control-group" to all __row divs >> class="control-label" to all labels >> class="controls" to all w2p_ divs >> >> >> >> Kind regards, >> >> >> Annet. > > --