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) {
|
||||
|
||||
// remove
|
||||
$fields->removeByName('OnCompleteMessageLabel');
|
||||
$fields->removeByName('OnCompleteMessage');
|
||||
$fields->removeByName('Fields');
|
||||
$fields->removeByName('EmailRecipients');
|
||||
$fields->removeByName([
|
||||
'OnCompleteMessageLabel',
|
||||
'OnCompleteMessage',
|
||||
'Fields',
|
||||
'EmailRecipients',
|
||||
'Submissions'
|
||||
]);
|
||||
|
||||
// define tabs
|
||||
$fields->findOrMakeTab('Root.FormOptions', _t('SilverStripe\\UserForms\\Model\\UserDefinedForm.CONFIGURATION', 'Configuration'));
|
||||
|
Loading…
Reference in New Issue
Block a user