python - Flask-security and Bootstrap -


how can style flask-security login site bootstrap? html form looks this:

<form action="{{ url_for_security('login') }}" method="post" name="login_form">   {{ login_user_form.hidden_tag() }}   {{ render_field_with_errors(login_user_form.email) }}   {{ render_field_with_errors(login_user_form.password) }}   {{ render_field_with_errors(login_user_form.remember) }}   {{ render_field(login_user_form.next) }}   {{ render_field(login_user_form.submit) }} </form> 

bootstrap implemented, dont know how edit fields , submit button..

the render_field_* functions accepts class_ parameter, add html classes field. add in bootstrap styling classes want.

render_field_with_errors(login_user_form.email, class_="form-control") }} {{ render_field(login_user_form.submit, class_="btn btn-default") }} 

and on.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -