Datasette plugin for creating surveys and collecting responses all in one place.
Project description
datasette-surveys
Construct and gather responses to surveys all within Datasette!
This plugin is based heavily on the officially amazing but unsupported Alpaca form builder.
Installation
python setup.py install
Usage
The plugin adds an interface at /-/surveys
and a "Surveys" link in the menu.
Configuration
This plugin uses the permission plugin looking for responses to the following actions (they all start with surveys-
):
surveys-list
: allows actors to view the list of previously created surveys.surveys-create
: allows actors to create surveys. Won't allow overwriting by itself.surveys-update
: allows actors to update surveys, resource: id of the survey if being updated. This permission doesn't stop actors from updating with blank surveys or otherwise removing fields.surveys-delete
: allows actors to delete surveys. resource: id of the survey being deleted.surveys-view-form
: allows actors to view and respond to individual forms. resource: id of the survey.
Development
The form builder borrows heavily from Alpaca's form builder and the front end build also comes from the Alpaca repo.
To pull the dependencies for the plugin, use bower:
bower install
And if you don't have bower, run this first: npm install -g bower
The form builder is found in datasette_surveys/static/form-builder.js
. It's a modified version of the Alpaca one.
Running python setup.py install
will reinstall the plugin.
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
Built Distribution
Hashes for datasette_surveys-1.1.6-py3.8.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a88256ab28a5f687bb639b6754245587df17c479b2a5ce6e9ab4d74267161d6 |
|
MD5 | 2b38362e6f0073864a96859467806298 |
|
BLAKE2b-256 | 1c8503fe5a758b205a3b0837ea9c0a1514d8be6a736934b8014d3d52fceb724f |