mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Submission tab translatable
This commit is contained in:
parent
7677f15fda
commit
0d7f7ed6d0
@ -185,10 +185,13 @@ 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',
|
||||||
|
'Submissions'
|
||||||
|
]);
|
||||||
|
|
||||||
// define tabs
|
// define tabs
|
||||||
$fields->findOrMakeTab('Root.FormOptions', _t('SilverStripe\\UserForms\\Model\\UserDefinedForm.CONFIGURATION', 'Configuration'));
|
$fields->findOrMakeTab('Root.FormOptions', _t('SilverStripe\\UserForms\\Model\\UserDefinedForm.CONFIGURATION', 'Configuration'));
|
||||||
|
Loading…
Reference in New Issue
Block a user