Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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


Release history Release notifications

This version
History Node

2016.11.1

History Node

2016.11.0

History Node

2016.5.0

History Node

2016.2.0

History Node

2016.1.0

History Node

2015.10.2.dev10

History Node

2015.5.0.post1

History Node

2015.5.0

History Node

2015.0.3

History Node

2015.0.2

History Node

2015.0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
leonardo-module-forms-2016.11.1.tar.gz (11.7 kB) Copy SHA256 hash SHA256 Source None Nov 16, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page