Skip to main content

A wagtail package to add Twitter s Bootstrap Icons to administration

Project description

wagtailtwbsicons

License: MIT

A wagtail package to add Twitter's Bootstrap Icons to administration icons list.

Currently using Bootstrap Icons v1.11.3, works with Wagtail > 3 (use 1.0.0 for older wagtail versions)

Install

pip install wagtailtwbsicons

Usage

  • Add wagtailtwbsicons to INSTALLED_APPS in your project settings
INSTALLED_APPS = [
    ...
    'wagtailtwbsicons',
    ...     
]
class PersonBlock(blocks.StructBlock):
    first_name = blocks.CharBlock()
    ...
    class Meta:
        icon = 'bi-person-square'

Using wagtailtwbsicons as an optionnal dependency

from django.apps import apps

class PersonBlock(blocks.StructBlock):
    first_name = blocks.CharBlock()
    ...
    class Meta:
        if apps.is_installed('wagtailtwbsicons'):
            icon = 'bi-person-square'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wagtailtwbsicons-1.0.1.tar.gz (318.6 kB view hashes)

Uploaded Source

Built Distribution

wagtailtwbsicons-1.0.1-py3-none-any.whl (1.1 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page