labd / wagtailstreamforms

What happened when a FormBuilder met a StreamField
http://wagtailstreamforms.readthedocs.io
MIT License
156 stars 80 forks source link

Wagtail StreamForms

|tests| |Codecov| |pypi| |github|

Allows you to build forms in the CMS admin area and add them to any StreamField in your site. You can add your own fields along with the vast array of default fields which include the likes of file fields. Form submissions are controlled by hooks that you can add that process the forms cleaned data. 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.

Backwards Compatibility

Please note that due to this package being virtually re-written for version 3, you cannot upgrade any existing older version of this package to version 3 and onwards. If you have an existing version installed less than 3 then you will need to completely remove it including tables and any migrations that were applied in the databases django_migrations table.

Older versions:

If you are using a version of wagtail 1.x, then the latest compatible version of this package is 1.6.3:

.. code:: bash

$ pip install wagtailstreamforms<2

Other wise you must install a version of this package from 2 onwards:

.. code:: bash

$ pip install wagtailstreamforms>=2

What else is included?

Documentation

Can be found on readthedocs <http://wagtailstreamforms.readthedocs.io/>_.

Screenshots

.. figure:: http://wagtailstreamforms.readthedocs.io/en/latest/_images/screen_1.png :width: 728 px

Example Front End

.. figure:: http://wagtailstreamforms.readthedocs.io/en/latest/_images/screen_3.png :width: 728 px

Form Fields Selection

Example site with docker

Clone the repo

.. code:: bash

$ git clone https://github.com/labd/wagtailstreamforms.git

Run the docker container

.. code:: bash

$ cd wagtailstreamforms
$ docker-compose up

Create yourself a superuser

.. code:: bash

$ docker-compose exec app bash
$ python manage.py createsuperuser

Go to http://127.0.0.1:8000

.. |tests| image:: https://github.com/labd/wagtailstreamforms/workflows/Python%20Tests/badge.svg :target: https://github.com/labd/wagtailstreamforms/actions?query=workflow%3A%22Python+Tests%22 .. |Codecov| image:: https://codecov.io/gh/labd/wagtailstreamforms/branch/master/graph/badge.svg :target: https://codecov.io/gh/labd/wagtailstreamforms .. |pypi| image:: https://img.shields.io/pypi/v/wagtailstreamforms.svg :target: https://pypi.org/project/wagtailstreamforms/ .. |github| image:: https://img.shields.io/github/stars/labd/wagtailstreamforms.svg?style=social&logo=github :target: https://github.com/labd/wagtailstreamforms/stargazers