Skip to main content

Create forms and embed them on CMS pages.

Project description

Continuation of the deprecated project "Divio Aldryn forms" Pypi package status Python versions BSD License

Aldryn Forms App

Continuation of the deprecated project Divio Aldryn Forms.

Aldryn Forms allows you to build flexible HTML forms for your Aldryn and django CMS projects, and to integrate them directly in your pages.

Forms can be assembled using the form builder, with the familiar simple drag-and-drop interface of the django CMS plugin system.

Submitted data is stored in the Django database, and can be explored and exported using the admin, while forms can be configured to send a confirmation message to users.

Contributing

This is a an open-source project. We’ll be delighted to receive your feedback in the form of issues and pull requests. Before submitting your pull request, please review our contribution guidelines.

We’re grateful to all contributors who have helped create and maintain this package. Contributors are listed at the contributors section.

Installation

Aldryn Platform Users

Choose a site you want to install the add-on to from the dashboard. Then go to Apps -> Install app and click Install next to Forms app.

Redeploy the site.

Upgrading from < 2.0

Version 2.0 introduced a new model for form data storage called FormSubmission. The old FormData model has been deprecated. Although the FormData model’s data is still accessible through the admin, all new form data will be stored in the new FormSubmission model.

Manuall Installation

Run pip install djangocms-aldryn-forms.

Update INSTALLED_APPS with

INSTALLED_APPS = [
    ...
    'aldryn_forms',
    'aldryn_forms.contrib.email_notifications',
    'captcha',
    ...
]

Also ensure you define an e-mail backend for your app.

Creating a Form

You can create forms in the admin interface now. Search for the label Aldryn_Forms.

Create a CMS page and install the Forms app there (choose Forms from the Advanced Settings -> Application dropdown).

Now redeploy/restart the site again.

The above CMS site has become a forms POST landing page - a place where submission errors get displayed if there are any.

Available Plug-ins

  • FormPlugin plugin lets you embed certain forms on a CMS page.

  • Fieldset groups fields.

  • TextField renders text input.

  • TextAreaField renders text input.

  • HiddenField

  • PhoneField

  • DateField

  • DateTimeLocalField

  • TimeField

  • NumberField

  • EmailField

  • FileField renders a file upload input.

  • MultipleFilesField

  • ImageField same as FileField but validates that the uploaded file is an image.

  • BooleanField renders checkbox.

  • SelectField renders single select input.

  • MultipleSelectField

  • MultipleCheckboxSelectField renders multiple checkboxes.

  • CaptchaField

  • HideContentWhenPostPlugin

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

djangocms_aldryn_forms-7.2.1.tar.gz (97.0 kB view details)

Uploaded Source

Built Distribution

djangocms_aldryn_forms-7.2.1-py3-none-any.whl (151.6 kB view details)

Uploaded Python 3

File details

Details for the file djangocms_aldryn_forms-7.2.1.tar.gz.

File metadata

File hashes

Hashes for djangocms_aldryn_forms-7.2.1.tar.gz
Algorithm Hash digest
SHA256 84ed5e0c2826f60f6593d49abefd70202f03b9a9fa73f2b2afd6493bb911c407
MD5 0c7801c1612654963bcfcab86c14661a
BLAKE2b-256 43fce9d1daeec3395c91b9f5ffd2fd4b1bee84f27a4116be4b0b464fc7f1bfdb

See more details on using hashes here.

Provenance

File details

Details for the file djangocms_aldryn_forms-7.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for djangocms_aldryn_forms-7.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 14027aecf0f248b59f7c216ac356123e49bb963c9f7eb5e61e82b9a44748145e
MD5 0e1bd62b56ee2252c615e428ab20d7ca
BLAKE2b-256 89eceb63060f7d3d5d73aeaf5d9ae0627ed9744982b6145942cbce19a2c44d12

See more details on using hashes here.

Provenance

Supported by

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