This commit is contained in:
Iliyan Angelov
2025-09-14 23:24:25 +03:00
commit c67067a2a4
71311 changed files with 6800714 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
Copyright (c) 2020 David Smith and contributors.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -0,0 +1,111 @@
Metadata-Version: 2.1
Name: crispy-bootstrap5
Version: 0.7
Summary: Bootstrap5 template pack for django-crispy-forms
Home-page: https://github.com/django-crispy-forms/crispy-bootstrap5
Author: David Smith
License: MIT
Project-URL: Issues, https://github.com/django-crispy-forms/crispy-bootstrap5/issues
Project-URL: CI, https://github.com/django-crispy-forms/crispy-bootstrap5/actions
Project-URL: Changelog, https://github.com/django-crispy-forms/crispy-bootstrap5/releases
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 3.2
Classifier: Framework :: Django :: 4.0
Classifier: Framework :: Django :: 4.1
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: django-crispy-forms (>=1.13.0)
Requires-Dist: django (>=3.2)
Provides-Extra: test
Requires-Dist: pytest ; extra == 'test'
Requires-Dist: pytest-django ; extra == 'test'
# crispy-bootstrap5
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/smithdc1/crispy-bootstrap5/blob/main/LICENSE)
Bootstrap5 template pack for django-crispy-forms
## Installation
Install this plugin using `pip`:
$ pip install crispy-bootstrap5
## Usage
You will need to update your project's settings file to add ``crispy_forms``
and ``crispy_bootstrap5`` to your projects ``INSTALLED_APPS``. Also set
``bootstrap5`` as and allowed template pack and as the default template pack
for your project::
INSTALLED_APPS = (
...
"crispy_forms",
"crispy_bootstrap5",
...
)
CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5"
CRISPY_TEMPLATE_PACK = "bootstrap5"
## What's new?
Bootstrap 5 introduces [floating labels](https://getbootstrap.com/docs/5.0/forms/floating-labels/).
This template pack include a layout object to use this input type::
from crispy_bootstrap5.bootstrap5 import FloatingField
# then in your Layout
... Layout(
FloatingField("first_name"),
)
Accordions also have new features, such as [Accordion flush](https://getbootstrap.com/docs/5.0/components/accordion/#flush) and [Always open](https://getbootstrap.com/docs/5.0/components/accordion/#always-open).
There is a new layout object to use them::
from crispy_bootstrap5.bootstrap5 import BS5Accordion
# then in your Layout
# if not informed, flush and always_open default to False
... Layout(
BS5Accordion(
AccordionGroup("group name", "form_field_1", "form_field_2"),
AccordionGroup("another group name", "form_field"),
flush=True,
always_open=True
)
)
## Development
To contribute to this library, first checkout the code. Then create a new virtual environment:
cd crispy-bootstrap5
python -mvenv venv
source venv/bin/activate
Or if you are using `pipenv`:
pipenv shell
Now install the dependencies and tests:
pip install -e '.[test]'
To run the tests:
pytest

View File

@@ -0,0 +1,50 @@
crispy_bootstrap5-0.7.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
crispy_bootstrap5-0.7.dist-info/LICENSE,sha256=9GRf5DJZqTaPbGeDJunlaPNZii4Bj8FuIQAP3wmsUE0,1072
crispy_bootstrap5-0.7.dist-info/METADATA,sha256=6VBZOB7m0Jjnw_TUAKHCMyZkJxFwSSdMMsUirnSMiwc,3478
crispy_bootstrap5-0.7.dist-info/RECORD,,
crispy_bootstrap5-0.7.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
crispy_bootstrap5-0.7.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
crispy_bootstrap5-0.7.dist-info/top_level.txt,sha256=DVPspp5GWXFkFLwvl1uB6IHzlYLc3CzC-QaNug1R_rU,18
crispy_bootstrap5/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
crispy_bootstrap5/__pycache__/__init__.cpython-312.pyc,,
crispy_bootstrap5/__pycache__/bootstrap5.cpython-312.pyc,,
crispy_bootstrap5/bootstrap5.py,sha256=xVPCh6eH7c9WGmhLbENg81nsS-JDW-WWuhD_FYEWj6w,926
crispy_bootstrap5/templates/bootstrap5/accordion-group.html,sha256=szPb9TvZWY3QXm6IP0CvvAlXzbPJUx2dP1U2xPDCzu0,676
crispy_bootstrap5/templates/bootstrap5/accordion.html,sha256=eBXZh5cHAY9cPLsru-KOCvjoklLDo5EexhYL-1WU6wQ,133
crispy_bootstrap5/templates/bootstrap5/betterform.html,sha256=65kED-HynWsciwYbkWzEvUW2gFJ1Z8DP493tChiAwfc,668
crispy_bootstrap5/templates/bootstrap5/display_form.html,sha256=xzwd4dr4EnnXuwjw_edcVNYF7sB0yxt0dLKpLIwfOCo,264
crispy_bootstrap5/templates/bootstrap5/errors.html,sha256=983yW0fIrrTKhIJ5zNXaGa3zLON9h_ClkBLD5rBHqJU,295
crispy_bootstrap5/templates/bootstrap5/errors_formset.html,sha256=IGCJBqbKPtnmDvQocMODLcKwFGYiNq_xlRZAU7aIU-4,306
crispy_bootstrap5/templates/bootstrap5/field.html,sha256=wM-mUv9ZgpDwyc4Zh41TL78rfy3GpIUerNrzLiL2mYI,3990
crispy_bootstrap5/templates/bootstrap5/inputs.html,sha256=kxL9yAPQ-bMr5C3YfH7I4gPbk2w9WvJm36phwVGJod4,404
crispy_bootstrap5/templates/bootstrap5/layout/alert.html,sha256=OA4lQ3WLmpqTqFpxWVW1-GhEoBPOQR9CyhcnNkJvNSY,313
crispy_bootstrap5/templates/bootstrap5/layout/attrs.html,sha256=9ylIPv5EZg-rx2qPLgobRkw6Zq_WJSM8kt106PpSYa0,172
crispy_bootstrap5/templates/bootstrap5/layout/baseinput.html,sha256=VxgzO0gjuKerbwKjYoSA0KSQ6mgNmhRGy_keQtqIbec,423
crispy_bootstrap5/templates/bootstrap5/layout/button.html,sha256=evlO80en9FkbW3UayLPTNUZXAYvgr3slSAsGPKXs96M,67
crispy_bootstrap5/templates/bootstrap5/layout/buttonholder.html,sha256=Hizf_vMjGjfMtnRlIhIC01QMuOCumlZCKcBG518d4m8,212
crispy_bootstrap5/templates/bootstrap5/layout/checkboxselectmultiple_inline.html,sha256=UZ9QlnGKG9S2wVIPB5sEclWEeORhcjnhbTfGTiRcB3Y,751
crispy_bootstrap5/templates/bootstrap5/layout/column.html,sha256=V8KZhnphb7X7_6VrK2qFPfBijiBNvCJXeLoBN-j7EW8,247
crispy_bootstrap5/templates/bootstrap5/layout/div.html,sha256=b1an9CWUNJAgk0EGTLfQyR_dlTPmLl-D2jPDrGsI7qo,178
crispy_bootstrap5/templates/bootstrap5/layout/field_errors.html,sha256=pDtfFZMV70-zUPS-1J_fXvD-MCxkzD2RYcllUH1uSYU,236
crispy_bootstrap5/templates/bootstrap5/layout/field_errors_block.html,sha256=Tkzqs0r7NVhIHYg9segv8cDaiyjD1KwsLRUOV4VdFf4,230
crispy_bootstrap5/templates/bootstrap5/layout/field_file.html,sha256=XmtqT_pmlF-WNRxHZZxdkcTNxHt7fbPGT7K1Vin6zko,1511
crispy_bootstrap5/templates/bootstrap5/layout/field_with_buttons.html,sha256=z2_7JRTu_8ypf4LNDCD2iClIUUngBWP60hMfao3wmTE,1436
crispy_bootstrap5/templates/bootstrap5/layout/fieldset.html,sha256=5JQ5EscLUdYUoTx9TMj_fTRgiH6HljgFyk6qj4QDam4,310
crispy_bootstrap5/templates/bootstrap5/layout/floating_field.html,sha256=Zin5Yzdj7ekZx_1tIzBQRVCLKFCdoSO6iSSsWTlnK70,1258
crispy_bootstrap5/templates/bootstrap5/layout/formactions.html,sha256=g27KBW8AQhARBGNPIrktTofot9jrR65crbqGunRBnpw,264
crispy_bootstrap5/templates/bootstrap5/layout/help_text.html,sha256=GLvTbM1F44nLnvJ4U4zqFUPed6eJRLprAWOhcLggpjQ,287
crispy_bootstrap5/templates/bootstrap5/layout/help_text_and_errors.html,sha256=gO07f4Tw0rSKm8sa8gReF3dXrsSXdHDA_B5P3Ltmwjw,382
crispy_bootstrap5/templates/bootstrap5/layout/inline_field.html,sha256=chhImsW7F9hSzmnOaJXVKfEfR7oTHtJZrzDzjtCG8Iw,1034
crispy_bootstrap5/templates/bootstrap5/layout/multifield.html,sha256=v9gWbmWAGVDkxsJCut0X7tZ6JjYyOOW0t8Q3FToJrY8,533
crispy_bootstrap5/templates/bootstrap5/layout/prepended_appended_text.html,sha256=zGd1x8-7oqpLBWL6mvxf9jN44PWmRev6FNzCpkEvZF8,2410
crispy_bootstrap5/templates/bootstrap5/layout/radio_checkbox_select.html,sha256=DvaPwk80GlHx7g3ucZdkrS4JxRSQQq_GTkd_ayjhVRw,1283
crispy_bootstrap5/templates/bootstrap5/layout/radioselect_inline.html,sha256=UZ9QlnGKG9S2wVIPB5sEclWEeORhcjnhbTfGTiRcB3Y,751
crispy_bootstrap5/templates/bootstrap5/layout/row.html,sha256=citmIf-8hAi8kqoqBFoo5LbdadpGe0pViTOZGZpdhec,149
crispy_bootstrap5/templates/bootstrap5/layout/tab-link.html,sha256=NXblprA3m6FPZN6_litOSRJmWKEUkkpJapIiCQ0jZ6k,206
crispy_bootstrap5/templates/bootstrap5/layout/tab.html,sha256=L8W4DbWYO0yvfSzM0_fuWWZg9z-fO2DIwFrgKiTa804,173
crispy_bootstrap5/templates/bootstrap5/layout/uneditable_input.html,sha256=xchYA-hWDHIATxuW1wa3tIWP3VKT_qkb4d6w2mm3VNA,680
crispy_bootstrap5/templates/bootstrap5/table_inline_formset.html,sha256=4j3Nj4tWK9oKODfA37L8Jc3cEBSr7CC7_EkY9UKUKlE,2081
crispy_bootstrap5/templates/bootstrap5/uni_form.html,sha256=EI0ShNWk4dENnai7ADFIj8R59LuVpY8LDI2YhvwJrPo,309
crispy_bootstrap5/templates/bootstrap5/uni_formset.html,sha256=4ag7O0_EH1WQ4S2_TItPdZgropu4i08_1lSmyF-L1BQ,230
crispy_bootstrap5/templates/bootstrap5/whole_uni_form.html,sha256=hlMZGcUOpAftJVsx1vRlUmqRCQfRUXoWVb5bZ_cWoDM,461
crispy_bootstrap5/templates/bootstrap5/whole_uni_formset.html,sha256=cmx7D21Jrwryt8NGBjLrwhQGSPVUHkFLyqYElFxDtZ4,844

View File

@@ -0,0 +1,5 @@
Wheel-Version: 1.0
Generator: bdist_wheel (0.37.1)
Root-Is-Purelib: true
Tag: py3-none-any

View File

@@ -0,0 +1 @@
crispy_bootstrap5