Bulma template pack for django-crispy-forms
Project description
crispy-bulma
Bulma template pack for django-crispy-forms
Documentation: https://crispy-bulma.readthedocs.io.
Requirements
Officially supported versions:
Django: 2.2, 3.1, 3.2, 4.0
Python 3.6, 3.7, 3.8, 3.9
django-crispy-forms 1.12, 1.13
Bulma.css 0.9.3
Note: Django 4.0 requires version 0.6.0+ and django-crispy-forms version 1.13+.
Older versions might work, but are not officially supported. For example django-crispy-forms >= 1.9.0, Bulma >= 0.7.5 and Django 3.0 are still likely to work.
If you depend on django-crispy-forms < 1.12.0 use the 0.4.0 version.
Quickstart
Install this plugin using pip:
$ pip install crispy-bulma
You will need to update your project’s settings file to add crispy_forms and crispy_bulma to your projects INSTALLED_APPS. Also set bulma as and allowed template pack and as the default template pack for your project:
INSTALLED_APPS = ( ... "crispy_forms", "crispy_bulma", ... ) CRISPY_ALLOWED_TEMPLATE_PACKS = ("bulma",) CRISPY_TEMPLATE_PACK = "bulma"
Credits
This project is based on an archived crispy-forms-bulma fork by Discord
The original crispy-forms-bulma project is by Jure Hotujec
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
License
MIT license
History
0.6.0 (2022-04-15)
Add support for Django 4.0
Fix SelectMultiple widget rendering
0.5.1 (2022-04-14)
Readd templatetags removed by mistake.
0.5.0 (2022-04-13)
Drop support for Django 3.0
Upgrade crispy_forms dependency, now version >= 1.12.0 is required
0.4.0 (2022-04-13)
Feature: add label_class helper attribute
Feature: add support for horizontal forms
BREAKING CHANGE: HTML in labels is now being escaped, this is consistent with django.
BREAKING CHANGE: EmailField and EmailInput have been removed. Use django.forms.EmailField instead.
Feature: add support for forms.MultipleChoiceField with CheckboxSelectMultiple as widget.
0.3.1 (2022-04-08)
Fix input wrapper, replace p tag with a div
Fix checkbox rendering, the input was rendered twice
Initial version by ckrybus (tests, docs, packaging, no logic changes)
0.3.0 (2020-03-22) [1]
Add support for django 3.0
0.2.0 (2019-12-12) [1]
Update dependency pinning
0.1.2 (2019-04-02) [1]
Add EmailInput widget
0.1.1 (2019-01-15) [1]
Update docs
0.1.0 (2019-01-13) [1]
Initial version by discord.
1.1.3 (2017-11-06) [2]
Added input with icons
1.1.2 (2017-11-06) [2]
Added template for non-field errors
Fix radio select, which now appears inline
Fix form actions template (submit, reset)
1.1.1 (2017-11-06) [2]
Initial version by @jhotujec
Footnotes
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for crispy_bulma-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42599641129ae04c7398d49bf4e752061975aa50ddb20e10731611ec8c41804d |
|
MD5 | fe9af828ee49a23d8f840cb473ae1fb4 |
|
BLAKE2b-256 | 3e80158a92b9e19f4038e87d9358a64f85f4ed19e77ba3dc999840edb1627fef |