Update UserDefinedForm.php

Changed two typos: UserDefinedform must be UserDefinedForm
This commit is contained in:
mschilder 2013-03-15 12:32:07 +01:00
parent 5935b1c0bb
commit caec25101d

View File

@ -83,7 +83,7 @@ class UserDefinedForm extends Page {
// who do we email on submission // who do we email on submission
$emailRecipients = new GridField("EmailRecipients", _t('UserDefinedForm.EMAILRECIPIENTS', 'Email Recipients'), $this->EmailRecipients(), GridFieldConfig_RecordEditor::create(10)); $emailRecipients = new GridField("EmailRecipients", _t('UserDefinedForm.EMAILRECIPIENTS', 'Email Recipients'), $this->EmailRecipients(), GridFieldConfig_RecordEditor::create(10));
$emailRecipients->getConfig()->getComponentByType('GridFieldAddNewButton')->setButtonName( $emailRecipients->getConfig()->getComponentByType('GridFieldAddNewButton')->setButtonName(
_t('UserDefinedform.ADDEMAILRECIPIENT', 'Add Email Recipient') _t('UserDefinedForm.ADDEMAILRECIPIENT', 'Add Email Recipient')
); );
$fields->addFieldsToTab("Root.FormOptions", $onCompleteFieldSet); $fields->addFieldsToTab("Root.FormOptions", $onCompleteFieldSet);
@ -94,7 +94,7 @@ class UserDefinedForm extends Page {
// view the submissions // view the submissions
$submissions = new GridField( $submissions = new GridField(
"Reports", "Reports",
_t('UserDefinedform.SUBMISSIONS', 'Submissions'), _t('UserDefinedForm.SUBMISSIONS', 'Submissions'),
$this->Submissions()->sort('Created', 'DESC') $this->Submissions()->sort('Created', 'DESC')
); );