mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Allowing usage of custom *_EditForm templates in base class with LeftAndMain->getEditForm() (was already implemented in subclasses)
This commit is contained in:
parent
7e01c40770
commit
3aafb63821
@ -830,6 +830,7 @@ class LeftAndMain extends Controller {
|
||||
$form = new Form($this, "EditForm", $fields, $actions);
|
||||
$form->addExtraClass('cms-edit-form');
|
||||
$form->loadDataFrom($record);
|
||||
$form->setTemplate($this->getTemplatesWithSuffix('_EditForm'));
|
||||
|
||||
// Add a default or custom validator.
|
||||
// @todo Currently the default Validator.js implementation
|
||||
|
Loading…
x
Reference in New Issue
Block a user