Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (19 sloc) 1.382 kB

play-feedback

Create a simple AJAX feedback control for your site. Depends on bootstrap-modal.js and jQuery.

Configuring the module

Add the following to your dependencies.yml to enable it:

require:
    - play
    - play -> feedback 0.1

Add the routes into your routes file to enable the Google Checkout callback:

*    /    module:feedback

Optionally, configure your authenticated user session key (this defaults to username):

# Feedback
feedback.authenticatedUserSessionKey=**your_key**

Usage

Insert #{feedback.link /} somewhere near the bottom of a page (or for site-wide usage, in your top-level template). This will append some Javascript to the page and on-ready, create a feedback link; when that link is clicked a bootstrap-modal dialog will be shown to submit feedback.

A Feedback entity is used, which stores its data in a table of the same name. No admin page is provided, but it shouldn’t be hard to knock one up.

Bugs etc…

The feedback module is provided as-is with no warranty or even expectation that it will work for you. It’s been extracted from an in-house solution and only tested on our one system. Feel free to raise issues on our Github repository.

History

  • v0.1: Initial version, nothing too fancy
Jump to Line
Something went wrong with that request. Please try again.