Skip to content

Commit

Permalink
Fixes id parameter position for quick_form & updates docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Halfdan Rump committed Jun 29, 2014
1 parent 352fa8c commit e59b128
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions docs/basic-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ Form macro reference
form_type="basic",\
horizontal_columns=('lg', 2, 10),\
enctype=None,\
button_map={})
button_map={},
id="")
Outputs Bootstrap-markup for a complete Flask-WTF_ form.

Expand All @@ -217,7 +218,7 @@ Form macro reference
:param button_map: A dictionary, mapping button field names to names such as
``primary``, ``danger`` or ``success``. Buttons not found in the
``button_map`` will use the ``default`` type of button.

:param id: The ``<form>`` id attribute.

.. py:function:: form_errors(form, hiddens=True)
Expand Down
4 changes: 2 additions & 2 deletions flask_bootstrap/templates/bootstrap/wtf.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@
{# valid form types are "basic", "inline" and "horizontal" #}
{% macro quick_form(form,
action="",
id="",
method="post",
extra_classes=None,
role="form",
form_type="basic",
horizontal_columns=('lg', 2, 10),
enctype=None,
button_map={}) %}
button_map={},
id="") %}
<form
{%- if action %} action="{{action}}"{% endif -%}
{%- if id %} id="{{id}}"{% endif -%}
Expand Down

0 comments on commit e59b128

Please sign in to comment.