mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Revert "GridFieldDeleteAction missing button text without icons"
This reverts commit 265a34141e
.
This commit is contained in:
parent
4e8aa72702
commit
e32b06846b
@ -107,7 +107,7 @@ class GridFieldDeleteAction implements GridField_ColumnProvider, GridField_Actio
|
|||||||
if($this->removeRelation) {
|
if($this->removeRelation) {
|
||||||
if(!$record->canEdit()) return;
|
if(!$record->canEdit()) return;
|
||||||
|
|
||||||
$field = GridField_FormAction::create($gridField, 'UnlinkRelation'.$record->ID, _t('GridAction.UnlinkRelation', "Unlink"),
|
$field = GridField_FormAction::create($gridField, 'UnlinkRelation'.$record->ID, false,
|
||||||
"unlinkrelation", array('RecordID' => $record->ID))
|
"unlinkrelation", array('RecordID' => $record->ID))
|
||||||
->addExtraClass('gridfield-button-unlink')
|
->addExtraClass('gridfield-button-unlink')
|
||||||
->setAttribute('title', _t('GridAction.UnlinkRelation', "Unlink"))
|
->setAttribute('title', _t('GridAction.UnlinkRelation', "Unlink"))
|
||||||
@ -115,14 +115,13 @@ class GridFieldDeleteAction implements GridField_ColumnProvider, GridField_Actio
|
|||||||
} else {
|
} else {
|
||||||
if(!$record->canDelete()) return;
|
if(!$record->canDelete()) return;
|
||||||
|
|
||||||
$field = GridField_FormAction::create($gridField, 'DeleteRecord'.$record->ID, _t('GridAction.Delete', "Delete"), "deleterecord",
|
$field = GridField_FormAction::create($gridField, 'DeleteRecord'.$record->ID, false, "deleterecord",
|
||||||
array('RecordID' => $record->ID))
|
array('RecordID' => $record->ID))
|
||||||
->addExtraClass('gridfield-button-delete')
|
->addExtraClass('gridfield-button-delete')
|
||||||
->setAttribute('title', _t('GridAction.Delete', "Delete"))
|
->setAttribute('title', _t('GridAction.Delete', "Delete"))
|
||||||
->setAttribute('data-icon', 'cross-circle')
|
->setAttribute('data-icon', 'cross-circle')
|
||||||
->setDescription(_t('GridAction.DELETE_DESCRIPTION','Delete'));
|
->setDescription(_t('GridAction.DELETE_DESCRIPTION','Delete'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $field->Field();
|
return $field->Field();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user