Flask-wtf submit format button using bootstrap
3 answers
I assume you are using flash bootstrap as well.
On Jinja2 macros with flash bootstrap you have:
{% call _hz_form_wrap(horizontal_columns, form_type, True, required=required) %}
{{field(class='btn btn-%s' % button_map.get(field.name, 'default'), **kwargs)}}
{% endcall %}
You should use if you can click button_map [see. details in the comments below]
+2
source to share