{# Renders field for bootstrap 3 standards. Params: field - WTForm field kwargs - pass any arguments you want in order to put them into the html attributes. There are few exceptions: for - for_, class - class_, class__ - class_ Example usage: {{ horz_form.field(form.email, placeholder='Input email', type='email') }} #} {% macro div_form_group(field) -%}
{{ e }}
{% endfor %} {% endif %} {% endmacro %} {# Renders checkbox fields since they are represented differently in bootstrap Params: field - WTForm field (there are no check, but you should put here only BooleanField. kwargs - pass any arguments you want in order to put them into the html attributes. There are few exceptions: for - for_, class - class_, class__ - class_ Example usage: {{ horiz_form.checkbox_field(form.remember_me) }} #} {% macro checkbox_field(field) -%} {% call div_form_group(field, **kwargs) %}{{ e }}
{% endfor %} {% endif %}{{ e }}
{% endfor %} {% endif %}