2007-07-19 10:40:28 +00:00
|
|
|
<?php
|
2008-01-08 06:37:50 +00:00
|
|
|
/**
|
|
|
|
* Displays a summary of instances of a form submitted to the website
|
2008-01-10 00:34:18 +00:00
|
|
|
* @package cms
|
2008-01-08 06:37:50 +00:00
|
|
|
*/
|
2007-07-19 10:40:28 +00:00
|
|
|
class SubmittedFormReportField extends FormField {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Displays the form (without defaults) submitted as it appears on the front of the site
|
|
|
|
* Users will use this instance of the form to filter results
|
|
|
|
*/
|
|
|
|
function Form() {
|
|
|
|
/*return $this->form->Form();*/
|
|
|
|
}
|
|
|
|
|
|
|
|
function Field() {
|
ENHANCEMENT Introduced constants for system paths like /sapphire in preparation for a more flexible directory reorganisation. Instead of hardcoding your path, please use the following constants: BASE_PATH, BASE_URL, SAPPHIRE_DIR, SAPPHIRE_PATH, CMS_DIR, CMS_PATH, THIRDPARTY_DIR, THIRDPARTY_PATH, ASSETS_DIR, ASSETS_PATH, THEMES_DIR, THEMES_PATH
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63154 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-09-27 16:02:38 +00:00
|
|
|
Requirements::css(SAPPHIRE_DIR . "/css/SubmittedFormReportField.css");
|
2007-07-19 10:40:28 +00:00
|
|
|
|
|
|
|
return $this->renderWith("SubmittedFormReportField");
|
|
|
|
}
|
|
|
|
|
|
|
|
function Submissions() {
|
|
|
|
return $this->form->getRecord()->Submissions();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|