protected function createComponentAlbumForm()
{
$form = new Form();
$form->addText('artist', 'Artist:')->setRequired('Please enter an artist.');
$form->addText('title', 'Title:')->setRequired('Please enter a title.');
$form->addSubmit('save', 'Save')->setHtmlAttribute('class', 'default')->onClick[] = [$this, 'albumFormSucceeded'];
$form->addSubmit('cancel', 'Cancel')->setValidationScope([])->onClick[] = [$this, 'formCancelled'];
$form->addProtection();
return $form;
}