Bootstrap-flask

Latest version: v2.4.0

Safety actively analyzes 626071 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 6

2.1.0

-----

Release date: 2022/8/20

- Add ``safe_columns`` and ``urlize_columns`` parameters to ``render_table`` macro
to support rendering table column as HTML/URL (`204 <https://github.com/helloflask/bootstrap-flask/pull/204>`__).
- Rename the ``badge`` parameter of ``render_nav_item`` macro to ``_badge``.
- Rename the ``use_li`` parameter of ``render_nav_item`` macro to ``_use_li``.

2.0.2

-----

Release date: 2022/2/27

- Add the missing ``form-select`` class for Bootstrap 5 form select fields
(`211 <https://github.com/helloflask/bootstrap-flask/pull/211>`__).

2.0.1

-----

Release date: 2022/1/27

- Remove extra quotation mark in ``render_nav_item``
(`201 <https://github.com/helloflask/bootstrap-flask/pull/201>`__).
- Fix signature of ``Bootstrap.__init__()`` incompatible with older version
(`198 <https://github.com/helloflask/bootstrap-flask/pull/198>`__).

2.0.0

-----

Release date: 2022/1/13

- Drop Python 2 and 3.5 support.
- Combine ``class`` argument of ``render_field`` or ``field.render_kw.class`` with Bootstrap classes
(`159 <https://github.com/helloflask/bootstrap-flask/pull/159>`__).
- Add initial support for Bootstrap 5 (`161 <https://github.com/helloflask/bootstrap-flask/pull/161>`__):
- Add ``Bootstrap4`` class and deprecate ``Bootstrap``.
- Add ``Bootstrap5`` class for Bootstrap 5 support.
- Move Bootstrap 4-related files to ``bootstrap4`` subfolder, and deprecate template path ``bootstrap/``.
- Bootstrap 4 macros are in the ``bootstrap4/`` template folder, and Bootstrap 5 macros are in ``bootstrap5/``.
- Add separate tests, templates, static files, and examples for Bootstrap 5.
- Remove the deprecated ``form_errors`` macro and the URL string variable support in ``render_table``.
- Render boolean field as a Bootstrap switch with ``SwitchField`` class (`175 <https://github.com/helloflask/bootstrap-flask/pull/175>`__).
- Add ``BOOTSTRAP_FORM_GROUP_CLASSES`` config for Bootstrap 5, defaults to ``mb-3``. Also add a ``form_group_classes``
parameter for ``render_form``, ``render_field``, and ``render_form_row`` (`184 <https://github.com/helloflask/bootstrap-flask/pull/184>`__).
- Add ``BOOTSTRAP_FORM_INLINE_CLASSES`` config for Bootstrap 5, defaults to ``row row-cols-lg-auto g-3 align-items-center``.
Also add a ``form_inline_classes`` parameter for ``render_form`` (`184 <https://github.com/helloflask/bootstrap-flask/pull/184>`__).
- Add ``form_type`` and ``horizontal_columns`` parameters to ``render_form_row`` (`192 <https://github.com/helloflask/bootstrap-flask/pull/192>`__).
- Add support for WTForms range fields (``DecimalRangeField`` and ``IntegerRangeField``) (`194 <https://github.com/helloflask/bootstrap-flask/pull/194>`__).
- Bump Bootstrap Icons to v1.7.2.
- Bump Bootstrap & Bootswatch to 4.6.1/5.1.3.

1.8.0

-----

Release date: 2021/9/5

- Fix bootswatch theme bug: remove theme name ``'default'`` (`141 <https://github.com/helloflask/bootstrap-flask/pull/141>`__).
- Add configuration ``BOOTSTRAP_TABLE_VIEW_TITLE``, ``BOOTSTRAP_TABLE_EDIT_TITLE``,
``BOOTSTRAP_TABLE_DELETE_TITLE``, ``BOOTSTRAP_TABLE_NEW_TITLE`` to support changing
the icon title of table actions (`140 <https://github.com/helloflask/bootstrap-flask/pull/140>`__).
- Introduce a new and better way to pass table action URLs
(`146 <https://github.com/helloflask/bootstrap-flask/pull/146>`__, `#151 <https://github.com/helloflask/bootstrap-flask/pull/151>`__).
- Deprecate ``action_pk_placeholder`` and placeholder action URLs in ``render_table``.
- Support SRI for JS/CSS resources (`142 <https://github.com/helloflask/bootstrap-flask/pull/142>`__).

1.7.0

-----

Release date: 2021/6/10

- Add a ``custom_actions`` parameter for the ``render_table`` macro. When passing a
list of tuples ``[(title, bootstrap icon, link)]`` to the ``custom_actions`` parameter,
the ``render_table`` macro will create an icon (link) on the action column for each
tuple in the list. The title text (first index of each tuple) will show when hovering
over each ``custom_actions`` button (`134 <https://github.com/helloflask/bootstrap-flask/pull/134>`__).
- Update Bootstrap Icons to v1.5.0.
- Improve action icons for ``render_table``, now the icons can be styled with the
``action-icon`` CSS class (`137 <https://github.com/helloflask/bootstrap-flask/pull/137>`__).
- Change the default ``action_pk_placeholder`` to ``':id'``. The support to the old
value will be removed in version 2.0
(`138 <https://github.com/helloflask/bootstrap-flask/pull/138>`__).

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.