Metadata-Version: 2.4
Name: django-semantic-forms
Version: 0.1.14
Summary: Django Semantic UI forms
Project-URL: Homepage, https://github.com/globophobe/django-semantic-forms
Project-URL: Repository, https://github.com/globophobe/django-semantic-forms
Author-email: Alex <globophobe@gmail.com>
License: MIT
License-File: LICENSE
Keywords: django,forms,semantic
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Django
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Requires-Dist: django>=5.2
Provides-Extra: filters
Requires-Dist: django-filter; extra == 'filters'
Description-Content-Type: text/markdown

Django Semantic UI forms
------------------------

Django forms with [Semantic UI](https://semantic-ui.com/) style. Semantic UI forms may be used both with [django-semantic-admin](https://github.com/globophobe/django-semantic-admin), as well as outside the admin.


Why?
----

* JavaScript datepicker and timepicker components.
* JavaScript selects, including multiple selections, which integrate well with Django autocomplete fields.
* Semantic UI has libraries for [React](https://react.semantic-ui.com/) and [Vue](https://semantic-ui-vue.github.io/#/), in addition to jQuery. This means you can save time by using django-semantic-forms for simple forms, and use React or Vue for more complex use cases.


Install
-------

Install from PyPI:

```
pip install django-semantic-forms
```

Add to `settings.py`:

```python
INSTALLED_APPS = [
    "semantic_forms",
    ...
]
```

Please remember to run `python manage.py collectstatic` for production deployments.

This package uses [Fomantic UI](https://fomantic-ui.com/) the official community fork of Semantic UI. Please add the Fomantic UI dependencies to your Django template.

For example:

```html
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/fomantic-ui@2.9.4/dist/semantic.min.css" integrity="sha384-b5SW2bA5CBv/WeySOaDac2n4fnB+yd1vfmnWhES5vUjF4ZGsxsNt6sUsq75J1gOa" crossorigin="anonymous" referrerpolicy="no-referrer">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha384-1H217gwSVyLSIfaLxHbE7dRb3v4mYCKbpQvzx0cegeju1MVsGrX5xXxAvs/HgeFs" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdn.jsdelivr.net/npm/fomantic-ui@2.9.4/dist/semantic.min.js" integrity="sha384-7q6zpNgldX13QoAOADSjVDfLYLoyGIFtXsqNEH+GbudZMHYj4WkexEnJsuNh/0Ph" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
```
