adding new form
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
Pierre Geeraert
2025-07-29 09:39:41 +01:00
parent 2366d0c2a8
commit bccd344aa7
9310 changed files with 1330402 additions and 1 deletions
@@ -0,0 +1,29 @@
BSD 3-Clause License
Copyright (c) Zostera B.V. and individual contributors
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,135 @@
Metadata-Version: 2.1
Name: django-bootstrap-v5
Version: 1.0.11
Summary: Bootstrap 5 support for Django projects
Home-page: https://github.com/zelenij/django-bootstrap-v5
License: BSD-3-Clause
Keywords: django,django-bootstrap-v5,bootstrap5,bootstrap
Author: Andre Bar'yudin
Author-email: andre.baryudin@gmail.com
Requires-Python: >=3.6,<4.0
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 2.2
Classifier: Framework :: Django :: 3.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Utilities
Provides-Extra: docs
Requires-Dist: beautifulsoup4 (>=4.8.0,<5.0.0)
Requires-Dist: django (>=2.2,<5.0)
Requires-Dist: m2r2 (>=0.2.5,<0.3.0); extra == "docs"
Requires-Dist: sphinx (>=4.4,<5.0); extra == "docs"
Requires-Dist: sphinx_rtd_theme (>=1.0,<2.0); extra == "docs"
Project-URL: Documentation, https://django-bootstrap-v5.readthedocs.io/
Project-URL: Repository, https://github.com/zelenij/django-bootstrap-v5
Description-Content-Type: text/markdown
# django-bootstrap v5
This package builds on top of the excellent [django-bootstrap4](https://github.com/zostera/django-bootstrap4) package.
[![CI](https://github.com/zelenij/django-bootstrap-v5/workflows/CI/badge.svg?branch=main)](https://github.com/django-bootstrap-v5/actions?workflow=CI)
[![Coverage Status](https://coveralls.io/repos/github/django-bootstrap-v5/badge.svg?branch=main)](https://coveralls.io/github/django-bootstrap-v5?branch=main)
[![Latest PyPI version](https://img.shields.io/pypi/v/django-bootstrap-v5.svg)](https://pypi.python.org/pypi/django-bootstrap-v5)
[![Any color you like](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
Bootstrap 5 integration for Django.
## Package name
Unfortunately, someone squatted on the django-bootstrap-v5 (as well as 6, 7, 8 etc) name in PyPi in 2013, so I had to modify the name of this package accordingly.
## Goal
The goal of this project is to seamlessly blend Django and Bootstrap 5.
## Requirements
Python 3.6 or newer with Django >= 2.2 or newer.
## Documentation
The full documentation is at https://django-bootstrap-v5.readthedocs.io/
## Installation
1. Install using pip:
```shell script
pip install django-bootstrap-v5
```
Alternatively, you can install download or clone this repo and call ``pip install -e .``.
2. Add to `INSTALLED_APPS` in your `settings.py`:
```python
INSTALLED_APPS = (
# ...
"bootstrap5",
# ...
)
````
3. In your templates, load the `bootstrap5` library and use the `bootstrap_*` tags:
## Example template
```jinja
{% load bootstrap5 %}
{# Display a form #}
<form action="/url/to/submit/" method="post" class="form">
{% csrf_token %}
{% bootstrap_form form %}
{% buttons %}
<button type="submit" class="btn btn-primary">Submit</button>
{% endbuttons %}
</form>
```
Demo
----
A demo app is provided in `demo`. You can run it from your virtualenv with `python manage.py runserver`.
Bugs and suggestions
--------------------
If you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.
https://github.com/zelenij/django-bootstrap-v5/issues
License
-------
You can use this under BSD-3-Clause. See [LICENSE](LICENSE) file for details.
Author
------
Developed and maintained by [Andre Bar'yudin](https://www.baryudin.com)
Original authors:
* [Zostera](https://zostera.nl)
* [Dylan Verheul](https://github.com/dyve)
Thanks to everybody that has contributed pull requests, ideas, issues, comments and kind words.
Please see [AUTHORS.md](AUTHORS.md) for a list of contributors.
@@ -0,0 +1,38 @@
LICENSE,sha256=5fW9kEV33DKKweOi5nGaf6XgmbgaPAtVhgSSFqbdg1s,1533
bootstrap5/__init__.py,sha256=Fs0h3NV3E_U647Zku9SWfNpPw5ylfsFxGgsAuHoaVKc,270
bootstrap5/__pycache__/__init__.cpython-311.pyc,,
bootstrap5/__pycache__/bootstrap.cpython-311.pyc,,
bootstrap5/__pycache__/components.cpython-311.pyc,,
bootstrap5/__pycache__/exceptions.cpython-311.pyc,,
bootstrap5/__pycache__/forms.cpython-311.pyc,,
bootstrap5/__pycache__/models.cpython-311.pyc,,
bootstrap5/__pycache__/renderers.cpython-311.pyc,,
bootstrap5/__pycache__/text.cpython-311.pyc,,
bootstrap5/__pycache__/utils.cpython-311.pyc,,
bootstrap5/__pycache__/widgets.cpython-311.pyc,,
bootstrap5/bootstrap.py,sha256=wEJY8vd8R7RxYQ3KRAlFmhBiFLJ91J_Olkvobibxuy8,2770
bootstrap5/components.py,sha256=s-sxfaln12uuZpggemFpzz_7K65CUcuL372Tg0W_h2k,943
bootstrap5/exceptions.py,sha256=WZf-dpaVIpR50zK26M3HexoeQCvPrO2LERtNg7Dr5nI,166
bootstrap5/forms.py,sha256=_FUICjlS3RT-JPluAALZ5YbPSp8heMecubkfMhKzxdM,4979
bootstrap5/models.py,sha256=5Wy9-Lg77FZmaRAbyJUklmw7c54krr0JztWeahk_Mys,50
bootstrap5/renderers.py,sha256=oMP6DTZqeRytdHudPlRCQHUW-_rQXsRFHMaExKLhxyY,22326
bootstrap5/templates/bootstrap5/bootstrap5.html,sha256=yM3_9wtpQTHmW3OwdK6bHmxEeaJP3WP_2cGrUANhLAA,1132
bootstrap5/templates/bootstrap5/field_errors.html,sha256=oR9R3wj3pA7slgWSjbiMZNxGazN2xlwVkLc2sKuHIf0,95
bootstrap5/templates/bootstrap5/field_help_text.html,sha256=KbHG-MvnbYxjHJpw8tVdKeerMLwj-ika2Ce5HzC5Upg,97
bootstrap5/templates/bootstrap5/form_errors.html,sha256=8qh8Nsx4s1jcOqvUxG9G5AvNmAf7Ozp86cNbSX-N2rU,305
bootstrap5/templates/bootstrap5/messages.html,sha256=-hPes5iXyweyhqXWGAGOx8VNzn-r3CUF_ISPkogNiNE,317
bootstrap5/templates/bootstrap5/pagination.html,sha256=niCqb0dQct7kf7HLqpHg4b4nrMbEPd-SAqCp5WZ6mSA,1549
bootstrap5/templates/bootstrap5/widgets/radio_select_button_group.html,sha256=M_cdUN8qH8hJpHf0U4xltwCuVHzb-xUkJ0cVvK6dUnA,750
bootstrap5/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
bootstrap5/templatetags/__pycache__/__init__.cpython-311.pyc,,
bootstrap5/templatetags/__pycache__/bootstrap5.cpython-311.pyc,,
bootstrap5/templatetags/bootstrap5.py,sha256=CKpSYdQ2ofPJXeMLeSVe4U5HaeofM5qNGTARgHOMAT8,20985
bootstrap5/text.py,sha256=MrVCRN4TPIJuiY6WnMFiMtYBmVOIa6VparUpojaoUGE,467
bootstrap5/utils.py,sha256=r1D4hl51Q-BuZ-IIzKiaOf__Uy-UDqPZ0ybUYZjzw-c,4625
bootstrap5/widgets.py,sha256=pYnQgeM3nFukXl37S0FgpkS3luZx_xYm52OfStAdW9M,314
django_bootstrap_v5-1.0.11.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
django_bootstrap_v5-1.0.11.dist-info/LICENSE,sha256=5fW9kEV33DKKweOi5nGaf6XgmbgaPAtVhgSSFqbdg1s,1533
django_bootstrap_v5-1.0.11.dist-info/METADATA,sha256=jBo7ym7TEIpjdmIti9bYOryn6vRY5WZRib2YqMrrdGc,4213
django_bootstrap_v5-1.0.11.dist-info/RECORD,,
django_bootstrap_v5-1.0.11.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
django_bootstrap_v5-1.0.11.dist-info/WHEEL,sha256=y3eDiaFVSNTPbgzfNn0nYn5tEn1cX6WrdetDlQM4xWw,83
@@ -0,0 +1,4 @@
Wheel-Version: 1.0
Generator: poetry 1.0.7
Root-Is-Purelib: true
Tag: py3-none-any