{%- if _ is not defined -%} {% macro _(message) -%} {{ message }} {%- endmacro %} {%- endif -%} {# Renders field for bootstrap 4 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 %} {% elif field.flags.required %}This field is required.
{% endif %}{{ e }}
{% endfor %}