|
122 | 122 | :param horizontal_columns: When using the horizontal layout, layout forms |
123 | 123 | like this. Must be a 3-tuple of ``(column-type, |
124 | 124 | left-column-size, right-column-size)``. |
125 | | - :param button_style: Set button style for ``SubmitField``. Accept Bootstrap button style name (i.e. primary, |
| 125 | + :param button_style: Set button style for ``SubmitField``. Accept Bootstrap button style name (i.e. primary, |
126 | 126 | secondary, outline-success, etc.), default to ``primary`` (e.g. ``btn-primary``). This will |
127 | 127 | overwrite config ``BOOTSTRAP_BTN_STYLE``. |
128 | 128 | :param button_size: Set button size for ``SubmitField``. Accept Bootstrap button size name: sm, md, lg, block, |
|
181 | 181 | :param enctype: ``<form>`` enctype attribute. If ``None``, will |
182 | 182 | automatically be set to ``multipart/form-data`` if a |
183 | 183 | :class:`~wtforms.fields.FileField` or :class:`~wtforms.fields.MultipleFileField` is present in the form. |
184 | | - :param button_style: Set button style for ``SubmitField``. Accept Bootstrap button style name (i.e. primary, |
| 184 | + :param button_style: Set button style for ``SubmitField``. Accept Bootstrap button style name (i.e. primary, |
185 | 185 | secondary, outline-success, etc.), default to ``primary`` (e.g. ``btn-primary``). This will |
186 | 186 | overwrite config ``BOOTSTRAP_BTN_STYLE``. |
187 | 187 | :param button_size: Set button size for ``SubmitField``. Accept Bootstrap button size name: sm, md, lg, block, |
|
274 | 274 | if nothing more specific is said for the div column of the rendered field. |
275 | 275 | :param col_map: A dictionary, mapping field.name to a class definition that should be applied to |
276 | 276 | the div column that contains the field. For example: ``col_map={'username': 'col-md-2'})``. |
277 | | - :param button_style: Set button style for ``SubmitField``. Accept Bootstrap button style name (i.e. primary, |
| 277 | + :param button_style: Set button style for ``SubmitField``. Accept Bootstrap button style name (i.e. primary, |
278 | 278 | secondary, outline-success, etc.), default to ``primary`` (e.g. ``btn-primary``). This will |
279 | 279 | overwrite config ``BOOTSTRAP_BTN_STYLE``. |
280 | 280 | :param button_size: Set button size for ``SubmitField``. Accept Bootstrap button size name: sm, md, lg, block, |
@@ -447,11 +447,12 @@ When you call ``flash('message', 'category')``, there are 8 category options ava |
447 | 447 |
|
448 | 448 | primary, secondary, success, danger, warning, info, light, dark. |
449 | 449 |
|
450 | | -If you want to use HTML in your message body, just wrapper your message string with ``flask.Markup`` to tell Jinja it's safe: |
| 450 | +If you want to use HTML in your message body, just wrapper your message string with ``markupsafe.Markup`` to tell Jinja it's safe: |
451 | 451 |
|
452 | 452 | .. code-block:: python |
453 | 453 |
|
454 | | - from flask import flash, Markup |
| 454 | + from flask import flash |
| 455 | + from markupsafe import Markup |
455 | 456 |
|
456 | 457 | @app.route('/test') |
457 | 458 | def test(): |
|
496 | 497 | urlize_columns=None,\ |
497 | 498 | show_actions=False,\ |
498 | 499 | actions_title='Actions',\ |
499 | | - model=None,\ |
| 500 | + model=None,\ |
500 | 501 | custom_actions=None,\ |
501 | 502 | view_url=None,\ |
502 | 503 | edit_url=None,\ |
|
0 commit comments