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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file wagtailtwbsicons-1.0.1.tar.gz.

File metadata

  • Download URL: wagtailtwbsicons-1.0.1.tar.gz
  • Upload date:
  • Size: 318.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for wagtailtwbsicons-1.0.1.tar.gz
Algorithm Hash digest
SHA256 12dc18bc3ce41c6cb78512894a01f911ffd3ce916ac73925e37b4ca24c7233d3
MD5 2508ac1b24da6d844233ef49cae746f0
BLAKE2b-256 45153ab73a9dcdc773ed8570eee8afde5abf49adbd58c77cf8b1f39f123d7a75

See more details on using hashes here.

File details

Details for the file wagtailtwbsicons-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for wagtailtwbsicons-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9ffae42b6439236a78363dae75f965088a4df6a75c0e403e5e9b906c944b3bed
MD5 713157a3fd85a9b219e952b134ba46f0
BLAKE2b-256 d7244c45f56357303a968f16bcd987526ba6ff61d9a2f28246178b3f025b33a0

See more details on using hashes here.

Supported by

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