Wagtail forms in a streamfield
Project description
This package is currently a concept but allows you to add add forms that are built in the cms admin area to any streamfield. You can also create your own form templates which will then appear as a template choice when you build your form. This allows you to decide how the form is submitted and to where.
Documentation is currently being worked on but the basics are below
Whats included?
Forms can be built in the cms admin and used site wide in any streamfield.
You can create your own form templates to display/submit how ever you wish to do it.
We have included a mixin which will handle the form post if it is being submitted to a wagtail page.
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.
Recaptcha can be added to a form.
You can also add site wide regex validators fo use in regex fields.
Screen shots
Documentation
Can be found on readthedocs.
Example site with docker
Run the docker container
$ 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.1.1.tar.gz
.
File metadata
- Download URL: wagtailstreamforms-1.1.1.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5365b71c924d5007f285ffb2f093cf5c513672ceeb326e6bbe091e5a71e7566d |
|
MD5 | 929da88a7161221681ba53b6154d9890 |
|
BLAKE2b-256 | 497272142403629108e457e3be2209545ff57876a1be7332c97a14ceb74af4e5 |