Skip to content

Commit

Permalink
Merge pull request #881 from creative-commoners/pulls/1.4/form-no-div…
Browse files Browse the repository at this point in the history
…iders

NEW MoveFormFactory::getForm is now extensible and no longer uses divider lines
  • Loading branch information
ScopeyNZ committed Nov 12, 2018
2 parents 542a37c + acf4b3a commit 7debbf5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code/Forms/MoveFormFactory.php
Expand Up @@ -4,6 +4,7 @@

use SilverStripe\Assets\Folder;
use SilverStripe\Control\RequestHandler;
use SilverStripe\Core\Extensible;
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\Form;
use SilverStripe\Forms\FormAction;
Expand All @@ -12,6 +13,8 @@

class MoveFormFactory implements FormFactory
{
use Extensible;

public function getForm(RequestHandler $controller = null, $name = self::DEFAULT_NAME, $context = [])
{
$form = Form::create(
Expand All @@ -31,6 +34,10 @@ public function getForm(RequestHandler $controller = null, $name = self::DEFAULT
)
);

$form->addExtraClass('form--no-dividers');

$this->extend('updateForm', $form, $controller, $name, $context);

return $form;
}

Expand Down

0 comments on commit 7debbf5

Please sign in to comment.