mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Merge branch '5.15' into 5
This commit is contained in:
commit
1ccb587f6b
@ -185,14 +185,16 @@ trait UserForm
|
|||||||
$this->beforeUpdateCMSFields(function ($fields) {
|
$this->beforeUpdateCMSFields(function ($fields) {
|
||||||
|
|
||||||
// remove
|
// remove
|
||||||
$fields->removeByName('OnCompleteMessageLabel');
|
$fields->removeByName([
|
||||||
$fields->removeByName('OnCompleteMessage');
|
'OnCompleteMessageLabel',
|
||||||
$fields->removeByName('Fields');
|
'OnCompleteMessage',
|
||||||
$fields->removeByName('EmailRecipients');
|
'Fields',
|
||||||
|
'EmailRecipients'
|
||||||
|
]);
|
||||||
|
|
||||||
// define tabs
|
// define tabs
|
||||||
$fields->findOrMakeTab('Root.FormOptions', _t('SilverStripe\\UserForms\\Model\\UserDefinedForm.CONFIGURATION', 'Configuration'));
|
$fields->findOrMakeTab('Root.FormOptions')->setTitle(_t('SilverStripe\\UserForms\\Model\\UserDefinedForm.CONFIGURATION', 'Configuration'));
|
||||||
$fields->findOrMakeTab('Root.Recipients', _t('SilverStripe\\UserForms\\Model\\UserDefinedForm.RECIPIENTS', 'Recipients'));
|
$fields->findOrMakeTab('Root.Recipients')->setTitle(_t('SilverStripe\\UserForms\\Model\\UserDefinedForm.RECIPIENTS', 'Recipients'));
|
||||||
|
|
||||||
|
|
||||||
// text to show on complete
|
// text to show on complete
|
||||||
@ -237,7 +239,7 @@ trait UserForm
|
|||||||
$fields->addFieldsToTab('Root.FormOptions', $this->getFormOptions());
|
$fields->addFieldsToTab('Root.FormOptions', $this->getFormOptions());
|
||||||
|
|
||||||
$submissions = $this->getSubmissionsGridField();
|
$submissions = $this->getSubmissionsGridField();
|
||||||
$fields->findOrMakeTab('Root.Submissions', _t('SilverStripe\\UserForms\\Model\\UserDefinedForm.SUBMISSIONS', 'Submissions'));
|
$fields->findOrMakeTab('Root.Submissions')->setTitle(_t('SilverStripe\\UserForms\\Model\\UserDefinedForm.SUBMISSIONS', 'Submissions'));
|
||||||
$fields->addFieldToTab('Root.Submissions', $submissions);
|
$fields->addFieldToTab('Root.Submissions', $submissions);
|
||||||
$fields->addFieldToTab(
|
$fields->addFieldToTab(
|
||||||
'Root.FormOptions',
|
'Root.FormOptions',
|
||||||
|
Loading…
Reference in New Issue
Block a user