Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peopledoc/django-formidable-color-picker
Example of a django-formidable external field
https://github.com/peopledoc/django-formidable-color-picker
approved-public ghec-mig-migrated
Last synced: 17 days ago
JSON representation
Example of a django-formidable external field
- Host: GitHub
- URL: https://github.com/peopledoc/django-formidable-color-picker
- Owner: peopledoc
- Created: 2018-07-25T15:07:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-22T09:32:54.000Z (almost 4 years ago)
- Last Synced: 2024-04-16T06:52:48.973Z (9 months ago)
- Topics: approved-public, ghec-mig-migrated
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 53
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Django Formidable Color Picker
**WARNING**: this module is not ready yet - it's targeting a future version of `django-formidable` ; you won't be able to use it right now.
This is a "Proof of Concept" external field for `django-formidable`. Regular / classic fields are all handled by the core `django-formidable` code, but there might be the need for a "business logic-related" field.
For the sake of the example, we've created a "color picker" abstract field here, that will be enable the following:
- [x] Forms can be created/updated with this `color_picker` type of field.
- [x] These fields would carry at least a `format` parameter (`rgb` or `hex`).
- [x] This `format` parameter will be checked when trying to save a form.
- [x] Serializing the form definition in JSON would also carry this field and its definition, so a "smart" front-end would be able to manipulate it in a "form builder" or a "form filler".
- [ ] When an end-user would submit a form using this form definition, the value selected by the user (the color) would have to be checked against a "form-data" validator, to make sure they have selected a correct color.## Usage
* Install this module via `pip install -e ./` in your virtualenv
* Add `formidable_color_picker` to the ``INSTALLED_APPS``, preferrably right after `django-formidable`.
* Profit!## License
Undefined yet. Anyway, you can't use me, you remember?