Wagtail forms in a streamfield
Project description
Allows you to built forms in the cms admin area and add them to any streamfield in your site. You can create your own types of forms meaning an endless array of possibilities. Templates can be created which will then appear as choices when you build your form. Allowing you to display and submit a form however you want.
What else is included?
Customise things like success and error messages, post submit redirects and more.
Forms are processed via a before_page_serve hook. Meaning there is no fuss like remembering to include a page mixin.
The hook can easily be disabled to provide the ability to create your own.
Forms are catagorised by their class in the cms admin for easier navigation.
Form submissions are also listed by their form which you can filter by date and are ordered by newest first.
You can add site wide regex validators for use in regex fields.
A form and it’s fields can easily be copied to a new form.
There is a template tag that can be used to render a form. Incase you want it to appear outside a streamfield.
Recaptcha can be added to a form.
Documentation
Can be found on readthedocs.
Screenshots
Example site with docker
Clone the repo
$ git clone https://github.com/AccentDesign/wagtailstreamforms.git
Run the docker container
$ cd wagtailstreamforms
$ docker-compose up
Create yourself a superuser
$ docker exec -it <container_name> bash
$ python manage.py createsuperuser
Go to http://127.0.0.1:8000
Testing
Install dependencies
You will need pyenv installed see https://github.com/pyenv/pyenv
Also tox needs to be installed
$ pip install tox
Install python versions in pyenv
$ pyenv install 3.4.4
$ pyenv install 3.5.3
$ pyenv install 3.6.2
Set local project versions
$ pyenv local 3.4.4 3.5.3 3.6.2
Run the tests
$ tox
or run for a single environment
$ tox -e py36-dj111-wt112
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file wagtailstreamforms-1.4.4.tar.gz
.
File metadata
- Download URL: wagtailstreamforms-1.4.4.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f6a33c202727e725b7c803c1d4a4d9fbb6ed5b3e424d2bda59a89fb8a008a79 |
|
MD5 | 2e4d8f411b0fa8324794633269ba8cdc |
|
BLAKE2b-256 | 5d87475a3d07e6cacb80ca8d9079c9e1c4dc50fc0aa07250e4f18f5e53453d9f |