addExtraClass('btn btn-default btn-sm'); $actions = new FieldList( $searchButton ); parent::__construct($controller, $name, $fields, $actions); } function forTemplate() { return $this->renderWith(array( $this->class, 'Form' )); } }