WTForms support ================ The ``bootstrap/wtf.html`` template contains macros to help you output forms quickly. Flask-WTF_ is not a dependency of Flask-Bootstrap, however, and must be installed explicitly. The API of Flask-WTF_ has changed quite a bit over the last few versions, Flask-Bootstrap is currently developed for Flask-WTF_ version 0.9.2. The most basic way is using them as an aid to create a form by hand: .. code-block:: jinja
However, often you just want to get a form done quickly and have no need for intense fine-tuning:: {{ wtf.quick_form(form) }} Form macro reference -------------------- .. py:function:: quick_form(form,\ action=".",\ method="post",\ extra_classes=None,\ role="form",\ form_type="basic",\ horizontal_columns=('lg', 2, 10),\ enctype=None,\ button_map={},\ id="") Outputs Bootstrap-markup for a complete Flask-WTF_ form. :param form: The form to output. :param method: ``