Embed a basic feedback form into a webapp.
Requires Flask, postgres... See requirements.txt
- Deploy Flask application.
- If application is used outside of ProvPlan, disregard other recipients section in settings.
- If application is used outside of ProvPlan, include your own email library. ...see
issueForm.py.example - Run the included schema file
issueTable.sql - Add
embedFeedback.jsto site and createFEEDBACK_FORM_URLvar in your page with the url to the deployed Feedback app.- EX:
```
<script>FEEDBACK_FORM_URL="http://0.0.0.0:5000"</script>
<script src="embedFeedback.js"></script>
- EX:
```
<script>FEEDBACK_FORM_URL="http://0.0.0.0:5000"</script>
- You will need to create a dom element with the id
site-feedback. This will enable the feedback form to open in a lightbox.- EX:
<a href="#" id="site-feedback"><span>Send us Feedback</span></a> - EX:
<a href="#" id="site-feedback"><img src="static/images/feedbackBtn.png" alt="feedback"></a>
- EX:
- Within
settings.pyyou will need to add your specs to the database info. - In the same file adjust the
TOPICSto populate the forms topic options with your own options.- EX:
TOPICS = ( ("reference value for base.html", "option value in select tag"), ("...","..."), )
- EX:
- Set SMTP settings for email notifications to be sent to your email address. or configure settings file to work with your emailing library... see
settings.py.example. Make sure to remove.examplefrom file name for production.