FIX Use correct bootstrap class or GridFieldDetailForm delete button

This commit is contained in:
Robbie Averill 2017-08-24 14:34:06 +12:00
parent deec9b411b
commit c4ff9df1b0

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'