Skip to content

Commit

Permalink
Fix typo and update docstring for button_map
Browse files Browse the repository at this point in the history
  • Loading branch information
greyli committed Oct 30, 2018
1 parent 3d74fd6 commit 3894fbb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/macros.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Example
API
~~~~

.. py:function:: quick_form(form,\
.. py:function:: render_form(form,\
action="",\
method="post",\
extra_classes=None,\
Expand Down Expand Up @@ -148,9 +148,9 @@ API
automatically be set to ``multipart/form-data`` if a
:class:`~wtforms.fields.FileField` is present in the form.
: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.
``primary``, ``danger`` or ``success``. For example,
``{'submit': 'success'}``. Buttons not found in the
``button_map`` will use the ``default`` type of button.
:param id: The ``<form>`` id attribute.
:param novalidate: Flag that decide whether add ``novalidate`` class in ``<form>``.
:param render_kw: A dictionary, specifying custom attributes for the
Expand Down

0 comments on commit 3894fbb

Please sign in to comment.