mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Use button tag for delete button in GridFieldEditForm
This commit is contained in:
parent
32f829d094
commit
bd0e597ac6
@ -296,6 +296,7 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler {
|
|||||||
->setAttribute('data-icon', 'accept'));
|
->setAttribute('data-icon', 'accept'));
|
||||||
|
|
||||||
$actions->push(FormAction::create('doDelete', _t('GridFieldDetailForm.Delete', 'Delete'))
|
$actions->push(FormAction::create('doDelete', _t('GridFieldDetailForm.Delete', 'Delete'))
|
||||||
|
->setUseButtonTag(true)
|
||||||
->addExtraClass('ss-ui-action-destructive'));
|
->addExtraClass('ss-ui-action-destructive'));
|
||||||
|
|
||||||
}else{ // adding new record
|
}else{ // adding new record
|
||||||
|
Loading…
Reference in New Issue
Block a user