Merge pull request #7307 from creative-commoners/pulls/4.0/fix-gridfield-delete-button

FIX Use correct bootstrap class or GridFieldDetailForm delete button
This commit is contained in:
Damian Mooyman 2017-08-24 15:57:32 +12:00 committed by GitHub
commit 9ff62cf6a0

View File

@ -289,7 +289,7 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
if ($canDelete) {
$actions->push(FormAction::create('doDelete', _t('SilverStripe\\Forms\\GridField\\GridFieldDetailForm.Delete', 'Delete'))
->setUseButtonTag(true)
->addExtraClass('btn-danger-outline btn-hide-outline font-icon-trash-bin action-delete'));
->addExtraClass('btn-outline-danger btn-hide-outline font-icon-trash-bin action-delete'));
}
} else { // adding new record
//Change the Save label to 'Create'