mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
FIX Add namespaces for UserFormsOptionSetField template and EditableMultipleOptionField templates
This commit is contained in:
parent
d3d2ae591f
commit
91bac6dcf4
@ -25,9 +25,8 @@ class EditableCheckboxGroupField extends EditableMultipleOptionField
|
|||||||
|
|
||||||
public function getFormField()
|
public function getFormField()
|
||||||
{
|
{
|
||||||
$field = UserFormsCheckboxSetField::create($this->Name, $this->EscapedTitle, $this->getOptionsMap());
|
$field = UserFormsCheckboxSetField::create($this->Name, $this->EscapedTitle, $this->getOptionsMap())
|
||||||
$field->setFieldHolderTemplate(EditableMultipleOptionField::class . '_holder');
|
->setFieldHolderTemplate(EditableMultipleOptionField::class . '_holder');
|
||||||
$field->setTemplate('UserFormsCheckboxSetField'); // @todo
|
|
||||||
|
|
||||||
// Set the default checked items
|
// Set the default checked items
|
||||||
$defaultCheckedItems = $this->getDefaultOptions();
|
$defaultCheckedItems = $this->getDefaultOptions();
|
||||||
|
@ -37,7 +37,7 @@ class EditableRadioField extends EditableMultipleOptionField
|
|||||||
{
|
{
|
||||||
$field = OptionsetField::create($this->Name, $this->EscapedTitle, $this->getOptionsMap())
|
$field = OptionsetField::create($this->Name, $this->EscapedTitle, $this->getOptionsMap())
|
||||||
->setFieldHolderTemplate(EditableMultipleOptionField::class . '_holder')
|
->setFieldHolderTemplate(EditableMultipleOptionField::class . '_holder')
|
||||||
->setTemplate('UserFormsOptionSetField'); // @todo
|
->setTemplate('SilverStripe\\UserForms\\FormField\\UserFormsOptionSetField');
|
||||||
|
|
||||||
// Set default item
|
// Set default item
|
||||||
$defaultOption = $this->getDefaultOptions()->first();
|
$defaultOption = $this->getDefaultOptions()->first();
|
||||||
|
@ -347,7 +347,7 @@ class EmailRecipient extends DataObject
|
|||||||
)
|
)
|
||||||
->addExtraClass('toggle-plain-only'),
|
->addExtraClass('toggle-plain-only'),
|
||||||
LiteralField::create('EmailPreview', $preview)
|
LiteralField::create('EmailPreview', $preview)
|
||||||
));
|
]);
|
||||||
|
|
||||||
$fields->fieldByName('Root.EmailContent')->setTitle(_t(__CLASS__.'.EMAILCONTENTTAB', 'Email Content'));
|
$fields->fieldByName('Root.EmailContent')->setTitle(_t(__CLASS__.'.EMAILCONTENTTAB', 'Email Content'));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user