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/ /toolbar/
/display_logic/ /display_logic/
/silverstripe-dynamodb/ /silverstripe-dynamodb/
/crontask/ /crontask/
/quickfeedback/

View File

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

View File

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

View File

@ -4,10 +4,11 @@
"require": { "require": {
"ext-gd": "*", "ext-gd": "*",
"ext-mbstring": "*", "ext-mbstring": "*",
"silverstripe/docsviewer": "dev-master", "silverstripe/docsviewer": "^1.2",
"silverstripe/framework": "^3.2", "silverstripe/framework": "^3.2",
"silverstripe/toolbar": "^4.0", "silverstripe/toolbar": "^4.0",
"silverstripe/dynamodb": "^1.1" "silverstripe/dynamodb": "^1.1",
"mandrew/silverstripe-quickfeedback": "^0.2"
}, },
"require-dev": { "require-dev": {
"phpunit/PHPUnit": "~3.7@stable" "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", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"hash": "1ddd85476025c0b7a81ac788f843c0ee", "hash": "9f1ebf69ac08e2236c2eb2d037edba18",
"content-hash": "fc7210e99b3e3e346c1ea1bd9edf7cb8", "content-hash": "f88a0b9a12e2d68c269af2e927349145",
"packages": [ "packages": [
{ {
"name": "aws/aws-sdk-php", "name": "aws/aws-sdk-php",
@ -416,6 +416,45 @@
], ],
"time": "2015-03-18 18:23:50" "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", "name": "mtdowling/cron-expression",
"version": "v1.0.4", "version": "v1.0.4",
@ -510,16 +549,16 @@
}, },
{ {
"name": "silverstripe/docsviewer", "name": "silverstripe/docsviewer",
"version": "dev-master", "version": "1.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/silverstripe/silverstripe-docsviewer.git", "url": "https://github.com/silverstripe/silverstripe-docsviewer.git",
"reference": "f70d5fde0a2bae46d6ee49779f57249c72b55e69" "reference": "cf7505b340966252d9fef504dd880c63e6152a9d"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/silverstripe/silverstripe-docsviewer/zipball/f70d5fde0a2bae46d6ee49779f57249c72b55e69", "url": "https://api.github.com/repos/silverstripe/silverstripe-docsviewer/zipball/cf7505b340966252d9fef504dd880c63e6152a9d",
"reference": "f70d5fde0a2bae46d6ee49779f57249c72b55e69", "reference": "cf7505b340966252d9fef504dd880c63e6152a9d",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -547,7 +586,7 @@
"documentation", "documentation",
"silverstripe" "silverstripe"
], ],
"time": "2016-01-24 12:24:56" "time": "2016-02-06 00:54:31"
}, },
{ {
"name": "silverstripe/dynamodb", "name": "silverstripe/dynamodb",
@ -1204,7 +1243,6 @@
"aliases": [], "aliases": [],
"minimum-stability": "dev", "minimum-stability": "dev",
"stability-flags": { "stability-flags": {
"silverstripe/docsviewer": 20,
"phpunit/phpunit": 0 "phpunit/phpunit": 0
}, },
"prefer-stable": true, "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>