Adding quickfeedback form

This commit is contained in:
Cam Findlay 2016-02-16 10:32:08 +13:00
parent 493eae8cc1
commit f210b17cb5
6 changed files with 78 additions and 13 deletions

3
.gitignore vendored
View File

@ -10,4 +10,5 @@
/toolbar/
/display_logic/
/silverstripe-dynamodb/
/crontask/
/crontask/
/quickfeedback/

View File

@ -9,4 +9,7 @@ StaticExporter:
disable_sitetree_export: true
Controller:
extensions:
- ControllerExtension
- ControllerExtension
QuickFeedbackExtension:
redirect_field: true
rate_limit: 1

View File

@ -4,9 +4,10 @@ After: framework/routes#coreroutes
---
Director:
rules:
'en//QuickFeedbackForm': 'DocumentationViewer'
'Security//$Action/$ID/$OtherID': 'Security'
'admin': 'AdminRootController'
'dev/buildcache/$Action': 'RebuildStaticCacheTask'
'dev': 'DevelopmentAdmin'
'': '->en/'
'$Lang/$Action': 'DocumentationViewer'
'$Lang/$Action': 'DocumentationViewer'

View File

@ -4,10 +4,11 @@
"require": {
"ext-gd": "*",
"ext-mbstring": "*",
"silverstripe/docsviewer": "dev-master",
"silverstripe/docsviewer": "^1.2",
"silverstripe/framework": "^3.2",
"silverstripe/toolbar": "^4.0",
"silverstripe/dynamodb": "^1.1"
"silverstripe/dynamodb": "^1.1",
"mandrew/silverstripe-quickfeedback": "^0.2"
},
"require-dev": {
"phpunit/PHPUnit": "~3.7@stable"

54
composer.lock generated
View File

@ -4,8 +4,8 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"hash": "1ddd85476025c0b7a81ac788f843c0ee",
"content-hash": "fc7210e99b3e3e346c1ea1bd9edf7cb8",
"hash": "9f1ebf69ac08e2236c2eb2d037edba18",
"content-hash": "f88a0b9a12e2d68c269af2e927349145",
"packages": [
{
"name": "aws/aws-sdk-php",
@ -416,6 +416,45 @@
],
"time": "2015-03-18 18:23:50"
},
{
"name": "mandrew/silverstripe-quickfeedback",
"version": "0.2.0",
"source": {
"type": "git",
"url": "https://github.com/mandrew/silverstripe-quickfeedback.git",
"reference": "b2f28c28ed089a4f5ea5d2d870f47de77e854b3c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/mandrew/silverstripe-quickfeedback/zipball/b2f28c28ed089a4f5ea5d2d870f47de77e854b3c",
"reference": "b2f28c28ed089a4f5ea5d2d870f47de77e854b3c",
"shasum": ""
},
"require": {
"silverstripe/framework": "^3.2"
},
"type": "silverstripe-module",
"extra": {
"installer-name": "quickfeedback"
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Michael Andrewartha",
"email": "michael@silverstripe.com"
}
],
"description": "Creates a quick yes/no feedback form which can be added at the bottom of your site",
"keywords": [
"feedback",
"member",
"silverstripe"
],
"time": "2016-02-15 21:06:37"
},
{
"name": "mtdowling/cron-expression",
"version": "v1.0.4",
@ -510,16 +549,16 @@
},
{
"name": "silverstripe/docsviewer",
"version": "dev-master",
"version": "1.3.0",
"source": {
"type": "git",
"url": "https://github.com/silverstripe/silverstripe-docsviewer.git",
"reference": "f70d5fde0a2bae46d6ee49779f57249c72b55e69"
"reference": "cf7505b340966252d9fef504dd880c63e6152a9d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/silverstripe/silverstripe-docsviewer/zipball/f70d5fde0a2bae46d6ee49779f57249c72b55e69",
"reference": "f70d5fde0a2bae46d6ee49779f57249c72b55e69",
"url": "https://api.github.com/repos/silverstripe/silverstripe-docsviewer/zipball/cf7505b340966252d9fef504dd880c63e6152a9d",
"reference": "cf7505b340966252d9fef504dd880c63e6152a9d",
"shasum": ""
},
"require": {
@ -547,7 +586,7 @@
"documentation",
"silverstripe"
],
"time": "2016-01-24 12:24:56"
"time": "2016-02-06 00:54:31"
},
{
"name": "silverstripe/dynamodb",
@ -1204,7 +1243,6 @@
"aliases": [],
"minimum-stability": "dev",
"stability-flags": {
"silverstripe/docsviewer": 20,
"phpunit/phpunit": 0
},
"prefer-stable": true,

View File

@ -0,0 +1,21 @@
<div id="documentation-page" class="box">
<% if VersionWarning %>
<% include DocumentationVersion_warning Version=$Entity.Version %>
<% end_if %>
<% include DocumentationTableContents %>
$Content.RAW
$QuickFeedbackForm
<% include DocumentationNextPrevious %>
<% if EditLink %>
<% include DocumentationEditLink %>
<% end_if %>
<% include DocumentationComments %>
</div>