Skip to main content

Form Designer and Remote Forms for Leonardo CMS

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

leonardo-module-forms-2015.10.2.dev10.tar.gz (11.4 kB view details)

Uploaded Source

File details

Details for the file leonardo-module-forms-2015.10.2.dev10.tar.gz.

File metadata

File hashes

Hashes for leonardo-module-forms-2015.10.2.dev10.tar.gz
Algorithm Hash digest
SHA256 8bcc488b0673c0c200a3e5641c2ee991e8d973d9c1c29c6917e66ae91797b7d3
MD5 4ee7313ae12aeccaae10c67b217b1196
BLAKE2b-256 1bf41efe2ca3ac3a73bcaca8a97919062c085a7af6c9f56abf70b797ff60d21c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page