I have created a new model admin using SilverStripe 3.1.
I wish to add a button next to the 'Add' button on top of the grid view. Is there any way I can do this and create an action for this?
Here is what I found so far.
public function getEditForm($id = null, $fields = null)
{
/**
* @var $EditForm CMSForm
*/
$EditForm = parent::getEditForm($id, $fields);
$EditForm->Fields()->add(LiteralField::create('Sync', '<button><a href="www.google.com"> Sync </a></button>'));
return $EditForm;
}
Also I want to have a handler for this.