Form builder for Leonardo.
Technicaly is only FeinCMS Form Designer and Remote Forms.
Visit Demo Site
Installation
pip install leonardo_module_forms
or as leonardo bundle
pip install django-leonardo["forms"]
Optionaly you can install remote forms typing this
pip install leonardo_module_forms[remote]
https://github.com/WiserTogether/django-remote-forms
and google recaptcha
pip install leonardo_module_forms[recaptcha]
Add leonardo_module_forms to APPS list, in the local_settings.py:
APPS = [
...
'forms'
...
]
Load new template to db
python manage.py sync_all
Writing your own Layout
For customization is there two options. One is defining Crispy Layout as you can see below
Layout(
Fieldset(
'first arg is the legend of the fieldset',
'test',
),
ButtonHolder(
Submit('submit', 'Submit', css_class='button white')
),
HTML("""
<p>We use notes to get better, <strong>please help us {{ username }}</strong></p>
"""),
)
for full reference visit http://django-crispy-forms.readthedocs.org/en/latest/layouts.html
Second is writing your custom template and render form field by field. For this is there template.
See Leonardo
Metadata
Release files for leonardo-module-forms 2016.11.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| leonardo-module-forms-2016.11.1.tar.gz | 11.7 kB | Details |
Release files / leonardo-module-forms-2016.11.1.tar.gz
| Download URL | leonardo-module-forms-2016.11.1.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db11b8d4ddceb026bde0eb63ccad5d610d227cfdbf2411cef039bb55c465ce0a
|
|
BLAKE2b-256 checksum How to use checksums |
e3eb8ffb3d9a15ead5c8921ff4269bad25379c0d5c94b54ff9b66b719c9c3429
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |