html - Using bootstrap with web.py's form -
i using web.py in backed generate form. wanting use bootstraps form class. snippet html
<form name="test" method="post"> $:form.render() <input type="submit" name="button" value="login" /> </form>
which, when generated web.py, turns
<form name="login" method="post" class = "register"> <table> <tr><th><label for="username">username:</label></th><td><input type="text" id="username" name="username"/></td></tr> <tr><th><label for="password">password:</label></th><td><input type="password" id="password" name="password"/></td></tr> <tr><th><label for="password_again">repeat password:</label></th><td><input type="password" id="password_again" name="password_again"/></td></tr> </table> <input type="submit" value="register" /> </form>
however. makes difficult add bootstrap features code. 1 example directly bootstrap website :
<form> <fieldset> <legend>legend</legend> <label>label name</label> <input type="text" placeholder="type something…"> <span class="help-block">example block-level text here.</span> <label class="checkbox"> <input type="checkbox"> check me out </label> <button type="submit" class="btn">submit</button> </fieldset> </form>
is possible add these sorts of features form?
use $:form.render_css()
instead.
Comments
Post a Comment