CoreyMSchafer/code_snippets

How to change the default size of form field ?

Opened this issue · 1 comments

If i wanted to change the default width of username text field in the user registration form ,how can i acheive this ?

If i wanted to change the default width of username text field in the user registration form ,how can i acheive this ?

You can always enclose any field in div with any bootstrap class in the jinja template.
For example this will halve the current width of the field

<div class="col-sm-6">
   {{ form.username.label(class="form-control-label")}}
   {{  form.username(class="form-control form-control-lg") }}
</div>